if statement vhdl code example
Example 1: vhdl if then syntax
if <condition> then
<command>;
elsif <condition> then
<command>;
else
<command>;
end if;
Example 2: if statement vdhl
process(CLK, RESET)
begin
if RESET = '1' then
COUNT <= 0;
elseif CLK'event and CLK='1' then
if (COUNT >= 9) then
COUNT <= 0;
else
COUNT <= COUNT + 1;
end if;
end if
end process;