Digital Design - decoders and multiplexer help

Click For Summary

Discussion Overview

The discussion revolves around the implementation of a function f(x3, x2, x1, x0) using digital design concepts, specifically focusing on decoders and multiplexers. The function outputs two values, y1 and y0, based on the parity of the number of 1's in the input binary representation. Participants are exploring how to approach the problem, including creating a truth table and understanding the implications of the outputs.

Discussion Character

  • Homework-related
  • Exploratory
  • Technical explanation

Main Points Raised

  • One participant presents a truth table for the function, indicating the expected outputs for all combinations of inputs.
  • Another participant questions the interpretation of the outputs when all inputs are zero, suggesting a contradiction in the initial understanding of y1 and y0.
  • A subsequent reply confirms that the outputs for the case of all zeros should indicate an even number of 1's, leading to a clarification of the outputs.
  • There is a suggestion that this clarification may simplify the implementation task for the original poster.

Areas of Agreement / Disagreement

Participants appear to agree on the interpretation of the outputs for the case of all zeros, but there is some initial confusion regarding the definitions of even and odd in this context. The discussion remains somewhat unresolved as participants are still exploring the implications of their interpretations.

Contextual Notes

There may be limitations in the understanding of how to implement the function using the specified digital components, as the original poster has indicated a lack of prior instruction on the topic.

Saterial
Messages
54
Reaction score
0

Homework Statement


Let f(x3; x2; x1; x0) = (y1; y0) such that y1 = 1 if the number of 1's in x3x2x1x0 is even, 0 otherwise, and, output y0 = 1 if the number of 1's in x3x2x1x0 is odd, 0 otherwise.

1. Implement f with four 2-to-4 decoders.
2. Implement f with a 4-to-1 multiplexer with selection inputs x0; x1 (in this order)

Homework Equations


The Attempt at a Solution



How do I even start solving this? This was a bonus as it was not really taught to me so I have to learn myself.

(IN THE CASE OF 0, 0, 0, 0, both y1 and y0 are 0 right? because there are no 1's at all)

I begin by making a truth table of:
Code:
x3 x2 x1 x0   y1 y0
 0  0  0  0    0  0
 0  0  0  1    0  1
 0  0  1  0    0  1
 0  0  1  1    1  0
 0  1  0  0    0  1
 0  1  0  1    1  0
 0  1  1  0    1  0
 0  1  1  1    0  1
 1  0  0  0    0  1
 1  0  0  1    1  0
 1  0  1  0    1  0
 1  0  1  1    0  1
 1  1  0  0    1  0
 1  1  0  1    0  1
 1  1  1  0    0  1
 1  1  1  1    1  0

Where do I go from here?
 
Last edited by a moderator:
Physics news on Phys.org
Saterial said:
(IN THE CASE OF 0, 0, 0, 0, both y1 and y0 are 0 right? because there are no 1's at all)

Zero is an even number.

If x3..x0 | y1,y0 = 0,0,0,0 | 0,0 then y1 would indicate: "number of ones is not even" y0 would indicate "number of ones is not odd" --a contradiction.
 
So that would mean the output of y1 and y0 in my case is 1, 0 for 0, 0 ,0 0 in my case because the number of 1's is even and not odd?
 
Yes. And it should make your job somewhat easier as well.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K