Arithmetic Logic Unit
Arithmetic Logic Unit
(
(ALU))
Review: Bus Concept
Review: CPU Buildingg Blocks
Registers
g
(IR, PC, ACC)
Control Unit
(CU)
Arithmetic
Logic
g Unit
(ALU)
The Simplest Computer Building Blocks
ALU 3
5
Status Register
g (FLAG)
( ) Accumulator ((ACC))
.
CPU RAM
What’ss ALU?
What
1. ALU stands for: Arithmetic Logic Unit
1
2. ALU is a digital circuit that performs
Arithmetic (Add
(Add, Sub
Sub, . . .)) and Logical
(AND, OR, NOT) operations.
3 John
3. J h Von
V Neumann
N proposed d the
h ALU in
i
1945 when he was working on
EDVAC(El
EDVAC(Electronic i di
discrete variable
i bl
automatic computer).
Typical Schematic Symbol of an ALU
A and B: the inputs to the ALU
(operands)
R: Output or Result
F: Code or Instruction from the
C
Control l Unit
U i ( as op‐code)
d )
D: Output status; it indicates cases
such as:
•carry‐in
•carry‐out,
y ,
•overflow,
•division‐by‐zero
•And . . .
Let’s Build a 1‐Bit ALU
This is an one-bit ALU which can do Logical AND and Logical OR operation.