Forum Discussion
Altera_Forum
Honored Contributor
15 years agohow to extend delay
How do i create delay for the output in the waveform? Currently i'm having half a cycle delay, i want to increase it to 1 cycle. (i have circled the area in the picture attatched) And also, ho...
Altera_Forum
Honored Contributor
15 years agoYes add a counter, then in your state machine do something like this:
WHEN red =>
red_light <= '1';
green_light <= '0';
yellow_light <= '0';
IF (sensor = '1') and counter = 3 THEN
next_state <= green;
ELSE
next_state <= red;