Forum Discussion
Altera_Forum
Honored Contributor
16 years agoYou should show complete library and signal/variable definition.
Generally, this code is supposed to work. But possibly, you found a way to thwart it. if CLK'EVENT AND CLK = '1' then
counter := counter + 1;
Q <= counter ;
end if;