GATE Computer ScienceVery hardGATE CS
A 4-bit shift register Q3 Q2 Q1 Q0 shifts left on every clock: Q3 ← Q2, Q2 ← Q1, Q1 ← Q0 and Q0 ← Q3 ⊕ Q1 (the feedback taps correspond to the polynomial x⁴ + x² + 1, which is not primitive). Considering all 16 possible states, what is the pair (number of distinct cycles in the state diagram, length of the longest cycle)?
- A. (4, 6)
- B. (4, 15)
- C. (2, 12)
- D. (3, 6)
Correct answer: A. (4, 6)
Since x⁴ + x² + 1 = (x² + x + 1)², the register splits the 16 states into cycles of lengths 1 (the all-zero state), 3, 6 and 6. So there are 4 cycles and the longest has length 6, not the 15 of a maximal-length LFSR.
More Digital Logic questions
- A 4-bit left-shifting register uses XNOR feedback: Q0 ← XNOR(Q3, Q2), with Q3 ← Q2, Q2 ← Q1, Q1 ← Q0. Starting at 0000, after how many…
- A 4-bit shift-right register Q3 Q2 Q1 Q0 has Q2 ← Q3, Q1 ← Q2, Q0 ← Q1 and Q3 ← NOR(Q3, Q2, Q1). Its state diagram has the single 4-state…
- A 5-bit Johnson (twisted-ring) counter shifts right with Q4 ← NOT Q0 (and Q3 ← Q4, Q2 ← Q3, Q1 ← Q2, Q0 ← Q1) and has no self-correction…
- F(A,B,C,D) = Σm(0, 1, 5, 7, 8, 10, 14, 15). Let P be the number of prime implicants of F and M the number of different minimal…
- Two Boolean functions of three variables are NPN-equivalent if one becomes the other by permuting inputs, complementing some inputs and…
- A Moore machine has states 0 to 7 (start state 0), input alphabet {0, 1} and next-state function δ(s, 0), δ(s, 1): 0:(5,7); 1:(3,2)…