Forum Discussion
Altera_Forum
Honored Contributor
17 years agowait statement inside process
Hi all, I faced some problem when I trying to compile my following code. The error replied was only one wait statement is allowed in the process. I have tried putting IF statement but it took ...
Altera_Forum
Honored Contributor
17 years agoMain : process
variable counter : counter_type := 0; begin if rising_edge(CLOCK) then if SRDcar = '1' then if HWYcar = '1' then counter := 0; elsif counter = long_cycle then null; else counter := counter + 1; end if; end if; end if; end process; I think this should be something like what you want. Ben