Hi,
Can anyone tell me the error in the following code:
**********************
entity seven_segment is
Port (rst, clk : in STD_LOGIC;
segment7 : out STD_LOGIC_VECTOR
(7 downto 0);
ca : out STD_LOGIC);
end seven_segment;
architecture Behavioral of seven_segment is
begin
process(rst, clk)
begin
if(rst = '1') then
ca <= '1'; -- for common cathode pin
else(clk'event and clk = '0') --------- error line
segment7 <= "00001100";
ca <= '0';
end if;
end process;
end Behavioral;
************************
the error is : parse error, unexpected IDENTIFIER, expecting AFFECT or EQ or LE
Thanks,
Emma Good