GATE Computer ScienceVery hardGATE CS

A 5-bit Galois LFSR for the polynomial x⁵ + x² + 1 shifts right on each clock; whenever the bit shifted out (the LSB) was 1, the shifted value is XORed with 10100. Starting from 00001, what is the state after 100 clocks?

  1. A. 10001
  2. B. 01110
  3. C. 11100
  4. D. 01011

Correct answer: C. 11100

The sequence is maximal-length with period 31, so after 100 clocks the state equals the state after 100 mod 31 = 7 clocks, 11100. The neighbouring answers are the states after 99, 101 and 98 clocks.

More Digital Logic questions

Exams that ask this topic