# Mux 4:1 implementation

Discussion in 'Homework Help' started by hasan qusay, Oct 8, 2014.

1. ### hasan qusay Thread Starter New Member

Oct 8, 2014
4
0
Hi I want to implement the function g(a,b,c,d)=ac'd+ab'+c using 4:1 MUX and no more than one extra gate. Assume all the inverted input are available.

There was a hint to draw a K-map. I did and I got the SOP= c+ab'+ad

I don't know what the four inputs and the two selects should be. I would appreciate the help

2. ### shteii01 AAC Fanatic!

Feb 19, 2010
3,397
497
The four inputs are: a, b, c, d.

The selects can be anything you like, you can call them: s0, s1.

3. ### hasan qusay Thread Starter New Member

Oct 8, 2014
4
0
I dont think it would be that simple

Feb 19, 2010
3,397
497

5. ### hasan qusay Thread Starter New Member

Oct 8, 2014
4
0
I read the textbook but can you explain why you got a b c d as your inputs?

6. ### shteii01 AAC Fanatic!

Feb 19, 2010
3,397
497
g(a,b,c,d) means that g is function of a, b, c, d. a, b, c, d are inputs.

The fact that I have to explain this simple fact is distressing.

7. ### hasan qusay Thread Starter New Member

Oct 8, 2014
4
0
but doesn't the mux's inputs have to be adjusted accordingly to the function ac'd+ab'+c ?

8. ### WBahn Moderator

Mar 31, 2012
17,775
4,804
Start with something real simple and then build up from there. You should quickly see the pattern that you can generalize.

So imagine that you have a 2:1 MUX and want to use it to implement a function of 1 input, Y=f(A). There are four such functions:

Y=0
Y=1
Y=A
Y=A'

Can you see how you could wire the circuit to implement a particular one of those four as soon as you knew which one you were to implement? For some of the functions there are multiple ways to implement it, which if fine, but our purposes it works best if you apply one of the inputs (in this case it has to be A since that is the only input you have) to the Select input of the MUX and use only the other inputs (which in this case is just HI and LO since you have no other inputs) to the data pins.

Once you can do that, now make it a function of two inputs, Y=f(A,B). Use the same approach by applying one of the inputs to the Select line and either HI, LO, or one of the other inputs to the data pins. What you should find is that this is not sufficient for some functions, such as Y=A xor B. But with one other gate, you can make it happen.

Work that this much and if you still don't see how to generalize it to more than two inputs, show what you get for Y=A xor B using a single 2:1 MUX and one other gate and we will go from there.