HDLbits
Browse Problems

Circuits/Sequential Logic

5-Bit LFSR

medium
lfsrsequential

Reset the state to 00001. On each rising edge, shift left and insert the XOR of bits 4 and 1 as the new least-significant bit.