-40%
Build An 8-Bit Computer by Ben Eater (Part 2) - Registers and ALUs
$ 39.59
- Description
- Size Guide
Description
Build An 8-Bit Computer by Ben Eater - Registers and Arithmetic Logic Units (ALU) (Kit 2 of 4)Registers:
Most CPUs have several registers which store small amounts of data the CPU is processing. In our simple breadboard CPU, we'll build three 8-bit registers: A, B, and IR. The A and B registers are general-purpose registers. IR (the instruction register) works similarly, but we'll only use it for storing the current instruction that is being executed.
Arithmetic Logic Unit (ALU):
The arithmetic logic unit (ALU) part of a CPU is usually capable of performing various arithmetic, bitwise and comparison operations on binary numbers. In our simple breadboard CPU, the ALU is only able to add and subtract. It is connected to the A and B registers, and it outputs either the sum of A+B or the difference of A-B.
Theory
Before diving into building the ALU, check out these two videos (on YT). The first shows how we can use hardware to add numbers in binary. The second video explains how negative numbers work. Between the two videos, you'll know how to add negative numbers which means you'll know how to subtract!
Kit Includes:
Part No.
Qty.
Description
151116
10
Capacitor Ceramic Disc 0.1µF 25V ±20%
2153705
1
22 AWG 6-Color Solid Tinned-Copper Hook-Up Wire 25 Foot
2234071
5
LED Blue Diffused 5mm T-1 3/4 470nm 350mcd
2283767
4
830 Point Solderless Plug-in Breadboard with 4 Power Rails 21-26AWG ABS
333973
30
LED Red Diffused 5mm (T-1 3/4) 643nm 75mcd 36VA
46922
6
IC 74LS173 4-BIT D-TYPE REGISTER 3-STATE OUTPUT
47212
4
IC 74LS245 Tri-State Octal Bus Transceiver
47423
2
IC 74LS283 4-BIT BINARY FULL ADD FAST CARRY
48098
2
IC 74LS86 QUAD 2-INPUT EXCLUSIVE OR GATE
690700
40
Carbon Film Resistor 220 Ohm 1/4 Watt 5%
697549
10
LED Yellow Diffused 5mm (T-1 3/4) 588nm 29mcd 50VA
Resources & Downloads
Registers:
74LS173 4-bit D register datasheet
(.pdf)
ALU:
74LS86 Quad XOR gate datasheet
(.pdf)
74LS245 Octal bus transceiver datasheet
(.pdf)
74LS283 4-bit adder datasheet
(.pdf)
Flags Register:
74LS02 Quad NOR gate datasheet
(.pdf)
74LS08 Quad AND gate datasheet
(.pdf)
About the author, Ben Eater
Eater.net
(off-site)
Sub reddit for Ben Eater
(off-site)