HDLbits
Browse Problems

Circuits/Sequential Logic

3-Bit LFSR

easy
lfsrsequential

Initialize to 001. Shift left on every rising edge and insert q(2) XOR q(1) at bit 0. Synchronous reset reloads the seed.