Forum Discussion
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