if statement vdhl code example
Example: 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;