Home › Practice › RTL Design › BCD counter with enable
BCD counter with enable
MediumRTLcounters
Build a decade (mod-10) counter that counts 0 to 9.
rstis synchronous, active-high, and setsqto 0.- Otherwise, when
en=1,qgoes up by 1 on each rising edge, and after 9 it goes back to 0. - When
en=0,qholds.qnever shows 10 to 15.
Example with en=1 from reset: q = 0 1 2 3 4 5 6 7 8 9 0 1 ...
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.