+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Member level 3
    Points: 1,695, Level: 9

    Join Date
    Aug 2005
    Posts
    57
    Helped
    1 / 1
    Points
    1,695
    Level
    9

    How to do 16 to 1 multiplexer using 4 to 1 multiplexer module?

    any1 have verilog source code that do 16 to 1 multiplexer using 4to1 multiplxer module? thank

    •   AltAdvertisement

        
       

  2. #2
    Full Member level 1
    Points: 2,569, Level: 11

    Join Date
    Apr 2003
    Posts
    112
    Helped
    1 / 1
    Points
    2,569
    Level
    11

    4 to 1 multiplexer 16to1

    hi,
    well i could give u the logic its up to you to write the code...
    say A3 A2 A1 A0 are your select lines with A3 being the msb and A0 the lsb.
    say d0-d15 are your inputs.
    so use 4 4X1 multiplexers at the input . such that the u have d0-d3 connected to the input of the mux1, d4-d7 as i/p to the mux2, d8-d11 i/p to mux3, d12-d15 as i/ps to mux4. now connect the o/p of each of these 4 muxes to the i/p's of a a fifth mux, mux5.

    so in all u have 5 4X1 muxes. and two levels of muxes.
    now connect the select lines as follows.
    connect A3 and A2 as the select lines for mux5.
    connect the A1 A0 to the select lines of mux1,mux2,mux3,mux4.
    this in effect will give u a 16X1 mux using 5 4X1 muxes.

    rgds
    rogger


    1 members found this post helpful.

--[[ ]]--