← 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 · mode=full 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 · 11 wires · 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
structural inventory
  • shared clock
  • 4×4\times D flip-flop chain
  • XOR feedback taps 3,43,4
  • serial m-sequence output
boundaries
  • period 24−1=152^4-1=15
  • all-zero state forbidden
  • primitive polynomial taps
diagnosis challenge Fault identity withheld: infer it from the changed outputs first.