Digital Logic Design Practical (CS302P)
Assignment no: 02
BC230415040
Question no:01
You are provided with a 4-Bit Magnitude Comparator through a truth table:
• Generate the Boolean Expression for the OUTPUTS of a Comparator (A = B, A < B & A >
B).
• Draw the AND-OR Based 4-Bit Magnitude Comparator Circuit for all three (3) Outputs on
a Workbench.
Solution:
Task 1: Boolean Expression
A = B: (A3 B3) (A2 B2) (A1 B1) (A0 B0)
A > B: (A3B3' + A3'A2B2' + A3'A2'A1B1' + A3'A2'A1'A0B0')'
A < B: (A3B3' + A3A2B2' + A3A2A1B1' + A3A2A1A0B0')'