Lab3 Arithmetic Circuit
Lab3 Arithmetic Circuit
2 bit comparator
The comparison of two numbers is an operation that determines whether one number is greater than, equal
to, or less than the other number.
Two numbers, A and B, can be compared by first subtracting A - B as is done in the previous design.
If the output in S is equal to zero, then A = B.
The output carry from C4 determines the relative magnitudes of the numbers:
When C2 = 1, A ≥ B;
when C2 = 0, A < B;
and when C2 = 1 and S≠0, A>B.
2 -bit
Construct the comparator circuit and test its operation. Use at least three sets of numbers for A and B to
check each of the outputs x, y, and z.
A B x y z
2-bit array multiplier
Design and implement a 2-bit array multiplier: Z=XY, Where X=x1x0, Y=y1y0, and P=
p3p2p1p0,