Bahria University, Lahore Campus: Department of Computer Sciences
Bahria University, Lahore Campus: Department of Computer Sciences
Bahria University, Lahore Campus: Department of Computer Sciences
Objective(s):
Lab Tasks:
Task 1: Design a simple 1-bit Comparator with basic logic gates using multisim. Also write its
truth table.
Task 2: Design a simple 2-bit Comparator with basic logic gates using multisim. Also write its
truth table.
NOTE: 2-bit comparator consists of four inputs and three outputs to generate less than, equal to
and greater than between two binary numbers.
Total 20 Signature
Note : Attempt all tasks and get them checked by your Lab Instructor
Lab 09: Comparator Circuit
Objective(s):
Tool(s) used:
Overview:
Comparator constructed with basic logic gates. Construct the circuit on breadboard.
a) Theoretical
Design
Truth Table
Input Output
0 0 0 0 1
0 1 0 1 0
1 0 1 0 0
1 1 0 0 1
Time: 30 Minutes
Task 2: Design a simple 2-bit Comparator with basic logic gates using multisim. Also write its
truth table.
Design:
Truth Table:
Input Output
0 0 0 0 0 1 0
0 0 0 1 1 0 0
0 0 1 0 1 0 0
0 0 1 1 1 0 0
0 1 0 0 0 0 1
0 1 0 1 0 1 0
0 1 1 0 1 0 0
0 1 1 1 1 0 0
1 0 0 0 0 0 1
1 0 0 1 0 0 1
1 0 1 0 0 1 0
1 0 1 1 1 0 0
1 1 0 0 0 0 1
1 1 0 1 0 0 1
1 1 1 0 0 0 1
1 1 1 1 0 1 0