BCD Counter

Beginner
Sign 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_end is a combinational signal
02Interface
SignalDirectionWidthDescription
i_clkInput1 bitSystem clock
i_resetInput1 bitActive-low async reset
i_enInput1 bitCount enable
o_cptOutput4 bits (unsigned)Current count value
o_endOutput1 bitEnd of count flag (=1 when counter is 9)