Chargement…
Chargement…
State machine for a pedestrian crossing light, clocked at 1 Hz.
3 states: green, orange, red.
Reset is asynchronous and active-high.
| Signal | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | System clock (1 Hz) |
i_reset | Input | 1 bit | Active-high async reset |
i_btn | Input | 1 bit | Pedestrian button |
o_vert | Output | 1 bit | Green light |
o_orange | Output | 1 bit | Orange light |
o_rouge | Output | 1 bit | Red light |