mux vs demux

Discussion in 'Homework Help' started by ckaiser813, Oct 22, 2009.

  1. ckaiser813

    Thread Starter Member

    Jan 21, 2009
    17
    0
    I just want to verify that this is the correct truth table for my mux and demux

    Demux
    S2 S1 S0 OUT
    0 0 0 D7
    0 0 1 D6
    0 1 0 D5
    0 1 1 D4
    1 0 0 D3
    1 0 1 D2
    1 1 0 D1
    1 1 1 D0

    MUX
    S2 S1 S0 OUT
    0 0 0 D0
    0 0 1 D1
    0 1 0 D2
    0 1 1 D3
    1 0 0 D4
    1 0 1 D5
    1 1 0 D6
    1 1 1 D7

    Is this correct?
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Get the data sheet for a 74LS151 and see what it says.
     
  3. ckaiser813

    Thread Starter Member

    Jan 21, 2009
    17
    0
    im using this for vhdl code but after i looked up the data sheet it had the same logic equation I had for my code so I assume i'm right
     
  4. ckaiser813

    Thread Starter Member

    Jan 21, 2009
    17
    0
    so for my demux i would do something like this

    z<=((not D0)and (not S0) and (not S1) and (not S2)) so on
     
Loading...