Arithmetic Logic Unit

The Arithmetic Logic Unit (ALU) is the centrepiece of any modern day computer

White a 6-bit wide instruction gives the ALU a possible 26 instructions

Control Bits

The ALU has the choice between two basic functions, logical And and Addition

Bit Description
za Zero input A
na Negate input A
zb Zero input B
nb Negate input B
f Selection between & and +
no Negate output
Example
za na zb nb f no output
0 0 1 1 1 0 a-1
a a a a a a-1 a-1 a-1
b b b 0 -1
(11111111)
^ ^ ^

Implementation

Notice that the ALU is composed of