Practice

Digital circuit debugging problems

Most engineering time goes into designs that nearly work. Each of these problems hands you one: a counter that resets at 8 instead of 10, a JK flip flop with its inputs swapped, an async FIFO whose full flag arrives a cycle late.

122 problems13 easy, 70 medium, 39 hard

You run the tests, read which ones fail and where the waveform goes wrong, and fix the circuit with as few edits as the problem allows.

What these problems cover

  • Wrong or swapped gates in combinational logic
  • Flip flop wiring, polarity and reset mistakes
  • Counters that skip, stick or reset at the wrong count
  • Clocks used as data and data used as clocks
  • Synchronizer and FIFO flag bugs

Problems by track

Gate-Level Logic6

Combinational Building Blocks8

Latches and Flip-Flops10

Counters18

6 more in the Counters track

Shift Registers9

Finite State Machines8

Arithmetic and ALU Design1

Clocking and Synchronization6

Fault Testing and Verification10

Interview Circuit4

More problems42

How your answer is checked

The broken circuit runs on the circuit simulator against the problem's tests, clocked cycle by cycle where it is sequential. Your fix passes when every test does, within the problem's edit budget.

Questions

What is the edit budget?
The number of changes you may make. It stops a fix from being a full rebuild, so you have to find the actual fault.
Are these free?
Every problem statement is free to read. The debugging problems are part of Codiode Pro; each track's free problems are a good place to start first.