The comparator is a circuit that compares two 4 bit binary numbers. Let A and B are two binary numbers. The output of the circuit tells us A=B or A<B or A>B 4-bit Comparator
The schematic diagram A=B A<B A>B A input B input MSB L SB
First let A and B are same A=1010 B=1010 (here A=B) Now Let A is less than B A=0011 and B=0100 Let A is greater than B A=1111(15) and B=1110 (14) Example
T he simplest multi-bit logic comparator, and can be used for such circuits as electronic locks and security devices where a binary password consisting of multiple bits is input to the comparator to be compared with another pre-set word. Applications