Home › Practice › RTL Design › 4-bit Johnson counter
4-bit Johnson counter
MediumRTLcounters
Build a 4-bit Johnson (twisted-ring) counter.
- On each rising edge,
qshifts left by one. The bit that enters atq[0]is the inverse of the oldq[3]. rstis synchronous, active-high, and setsqto 0000.- No enable: it moves on every edge.
Sequence from reset: 0000, 0001, 0011, 0111, 1111, 1110, 1100, 1000, 0000, ... (8 states).
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.