Comparator ECE 421 What is Digital Comparator Digital

  • Slides: 10
Download presentation
Comparator ECE 421

Comparator ECE 421

What is Digital Comparator? Digital comparator is a device that used in combinational logic

What is Digital Comparator? Digital comparator is a device that used in combinational logic systems for comparing two binary numbers. It takes binary numbers as inputs and produces 3 outputs; whether the numbers are greater than, less than or equal to each other. They are made of AND, NOT & NOR Gates.

Digital Magnitude Comparators are used in micro controller and CPUs for address comparing of

Digital Magnitude Comparators are used in micro controller and CPUs for address comparing of data and register and other arithmetic operations. It has variety of uses in the digital world. Every auto-turn-off device uses a comparator. The comparator is a decision-making device and it can be implemented in various control devices. Comparator IC has 2 inputs and 3 outputs. These 3 outputs are connected with separate operations.

Basic Operation Terms of Comparator Less than Equal Greater than If binary number “A”

Basic Operation Terms of Comparator Less than Equal Greater than If binary number “A” is less than “B” than “less than” output will produce HIGH state “ 1” also known as true. If and only if number A is equal to number B than “equal to” output will produce logic HIGH state “ 1”. Otherwise, the output will be LOW state “ 0”. If number A is greater than B than “greater than” output will produce HIGH state” 1”. If binary number “A” is greater than or equal to “B” than “less than” output will produce LOW state “ 0” also known as false. If A is less than or equal to B than “greater than” output will produce LOW state “ 0”.

Single Bit Comparator A B A<B (L) A=B (E) A>B (G) 0 0 0

Single Bit Comparator A B A<B (L) A=B (E) A>B (G) 0 0 0 1 1 1 0 L = A’B E = A’B’ + AB G = AB’

Circuit for each output

Circuit for each output

Full 1 -bit comparator

Full 1 -bit comparator

2 bits Magnitude Comparator

2 bits Magnitude Comparator