CS302 - Lab Manual - Week No
CS302 - Lab Manual - Week No
Parts Required
numbers A and B and determine their relative magnitude. The outcome of the comparator is specified by
three binary variables that indicate whether A>B, A=B or A<B.
A = A3 A2 A1 A0 B = B3 B2 B1 B0
The equality of the two numbers and B is displayed in a combinational circuit designated by the symbol
(A=B).
This indicates A greater than B, then inspect the relative magnitude of pairs of significant digits starting
from most significant position. A is 0 and that of B is 0.
The same circuit can be used to compare the relative magnitude of two BCD digits.
Truth Table