Chargement…
Chargement…
Moore state machine with 4 states (S_INIT, S_SEQ1, S_SEQ2, S_SEQ3) animating a 4-LED bar.
Behaviour:
i_reset='1'): state ← S_INIT, o_led ← "0000".i_start='0', the state stays at S_INIT.i_start='1', the FSM walks S_INIT → S_SEQ1 → S_SEQ2 → S_SEQ3 → S_INIT on each rising edge.S_SEQ1→"0001", S_SEQ2→"0010", S_SEQ3→"0100", S_INIT→"0000".*Moore output: o_led depends only on the current state. Asynchronous active-high reset.*
| Signal | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | System clock |
i_reset | Input | 1 bit | Active-high async reset |
i_start | Input | 1 bit | Sequence start |
o_led | Output | 4 bits | LED outputs |