Chargement…
Chargement…
The counter starts at 1 then adds 2 on each enabled cycle.
Behaviour
i_reset forces o_count to 0001.i_en=1 increments by two and wraps from 1111 to 0001.i_en=0 holds the current value.| Signal | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | System clock |
i_reset | Input | 1 bit | Active-high asynchronous reset |
i_en | Input | 1 bit | Enable |
o_count | Output | 4 bits | Output count |