CSE332 Lab Report 1
CSE332 Lab Report 1
Experiment No: 1
Experiment Title: Design of a 2-bit Logic Unit
Theory:
In this experiment we constructed a 2-bit logic unit which is a part of an ALU. This logic unit will
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. As we are
going to design a 2-bit logic unit, we will have two outputs which is one output for each of the 2
bits.
Circuit Diagram:
Data/Readings/Truth Table:
A1 A0 B1 B0 AND1 AND0 OR1 OR0 XOR1 XOR0 NOTA1 NOTA0
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
Discussion: