You are on page 1of 6

North South University

Department of Electrical & Computer Engineering


LAB REPORT
Course Name: CSE332L- Computer Organization and Architecture Lab
Experiment Number: 02

Experiment Name:

Experiment Date:
Report Submission Date: 28/06/2022
Section: 02
Group Number: 09

Student Name: Score


Student ID:
Remarks:

Exp: Lab 02 – Design a 4 Bit Arithmetic Unit

Objectives:

 To perform 7 different type of micro operation.

Equipment List:

 Trainer board
 IC 7404, 7483 or 74283,74LS153
 Wires for connection.

Theory:

In this experiment, you will construct a 4-bit arithmetic unit which is a part of an
ALU. The arithmetic unit will be used to add and subtract two variables 4-bit
inputs, A and B, as well as increment, decrement, or transfer any of the inputs.

Arithmetic Operations:
Add- Each bit of input A is added with the corresponding bit of input B and the
sum appears at the output of each full adder along with any carry-out. Add with
carry- Each bit of input A and B are added with the input carry and the sum
appears at the output of each full adder along with any carry-out Subtract- Each
bit of input B is subtracted from the corresponding bit of input A and The
difference appears at the output of each full adder along with any borrow out.
Subtract with borrow- Each bit of input B is subtracted from A with borrow. The
difference and the borrow out appear at the output. Increment A- Each bit of A is
increased by 1 and the result appears at the output of each full adder.
Decrement A- Each bit of A is decreased by 1 and the result appears at the output
of each full adder. Transfer A- Each bit of A appears at the output of each full
adder, unmodified.

Data Table:

S1 S0 Cin A3 A2 A1 A0 B3 B2 B1 B0 Cout D3 D2 D1 D0 Micro operation

0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 Add

0 0 1 0 0 1 1 0 1 0 0 0 1 0 0 0 Add with Carry

0 1 0 0 0 1 0 1 1 0 0 0 1 1 0 1 Subtract with
Borrow

0 1 1 0 1 1 1 0 1 0 0 1 0 0 1 1 Subtract

1 0 0 1 0 1 1 0 1 0 0 0 1 0 1 1 Transfer A

1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 1 Increment A

1 1 0 1 0 1 0 1 0 0 0 1 1 0 0 1 Decrement A

1 1 1 1 0 0 1 0 1 1 1 1 1 0 0 1 Transfer A
Logic Circuit Diagram:
Discussion:

In this experiment, we build a 4-bit arithmetic unit which is a part of an ALU.


The arithmetic unit is used to add, add with carry, borrow subtraction, subtract,
increment, decrement, and transfer any 4-bit binary inputs. To build this circuit
we have used one NOT gate IC(Ic7404), two dual MUX ICS (ic74153) , and one
Full ADDER IC (ic7483). We have used each 4:1 dual MUXs to take the input
for the Full adder and the input of the MUXs is given by the user. This circuit can
perform 7 different tasks. When both the selection bit and carry-in bit are 0, it
performs Addition. When both the selection bit is 0 and the carry-bit is 1, it
performs Addition with carry. When the first selection bit (S0) is 1 and the
second selection bit (S1) and carry-bit is 0, it performs subtraction with borrow.
When the first selection bit (S1) and carry is 1 and the second selection bit is 0, it
performs subtraction. When the second selection bit(S1) is 1 and the first
selection bit and carry-bit are 0, it performs Transfer. When the second selection
bit(S1) and carry-bit are 1 and the first selection bit(S0) is 0, it performs
Increment. When bot the selection bit is 1 and carry-bit is 0, it performs
Decrement.

You might also like