Projects / Ideas / Breadboard ALU

Breadboard ALU

AdvancedDigital LogicIdeaReviewed
In short

How do you build a breadboard ALU?

Build a 4-bit arithmetic logic unit that adds, subtracts, ANDs and ORs, selected by two control lines. You need 74HC86 quad XOR gate × 2, 74HC08 quad AND gate × 2, 74HC32 quad OR gate × 2, 74HC4051 8-channel analog multiplexer × 4, DIP switch 8-position × 2, LED 5 mm red × 5, Resistor 330 Ω × 5, Resistor 10 kΩ × 10, Breadboard 1660 points (with base) × 2 and Jumper wires male to male (40 pcs, 20 cm).

Level
Advanced
Time
About 720 min
Parts
10
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Understand the heart of a CPU.

Parts list

How to build it

  1. Build a 4-bit adder
  2. Subtract by inverting B with XOR and setting carry in
  3. Add AND and OR paths
  4. Select the result with multiplexers
  5. Show the flags for zero and carry

Related projects

Common questions

What parts do I need for the breadboard ALU?

74HC86 quad XOR gate × 2, 74HC08 quad AND gate × 2, 74HC32 quad OR gate × 2, 74HC4051 8-channel analog multiplexer × 4, DIP switch 8-position × 2, LED 5 mm red × 5, Resistor 330 Ω × 5, Resistor 10 kΩ × 10, Breadboard 1660 points (with base) × 2 and Jumper wires male to male (40 pcs, 20 cm).

How long does the breadboard ALU take to build?

About 720 minutes for a advanced maker.