Forum Discussion
Altera_Forum
Honored Contributor
13 years agomultiplexed display system
Dear Friends, I am designing a multiplexed display system, I did the code without (as I think) errors but I got a syntax error messages as follows: library IEEE; use ieee.std_logic_1164.all...
Altera_Forum
Honored Contributor
13 years agoYou still haven't changed the "else if" to "elsif".
With "else if", you in fact have two nested ifs in your code, that would require two "end if;" to properly close them. Using identation with tabs can show this:process (rst, slow_clk)
if rst = '1' then
count_2b <= "00";
else
if rising_edge(slow_clk) then
count_2b <= count_2b +1;
end if;
end if;
end process;orprocess (rst, slow_clk)
if rst = '1' then
count_2b <= "00";
elsif rising_edge(slow_clk) then
count_2b <= count_2b +1;
end if;
end process;