Engineering Building a 2 bit comparator using either....

Click For Summary
To build a 2-bit comparator using multiplexers (MUXs), it's essential to create a truth table for both the comparator and MUXs. The MUX functions by selecting one input to output based on the control signals. When tackling such problems, focus on reducing the number of input combinations, in this case from 16 to fewer bits, while identifying three key conditions: one variable being larger, the other being larger, or both being equal. Using MUXs is considered a straightforward approach for this type of problem. Understanding these principles can simplify the design process for similar digital logic questions.
jisbon
Messages
475
Reaction score
30
Homework Statement
Build a 2-bit comparator using either two 74151 8-to-1 MUXs or two 3 to 8 binary decoders. Additional gates such as AND, NAND, OR, NOR, inverters can be used.
Relevant Equations
-
So I got this question while coming across, and I would like to seek some advice/tips for these types of questions.
1) Assuming I want to try and build using MUXs, I will get the truth table of both a 2 bit comparator and MUXs.

In this case: For comparator:
1599035278506.png

And for MUX:

1599035295443.png

So from what I learnt, MUX simply selects 1 input to be the output.
Is there any tips/tricks on to how to start with this question by possibly comparing the outputs? How should I be thinking to tackle these types of use 'something else'to build 'something' questions?
Thanks
 
Physics news on Phys.org
I haven't thought it all the way thru, but the first thing you must realize for THIS problem is there are 3 conditions to detect:
variable 1 is larger than variable 2
variable 2 is larger than variable 1
they are equal

In general, you want to reduce (compress) the incoming information from 16 possible bit combinations to some smaller number of bits; then repeat until you have reduced to the minimal number of output bits.

And I agree that using the MUX is probably the easiest approach mentally. (at least for you and me, others may differ!)

Cheers,
Tom
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
19K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 25 ·
Replies
25
Views
12K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
9K
Replies
2
Views
2K