Practice

Shift register problems

A shift register moves one bit per clock, and that one idea runs through serial links, pseudo random generators and delay lines. These problems build each type from flip flops, then use them for something.

143 problems9 free to solve26 easy, 67 medium, 50 hard

The later ones are the circuits shift registers end up inside: a deserializer that aligns bytes, an LFSR that has to visit every state, a serial transmitter that shares a bus.

What these problems cover

  • Serial in serial out, serial in parallel out, parallel in serial out and parallel in parallel out
  • Universal and bidirectional shift registers and their mode control
  • Linear feedback shift registers and their sequences
  • Serializers, deserializers and byte alignment
  • Ring and Johnson counters built from shift registers
  • Parameterized shift registers in Verilog

Free to start

Solve these with a free account. Every other statement on this page is free to read.

Problems by track

Shift Registers86

74 more in the Shift Registers track

Latches and Flip-Flops2

Counters9

Datapath and Storage1

Clocking and Synchronization1

Fault Testing and Verification2

Interface and Communication Circuits17

5 more in the Interface and Communication Circuits track

Interview Circuit2

Sequential RTL5

Synthesis Intuition1

Memory and Storage1

Pipelining2

Interfaces and Protocols7

SystemVerilog RTL1

Clock Domain Crossing and Synchronization2

Interview Circuit1

More problems3

How your answer is checked

Circuit problems run on the circuit simulator against the problem's test vectors, clocked cycle by cycle when they are sequential. Verilog problems are compiled with Icarus Verilog and run against a testbench, with the waveform and the Yosys schematic beside the result. Analysis questions are checked against their answer key.

Questions

Do I build these from flip flops or write them?
Most are built from flip flops and multiplexers on the circuit canvas. The RTL problems ask for the same registers in Verilog, including parameterized widths.
How is an LFSR problem checked?
The register is clocked through a test sequence and its state is compared with the expected one on every cycle, so a wrong tap shows up on the first cycle it changes.