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
- 4-Bit SISO: Basic Chain Construction
- 4-Bit SISO: Continuous Data Stream Trace
- 4-Bit SISO with Shift Enable
- SISO as a Programmable Delay Line: Tap Selection
- SISO: Clock Missing on One Stage Debug
- SISO: Wrong D-to-Q Wiring Debug
- 4-Bit SISO: Pipeline Latency Waveform
- SISO with Synchronous Clear
- Two 4-Bit SISOs in Series: Total Latency
- SISO Recirculating Memory
- SISO: Recirculating Register Waveform Verification
- 4-Bit SIPO: Construction from SISO
Latches and Flip-Flops2
Counters9
- Bidirectional Ring Counter
- 4-Bit Johnson Counter: Basic Construction
- Johnson Counter: 8-Phase Clock Generator
- 4-Bit Ring Counter: Basic Construction with Initial Preset
- 4-Bit Ring Counter: Full Sequence Trace
- LFSR: Self-Correction for All-Zeros Lockup
- LFSR Sequence Trace: Non-Binary Pattern Verification
- LFSR vs. Binary Counter: Timing Advantage Analysis
- LFSR as a Counter: 4-Bit Maximal-Length Sequence
Datapath and Storage1
Clocking and Synchronization1
Fault Testing and Verification2
Interface and Communication Circuits17
- Shift Register Debouncer
- Symmetric Shift Register Debouncer
- Basic Serializer
- Byte Serializer with Busy Flag
- Valid Data Serializer
- Endian Swapping Serializer
- Basic Deserializer
- Buffered Deserializer
- Sync Word Detector
- Byte Aligned Deserializer
- Full UART Receiver
- UART Transmitter Data Shifter
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.