BCD Counter
BeginnerSign in →
00:00
01General Operation
The BCD counter counts from 0 to 9 on the rising clock edge when enable is active. After 9, it wraps to 0. The o_end output signals when the maximum value is reached.
Reset is asynchronous and active-high.
o_endis a combinational signal
02Interface
| Signal | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | System clock |
i_reset | Input | 1 bit | Active-low async reset |
i_en | Input | 1 bit | Count enable |
o_cpt | Output | 4 bits (unsigned) | Current count value |
o_end | Output | 1 bit | End of count flag (=1 when counter is 9) |