Practice

Arithmetic circuit and ALU design problems

Arithmetic is where gate count and delay start to matter. These problems build the half adder and full adder, chain them into a ripple carry adder, then make it faster with carry lookahead and carry select.

125 problems15 free to solve22 easy, 65 medium, 38 hard

From there they move to subtraction, overflow and signed numbers, BCD addition and its correction step, array multipliers and an ALU with a function select, in circuits and in Verilog.

What these problems cover

  • Half and full adders and subtractors
  • Ripple carry, carry lookahead and carry select adders
  • Two's complement subtraction, overflow and saturation
  • BCD adders and their correction logic
  • Array multipliers and accumulators
  • ALU slices and ALUs with flags

Free to start

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

Problems by track

Arithmetic and ALU Design32

20 more in the Arithmetic and ALU Design track

Digital Foundations18

6 more in the Digital Foundations track

Combinational Building Blocks16

4 more in the Combinational Building Blocks track

Counters1

Shift Registers1

Datapath and Storage1

Clocking and Synchronization3

Interview Circuit4

Verilog Syntax and Language Basics4

Combinational RTL3

Sequential RTL1

FSM Coding1

Synthesis Intuition6

Datapath Design13

1 more in the Datapath Design track

Pipelining3

Debug and Verification1

More problems17

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 these check speed or only correctness?
Correctness first: every case in the test vectors or testbench has to pass. Some problems then ask about the critical path or gate count, and RTL problems show the cell count Yosys gets from your design.
Which order should I solve them in?
The Arithmetic and ALU Design track orders them, from the full adder to the ALU. The Datapath Design track continues in Verilog.