Expt 4 - 2-Bit & 4-Bit Comparators - Final
Expt 4 - 2-Bit & 4-Bit Comparators - Final
EXPERIMENT-4A
Designing a 2 – bit Comparator using AND, OR and NOT gates
Apparatus : IC 7408 (AND), IC 7432 (OR), IC 7404 (NOT), IC 7486 (EX-OR), CDS Board
and Connecting Wires
Theory :
Truth Table :
DEPARTMENT OF ECE ACE ENGINEERING COLLEGE
The boolean equations for A>B, A=B and A<B can be obtained by using K-Map as
Logic Circuits :
Procedure :
Result : 2-bit Comparator using Logic gates is implemented and its truth table is verified.
DEPARTMENT OF ECE ACE ENGINEERING COLLEGE
EXPERIMENT-4B
Realize 4 – bit Comparator using 2 – bit Comparators
Apparatus : IC 7408 (AND), IC 7432 (OR), IC 7404 (NOT), IC 7486 (EX-OR), CDS Board
and Connecting Wires
Truth Table :
A 4-bit comparator uses 4-bits in input A (a3a2a1a0) and 4-bits in input B (b3b2 b1b0).
Therefore, the truth table of the 4-bit comparator is as follows :
From the table above, the Boolean equations for each output are obtained by using K-Map as :
G = a3b3′ + (a3⨀b3) a2b2′ + (a3⨀b3) (a2⨀b2) a1b1′ + (a3⨀b3) (a2⨀a2) (a1⨀b1) a0b0′
L = a3ʹ b3 + (a3⨀b3) a2ʹ b2 + (a3⨀b3) (a2⨀b2) a1ʹ b1 + (a3⨀b3) (a2⨀a2) (a1⨀b1) a0ʹ b0
DEPARTMENT OF ECE ACE ENGINEERING COLLEGE
Logic Circuit :
Procedure :
Result : 4 – bit Comparator using 2 – bit Comparators is realized and its truth table is verified.