Home › Practice › RTL Design › Traffic light FSM
Traffic light FSM
EasyRTLsequential
Build a traffic light that moves one step on every rising edge: green, then yellow, then red, then green again.
g,y,rare the lamps. Exactly one of them is 1 at a time.rstis synchronous, active-high: on a risingclkedge withrst=1the light becomes green (g=1).- Each state lasts one clock cycle.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.