A comparator is a combinational circuit used to compare two binary numbers.
2-bit Comparator:-
2-bit Comparator is a combinational circuit used to compare two binary number consiting of two bits. When two binary numbers A & B are compared the output can be any of these three cases i.e. …