Build 1 bit comparator using 2 to 4 decoder?

Click For Summary
To build a 1-bit comparator using a 2-to-4 decoder, a truth table is established showing the outputs for A and B comparisons. The confusion arises from the decoder's four outputs compared to the three outputs needed for the comparator. The solution involves using the decoder's outputs based on minterms to generate the required comparator outputs. Adjustments to the circuit are necessary, specifically changing AND gates to OR gates to align the outputs correctly. The discussion emphasizes the importance of matching decoder outputs to the truth table for accurate circuit design.
asdf12312
Messages
198
Reaction score
1
build 1 bit comparator using "2 to 4" decoder??

Homework Statement


1eux48.png


The Attempt at a Solution


worked out truth table:
Code:
A     B    A>B   A<B   A=B
0     0     0     0     1
0     1     0     1     0
1     0     1     0     0
1     1     0     0     1

prty sure that's right. just need part B now. now i have a 2 by 4 decoder, know wat it is, just confused because the outputs is different from what i have in the truth table. also, there is only 3 outputs in my truth table, the decoder has 4 outputs. so how does that work :\
 
Last edited:
Physics news on Phys.org
You need to make a circuit with the Decoder plus gates to generate those three outputs. What does the raw output of the decoder look like (what is its truth table given A and B as inputs)?

BTW, nice change to code tags on your table! :smile:
 
decoder outputs are from minterms. so a'b' outputs 1 in the 0 output, a'b outputs 1 in the 1 output, and so on. so all i have to do is change the output of ab input to match the output of a'b'? so that and gate will be an or instead: ab + a'b' ??
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
18K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 4 ·
Replies
4
Views
5K