Coa Bcs352 Lab-7
Coa Bcs352 Lab-7
APJ
GL BAJAJ
Institute of Technology & Management
Abdul Kalam Technical University, Lucknow, U.P., India]
Department of Computer Sc. & Engineering (AI)
Greater Noida
Experiment No.:7
Theory:
Design of ALU: An 8-bit arithmetic logic unit (ALU) is a combinational circuit which operates on two
8-bit input buses based on selection inputs. The ALU performs common arithmetic (addition and
subtraction) and logic (AND, INV, XOR, and OR) functions. These operations are common to all
computer systems and thus are an essential part of computer architecture.
A simple block diagram of a 4-bit ALU for operations AND ,OR ,XOR and Add is shown here :
Using a similar approach, the 8-bit ALU block is combined using 8 1-bit ALU block.
for Control signal S2 = 0, S1 = 0 & S0 = 0, the output is A AND B,
for Control signal S2 = 0, S1 = 0 & S0 = 1, the output is A OR B,
for Control signal S2 = 0, S1 = 1 & S0 = 0, the output is A XOR B,
for Control signal S2 = 0, S1 = 1 & S0 = 1, the output is A NOR B,
for Control signal S2 = 1, S1 = 0 & S0 = 0, the output is A NAND B,
for Control signal S2 = 1, S1 = 0 & S0 = 1, the output is A ADD B,
for Control signal S2 = 1, S1 = 1 & S0 = 0, the output is A SUB B,
for Control signal S2 = 1, S1 = 1 & S0 = 1, the output is A XNOR B,
[Approved by AICTE, Govt. of India & Affiliated to Dr. APJ
GL BAJAJ
Institute of Technology & Management
Abdul Kalam Technical University, Lucknow, U.P., India]
Department of Computer Sc. & Engineering (AI)
Greater Noida
OUTPUT:
RESULT: An 8-bit ARITHMETIC LOGIC UNIT is designed/implemented, and its outputs are
verified.
VIVA QUESTIONS
1. ALU is the place where the actual executions of instructions take place during the processing
operation (T/F).
2. Which of the following is not a bitwise operator?
a) |
b) ^
c) .
d) <<
3. The sign magnitude representation of -1 is __________/
4. The ALU gives the output of the operations, and the output is stored in the ________.
5. The bitwise complement of 0 is ___________.