6.magnitude Comparator
6.magnitude Comparator
The same circuit can be used to compare the relative magnitude of two
To design and implement
(i) 2 – bit magnitude comparator using basic gates. BCD digits.
(ii) 8 – bit magnitude comparator using IC 7485. Where, A = B is expanded as,
A = B = (A3 + B3) (A2 + B2) (A1 + B1) (A0 + B0)
APPARATUS REQUIRED:
THEORY:
TRUTH TABLE
A1 A0 B1 B0 A>B A=B A<B
0 0 0 0 0 1 0
0 0 0 1 0 0 1
0 0 1 0 0 0 1
0 0 1 1 0 0 1
0 1 0 0 1 0 0
0 1 0 1 0 1 0
0 1 1 0 0 0 1
0 1 1 1 0 0 1
1 0 0 0 1 0 0
1 0 0 1 1 0 0
1 0 1 0 0 1 0
1 0 1 1 0 0 1
1 1 0 0 1 0 0
1 1 0 1 1 0 0
1 1 1 0 1 0 0
1 1 1 1 0 1 0
PIN DIAGRAM FOR IC 7485: TRUTH TABLE:
0001 0000 1 0 0
0001 0000
0000 0001 0 0 1
0000 0001
PROCEDURE:
(i) Connections are given as per circuit diagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
LOGIC DIAGRAM:
8 BIT MAGNITUDE COMPARATOR
RESULT:
Thus the 2-bit and 8-bit magnitude comparator was designed and
verified using the logic gates.