Build 1 bit comparator using 2 to 4 decoder?

  • Thread starter asdf12312
  • Start date
  • #1
199
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 thats 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:

Answers and Replies

  • #2
berkeman
Mentor
61,278
11,780
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:
 
  • #3
199
1
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' ??
 

Related Threads on Build 1 bit comparator using 2 to 4 decoder?

Replies
4
Views
2K
Replies
1
Views
599
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
7
Views
7K
  • Last Post
Replies
10
Views
2K
Replies
9
Views
3K
  • Last Post
Replies
6
Views
9K
Replies
0
Views
3K
Replies
4
Views
3K
Top