Experiment No: 05 Name of The Experiment: Objectives:: Required Component
Experiment No: 05 Name of The Experiment: Objectives:: Required Component
Theory:
In the computer system, ALU is a main component of the central processing unit, which
stands for arithmetic logic unit and performs arithmetic and logic operations. It is also known
as an integer unit (IU) that is an integrated circuit within a CPU or GPU, which is the last
component to perform calculations in the processor. It has the ability to perform all processes
related to arithmetic and logic operations such as addition, subtraction, and shifting
operations, including Boolean comparisons (XOR, OR, AND, and NOT operations). Also,
binary numbers can accomplish mathematical and bitwise operations. The arithmetic logic
unit is split into AU (arithmetic unit) and LU (logic unit). The operands and code used by the
ALU tell it which operations have to perform according to input data. When the ALU
completes the processing of input, the information is sent to the computer's memory.
Implementation:
Required Component:
1. Two input pins (8 bits wide) Reg A and Reg B.
2. One input pin for OE.
3. Two output pins (8 bits wide) Dout and ALU result.
4. One regulated buffer to enable output on the bus.
5. One Adder from Math folder.
6. One output pin stores the carry from the adder.
MAR and ALU Relationship: A basic ALU has three parallel data consisting of two
Input (A and B) and a result output (Y). Each data bus is a group of signals that conveys one
Binary integer number. Typically, the A, B and Y bus widths (the number of signals comprising
each bus) are identical and match the native of the external circuitry (e.g., the Encapsulating
CPU or other processor). It holds the address of the location to be accessed from memory. MAR
and MDR (Memory Data Register) together facilitate the communication of the CPU and the
main memory.
Image:
Result: First ‘1’ of Reg A input is no pin ‘1’. Then no pin '1' of ALU result output will be '1'.
When any pin '1' of Reg A input is '1' and any pin '1' of Reg B input is not '1'. Then the carry out
output will be '1'. When no pin of '1' and '8' Reg A input is '1', no pin of '1' and '8' Reg B input is
'1' and OE input is '1'. Then no pin '7' of daut output will be '1'. And no pin '7' of ALU result
output will be '1'.