Practical: 6
Aim: (A) Implement and verify 4-bit comparator.
(B) Using 4-bit comparator implements 8-bit comparator.
Apparatus: Digital Trainer Kit, IC 7485, 7404, Connecting Wires, Etc.
Theory:
A magnitude digital Comparator is a combinational circuit that compares two digital or
binary numbers in order to find out whether one binary number is equal, less than, or
greater than the other binary number. We logically design a circuit for which we will have
two inputs one for A and the other for B and have three output terminals, one for A > B
condition, one for A = B condition, and one for A < B condition.
A comparator used to compare two binary numbers each of four bits is called a 4-bit
magnitude comparator. It consists of eight inputs each for two four-bit numbers and three
outputs to generate less than, equal to, and greater than between two binary numbers.
In a 4-bit comparator, the condition of A>B can be possible in the following four cases.
1. If A3 = 1 and B3 = 0
2. If A3 = B3 and A2 = 1 and B2 = 0
3. If A3 = B3, A2 = B2 and A1 = 1 and B1 = 0
4. If A3 = B3, A2 = B2, A1 = B1 and A0 = 1 and B0 = 0
Similarly, the condition for A<B can be possible in the following four cases.
1. If A3 = 0 and B3 = 1
2. If A3 = B3 and A2 = 0 and B2 = 1
3. If A3 = B3, A2 = B2 and A1 = 0 and B1 = 1
4. If A3 = B3, A2 = B2, A1 = B1 and A0 = 0 and B0 = 1
A) 4 BIT MAGNITUDE COMPARATOR
Pin Configuration of 7485:
Subject Code: Digital Logic and Design Computer Engineering Department,
Subject Name: 203ES Birla Vishvakarma Mahavidyalaya
Pin Diagram & Logic Symbol:
Fig: 6.1 Pin Diagram & Logic Diagram of IC 7485
B) 8 BIT MAGNITUDE COMPARATOR
Fig: 6.2 Pin connection of 8 BIT MAGNITUDE COMPARATOR
Procedure:
Make connections on the Trainer Kit as per the Pin diagram of IC7485 and give
required inputs using one IC.
Test the output for different input values.
Repeat the process with two IC7485 connected as per Fig. 6.2.
Subject Code: Digital Logic and Design Computer Engineering Department,
Subject Name: 203ES Birla Vishvakarma Mahavidyalaya
Results:
Observation Table for 4 bit Comparator:
Observation Table for 8 bit Comparator:
Conclusion:
Subject Code: Digital Logic and Design Computer Engineering Department,
Subject Name: 203ES Birla Vishvakarma Mahavidyalaya