GATE Computer ScienceHardGATE CSE · UGC NET

A 6-bit shift register (bits Q6…Q1, shifting left) feeds back Q6 ⊕ Q4 ⊕ Q1 into Q1 on every clock. Starting from 000001, after how many clock pulses does the register first return to 000001?

  1. A. 63
  2. B. 21
  3. C. 31
  4. D. 24

Correct answer: B. 21

Simulating the register step by step, the state first repeats after 21 pulses (the feedback polynomial is not primitive, so the period is shorter than 63).

More Digital Logic questions

Exams that ask this topic