Ask Experts Questions for FREE Help !
Ask
    vhopkinsss's Avatar
    vhopkinsss Posts: 3, Reputation: 1
    New Member
     
    #1

    Dec 7, 2011, 11:46 PM
    Electrical engineering-Logic Gates
    Design a circuit with four single-bit inputs X, Y, T, and Z, but only one single-bit output E. A two bit control code word S0S1 selects which of the four inputs is propagated to the output (the selection code is not unique). Your answer should be in the form of a circuit diagram and table showing which selection code selects which input. You may use any of the combinatorial logic gates
    jcaron2's Avatar
    jcaron2 Posts: 986, Reputation: 204
    Senior Member
     
    #2

    Dec 8, 2011, 07:56 AM
    First, let's make up a truth table to decide which control word corresponds to which input. For example, we could use the following:

    S0S1 Output(E)
    00 X
    01 Y
    10 T
    11 Z

    Now pick an input, let's say X. We want the output, E, to be equal to X if (and only if) the control word is right, which is 00 in this case. So what logic can we use which will be equal to X if and only if the S0 and S1 are both 0? The simplest answer is just an AND gate. If we AND X along with S0' and S1' (the ' means "not", i.e. the inverse), then the output of the AND gate will be exactly equal to X as long as S0 and S1 are both 0 (and hence their inverses will both be 1). Thus, for this portion of the circuit we would take the inputs S0 and S1, add an inverter to each of them, and connect them to two inputs of a three-input AND gate, along with the input X at the third input.

    Meanwhile, we'd do three more "copies" of this same circuit for the inputs Y, T, and Z. For the Y circuit, for example, we're looking for S0S1 to be 01, so you'd connect S0 and S1' to the AND gate (along with the input Y).

    Once you've constructed four AND circuits, you simply need to OR their outputs together.

    Also note that you could swap all the And OR gates with NAND gates and get the equivalent logic, but it's not quite as intuitive that way.

    By the way, there's a name for this type of logic function. It's called a multiplexer. If you Google it, you'll find all kinds of info. There's a circuit diagram of one here. Note that it's exactly the circuit I described above.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Electrical engineering [ 1 Answers ]

Why use 3 phase in transmission line

Electrical engineering [ 1 Answers ]

I'm working on a invention. I would like to know is there a motor that can control heat, and can control a rotating brush that releases water from the rotating bristles on the brush. I'm looking for something like a all in one motor that can do theses things

Electrical engineering [ 1 Answers ]

What is heating and airconditioning process? What is the different types of AC?

Electrical engineering [ 1 Answers ]

An inductor has an inductance of 100uH.when the current through the inductor is changing at 5A/s,what is the back EMF?

Electrical Engineering [ 3 Answers ]

our system is a 480V-Y/277 grounded system. An OEM specifically requires to use a 480-Y/277V with live neutral to power an electric heater. With I-neutral = 0, and I on high resistance ground = 0, the two systems can deliver the 277V requirement but OEM specifies to use live neutral instead and...


View more questions Search