**4-bit Johnson (Twisted Ring) Counter:** How does a **Johnson Counter**…
**4-bit Johnson (Twisted Ring) Counter:** How does a **Johnson Counter** double the state count of a standard Ring Counter? Give its complete 8-state sequence and write synthesizable Verilog RTL code and its testbench.
Model answer
### 1. Working Principle A **Johnson Counter** (switch-tail ring counter) feeds the **inverted** output of the MSB flip-flop back into the LSB ($D_0 = \overline{Q_{N-1}}$). For an $N$-bit shift register, it yields **$2N$ valid states** (8 states for $N=4$): 0000 \rightarrow 0001 \rightarrow 0011 \rightarrow 0111 \rightarrow 1111 \rightarrow 1110 \rightarrow 1100 \rightarrow 1000 \rightarrow 0000 ### 2. Verilog RTL Implementation ### 3. Verilog Testbench