Task 1: Make The Circuit of 2-Bit Magnitude Comparator and Fill The Truth Table. Solution: Truth Table
Task 1: Make The Circuit of 2-Bit Magnitude Comparator and Fill The Truth Table. Solution: Truth Table
Task 1: Make The Circuit of 2-Bit Magnitude Comparator and Fill The Truth Table. Solution: Truth Table
02-131192-042
LAB 05
Task 1: Make the circuit of 2-bit magnitude comparator and fill the truth table.
SOLUTION:
Truth table
Ao A1 Bo B1 A<B A=B A>B
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
EQUATION:
A<B
Using k-map
B1Bo
A1Ao 00 01 11 10
00 1 1 1
01 1 1
11
10 1
1
FIZZAH MUKHTAR
02-131192-042
A>B
Using k-map
B1Bo
A1Ao 00 01 11 10
00
01 1
11 1 1 1
10 1 1
A=B
Using k-map
A1Ao B1Bo
00 01 11 10
00 1
01 1
11 1
10 1
2
FIZZAH MUKHTAR
02-131192-042
Task 2: Make the circuit of 3-bit magnitude comparator and fill the truth table.
Solution:
Truth table
A B C Y
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
3
FIZZAH MUKHTAR
02-131192-042
1 1 0 0
1 1 1 0
SOLUTION:
Y = A’B’C + A’BC’ + AB’C’ + ABC
Y = C (A’B’ + AB) + C’ (A’B + AB’)
Y = C (A XNOR B) + C’ (A XOR B)
CIRCUIT DIAGRAM: