Question: Explain the concept of comparator. Develop the truth table for 2-bit binary comparator & design it using a suitable decoder & additional gates.

0

0

**Concept of Comparator:**

A comparator is a special combinational circuit designed primarily to compare the relative magnitude of two binary numbers.

Figure below shows the block diagram of an n-bit comparator.

It receives two n-bits numbers A and B as inputs and the outputs are A>B, A=B and A<b.< p="">

Depending upon the relative magnitudes of the two numbers, one of the outputs will be high.

**2-bits binary comparator**

The truth table for 2-bit binary comparator is as shown in table below:

**K-map Simplification:**

**Logic Diagram:**

Please log in to add an answer.