Hardware Design of an or Arithmetic Logic Unit.ppt
1. Hardware Design of an
Arithmetic Logic Unit
(ALU)
Presentation for CSE 4th
Batch
2. Outline
Introduction
ALU Design
Full Adder
A input device
B input device
Logical Operation Device
Conclusion
Future Work
References
Acknowledgements
3. Introduction
An arithmetic-logic unit (ALU) is the part of a
computer processor (CPU) that carries out arithmetic
and logic operations on the operands in computer
instruction words.
The ALU includes storage places for input operands,
operands that are being added, the accumulated
result (stored in an accumulator), and shifted results.
The flow of bits and the operations performed on
them in the subunits of the ALU is controlled by
gated circuits.
4. ALU Design
The ALU is a combinational circuit that continuously computes its outputs as a
function of its inputs. A change in its inputs will produce valid outputs by the
strobe time of the current clock cycle.
This ALU uses only one bus and consist of a full adder, two inputs, A and B, and a
logical device, which is the part in charge of the ands, ors, and shifts.
5. Full Adder
The 8-bit full adder consists of eight 1-bit full adders. Each 1-bit adder has
three inputs and two outputs. It receives two bits to add and a carry-in if
needed. The outputs are the sum and a carry-out if generated.
Full Adder
Full 8-
bit
adder
6. A input device
The A input part of
the chip consist of 8
AND gates and three
OR gates connected
as follows to makes
the instruction of ADD
and SUB
corresponding to the
Register A. This part
also increments the
Program counter by
three.
7. B input device
The register B is
also represented
with a group of 8 D-
Flip-Flops. The
input part of the
chip consists of
eight XOR gates,
and two OR gates
connected to deal
with the NEG, NOT
and SUB
instructions.
8. Logical Operation Device
The 8-bit full adder consists of eight 1-bit full adders. Each 1-bit adder has
three inputs and two outputs. It receives two bits to add and a carry-in if
needed. The outputs are the sum and a carry-out if generated.