GATE Computer ScienceVery hardGATE CSE
A 4-bit Johnson (twisted-ring) counter is built with D1 = NOT Q4, D2 = Q1, D3 = Q2, D4 = Q3, with no self-correction logic. Considering all 16 possible initial states, how many distinct cycles exist in total, and what are their lengths?
- A. 1 cycles of lengths 8, NaN
- B. 2 cycles of lengths 8, 8
- C. 2 cycles of lengths 8, 9, NaN
- D. 3 cycles of lengths 8, 8, 1
Correct answer: B. 2 cycles of lengths 8, 8
The valid sequence 0000→1000→1100→1110→1111→0111→0011→0001 has length 8; the 8 unused states fall into the other cycle(s); the cycle lengths found by following every state are 8, 8 (16 states in all).
More Digital Logic questions
- A 4-bit binary adder adds unsigned operands A, B (0–15) and a carry-in Cin ∈ {0,1}. For how many of the 512 input combinations is the…
- Every Boolean function of three variables is written as a minimal sum of products (fewest product terms, each term any cube of literals)…
- A Mealy machine reads a serial bit stream and outputs 1 whenever the last 7 bits read are 1101101 (overlapping occurrences allowed)…
- Two flip-flops are connected through combinational logic. The launching flip-flop has clock-to-Q delay between 3 and 5 ns, the logic delay…
- How many Boolean functions of 4 variables are both affine (of the form a1x1 ⊕ a2x2 ⊕ a3x3 ⊕ a4x4 ⊕ c) and self-dual?
- A function of four variables is F(A,B,C,D) = Σm(3,4,5,6,8,9,13,14,15) + d(0), where d denotes a don't-care minterm. How many prime…