Lab 01 Cse 332

Download as pdf or txt
Download as pdf or txt
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: 01

Experiment Name: Design a 2 Bit Logic Unit

Experiment Date: 29-06-2021


Report Submission Date: 5-7-2021
Section: 02
Group Number: N/A

Student Name: A. S. M. Samiul Islam Score


Student ID: 1921826642

Remarks:
Exp: Lab 01 – Design a 2 Bit Logic Unit

Objectives:

In this experiment our objectives are

• To design and implement a 2-bit logic unit, a part of an ALU, using AND IC, OR IC,

XOR IC, NOT IC and 4:1 Multiplexer.

Equipment List:

1. Trainer board/ Bread board.

2. AND IC(7408)

3. OR IC(7432)

4. XOR IC(7486)

5. NOT IC(7404)

6. 4:1 Multiplexer

Theory:

In this experiment we constructed a 2-bit logic unit. This 2-bit logic unit is actually a part of an

ALU. This logic unit have 4 micro-operations which are AND, OR, XOR and NOT operations.

Logic micro operations are very useful for manipulating individual bits or a portion of a word

stored in a register. They can be used to change bit values, delete a group of bits or insert a new

set of bits in a register. So, we designed a 2-bit logic unit that have two outputs which is one output

for each of the 2 bits.


Truth Table:

A1 A2 B1 B2 AND1 AND2 OR1 OR2 XOR1 XOR2 NOT NOT


A1 A2
0 0 0 0 0 0 0 0 0 0 1 1
0 0 0 1 0 0 0 1 0 1 1 1
0 0 1 0 0 0 1 0 1 0 1 1
0 0 1 1 0 0 1 1 1 1 1 1
0 1 0 0 0 0 0 1 0 1 1 0
0 1 0 1 0 1 0 1 0 0 1 0
0 1 1 0 0 0 1 1 1 1 1 0
0 1 1 1 0 1 1 1 1 0 1 0
1 0 0 0 0 0 1 0 1 0 0 1
1 0 0 1 0 0 1 1 1 1 0 1
1 0 1 0 1 0 1 0 0 0 0 1
1 0 1 1 1 0 1 1 0 1 0 1
1 1 0 0 0 0 1 1 1 1 0 0
1 1 0 1 0 1 1 1 1 0 0 0
1 1 1 0 1 0 1 1 0 1 0 0
1 1 1 1 1 1 1 1 0 0 0 0
IC Circuit Diagram:
Discussion:
In this experiment we have constructed a 2-bit logic unit. This 2-bit logic unit is actually a part of

an ALU. This logic unit have 4 micro-operations which are AND, OR, XOR and NOT operations.
At first, we have designed the AND IC, OR IC, XOR IC, NOT IC and 4:1 Multiplexer using the

gates. Then we used these IC to implement a 2 Bit Logic Unit. Logic micro operations are very

useful for manipulating individual bits or a portion of a word stored in a register. This multiplexer
has two selection bits and also four input and one output. We need two multiplexers. By using the

selection bits we have gathered the output of connected ICs. In this design, it has two outputs
which are one output for each of the 2 bits. We have simulated the circuit in logisim and compared

the results with the truth table. We have found out that our simulation worked properly and

produced desired results. Changing the input of S2 and S1 input we can add, subtract,
multiplication and division.

You might also like