Forum Discussion
Altera_Forum
Honored Contributor
13 years agoNewb question- If statements
Im new to programming in VHDL and I seem to be having some difficulty with a particular set of if statements. I understand how conditional statements work, but for whatever reason Im not getting the ...
Altera_Forum
Honored Contributor
13 years agoI prefer to code in parallel with algorithm:
if count = 81000000 then
count := 0;
else
count :=count + 1;
end if;
case count is
when 0 to 27000000 | 54000000 to 81000000=> clk <= '1';
when others => clk <= '0';
That way you can instantly visualise your code