Computer science - implement a function

Click For Summary

Discussion Overview

The discussion revolves around implementing a function using 3-to-8 decoders to determine if a 4-bit binary number falls within the range of 3 to 12 inclusive. Participants explore the requirements for the circuit design and the number of decoders needed, along with the use of OR gates.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant seeks assistance in implementing a function F(A,B,C,D) = A’CD + A’B + AB’ + AC’D’ using 3-to-8 decoders.
  • Several participants inquire about the allowed components beyond 3-to-8 decoders, specifically mentioning OR gates.
  • Some participants suggest that the function could potentially be implemented with two 3-to-8 decoders if OR gates are permitted, while others argue that more decoders would be necessary without them.
  • One participant asserts that a 3-to-8 decoder can implement NOR gates, which could theoretically allow for the construction of any logical circuit.
  • Another participant claims they can achieve the function with two 3-to-8 decoders and three 2-input OR gates, expressing hesitation to provide a complete solution due to the homework-like nature of the question.
  • There is a discussion about the minimum number of OR gates required when using two decoders, with differing opinions on whether three is sufficient.
  • One participant suggests that the expression A’B + AB’ may require more min terms and OR gates depending on the approach taken, hinting at the use of boolean constants.

Areas of Agreement / Disagreement

Participants express differing views on the number of 3-to-8 decoders and OR gates required to implement the function, indicating that no consensus has been reached regarding the optimal solution.

Contextual Notes

Participants mention various assumptions about the use of components and the construction of boolean functions, but these assumptions remain unresolved and may affect the proposed solutions.

XodoX
Messages
195
Reaction score
0
Not sure where to put this thread. I'll just post it here. I need help with the following:
A 4-bit binary number ABCD is applied to a circuit on 4 lines A, B, C, D. The circuit has a single output F which is true if the input number is in the range of 3 to 12 inclusive. If the function F(A,B,C,D) = A’CD + A’B + AB’ + AC’D’ realize this functionality , how many 3-to-8 decoders are required to release this function? Implement the function.


Can someone tell me how to do this? I have no idea. I'd really appreciate it.
 
Mathematics news on Phys.org
What are you allowed to use other than 3-to-8 decoders -- OR gates?
 
CRGreathouse said:
What are you allowed to use other than 3-to-8 decoders -- OR gates?

Probably...these won't work?
 
Without building it, I would guess that it could be done with two 3-to-8s if you allow ORs, but it certainly requires 3+ if you don't.
 
CRGreathouse said:
Without building it, I would guess that it could be done with two 3-to-8s if you allow ORs, but it certainly requires 3+ if you don't.

a 3 to 8 decoder can implement a 2 or 3 input NOR gate. You can build all possible
logical circuits with NOR gates
 
willem2 said:
a 3 to 8 decoder can implement a 2 or 3 input NOR gate. You can build all possible
logical circuits with NOR gates

Yes, but you'll need many 3-to-8 decoders if you build it this way! The question asked for the minimal number of decoders, so I had to know the actual requirements.
 
Yes I can do it with just two 3-to-8 decoders plus three 2-input OR gates. I've been a bit reluctant to contribute to this thread or post a complete solution becasue it certainly looks a bit like homework.

Xodox, tell us what you already know or have done. Do you know what a "min-term" is? Do you know how to construct a boolean function as a sum of min-terms? Have you learned that a decoder can be considered as a "min-term generator"?
 
uart said:
Yes I can do it with just two 3-to-8 decoders plus three 2-input OR gates.

Good for you. It was easy enough for me to do it with only two 3-to-8s but I used more ORs.

I wonder if 3 is the minimum number of ORs with 2 decoders.
 
CRGreathouse said:
Good for you. It was easy enough for me to do it with only two 3-to-8s but I used more ORs.

I wonder if 3 is the minimum number of ORs with 2 decoders.

Hi CRGreathouse, I think I know where you needed more OR gates. The A’CD + AC’D’ part is easy right, just two min terms of (A,C,D); but the A’B + AB’ may require more min terms and hence more OR gates depending on how you approach it.

You can however easily make A’B + AB’ with only two min terms of (A,B,X) if you make an appropriate choice for "X". Hint: think about boolean constants rather than only variables. :)
 
  • #10
Nah, my approach was different. But thanks for the tip.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
10
Views
3K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
5K