All labs 10

Maximal-Length LFSR

Sequential digital

A 4-bit Fibonacci linear-feedback shift register with taps at stages 3 and 4 — the primitive polynomial x4+x3+1x^4+x^3+1. Each clock edge shifts the register and feeds back the XOR of the tapped bits. The result cycles through all 15 non-zero states before repeating: a deterministic sequence wearing the disguise of randomness.

Live circuit register value 8
Maximal-Length LFSR7 components and 11 connections.CLKCLKclkFBXORDQ1D1DQ2D2DQ3D3DQ4D4OUTseq
Maximal-Length LFSR

Change an input; step the timeline to watch the logic settle.

Causal signal trace paused

Form the feedback bit Before the edge, the selected Q3 and Q4 taps XOR to establish the next D input.

Step 1 / 4 Form the feedback bit

Notebook: 7 parts and 11 wires, modelled as clocked shift register over GF(2)

Recommended lab 10 of 18

Connect primitive feedback taps to the period of an LFSR sequence.

Builds on: 8-Bit Digital Adder

Predict, then test

Move one feedback tap away from the primitive polynomial. Must the period remain 1515?

Commit before the explanation appears. This is a prediction, not a quiz score.

Governing model
x4+x3+1  ⋅  period=2n−1=15x^4 + x^3 + 1 \;\cdot\; \text{period} = 2^n - 1 = 15
Parts
  • shared clock
  • 4×4\times D flip-flop chain
  • XOR feedback taps 3,43,4
  • serial m-sequence output
Limits of the model
  • period 24−1=152^4-1=15
  • all-zero state forbidden
  • primitive polynomial taps
Diagnosis challenge The fault is hidden. Work it out from the changed outputs first.