You can design an 8-to-1 multiplexer using two 4-to-1 multiplexers, and a 2-1 multiplexor. The 8 inputs would be connected to the two 4-1's using two of the selector inputs and the outputs of the.
![Multiplexer 4 A 1 Vhdl Multiplexer 4 A 1 Vhdl](/uploads/1/2/5/0/125035733/596454835.png)
Submitted by2 decades agó
4-to-1 multiplexer making use of 2-to-1 multiplexers
Hello there,
I need to plan a multiplexer ánd a testbench fór it. Multiplexer wants to be 4-to-1 making use of 3 moments 2-to-1 multiplexers Structure image. 4-to-1 multiplexer inputs need to become 5-bit long and selecters 1 little bit lengthy. I need to carry out -i think- the result in behavioural, datafIow and structural modeIling/design/description designs
As I know then result is certainly 5 little bit long simply because properly. But how can selecter become 1 little bit long?
Anyway, I possess found several good examples on the internet. Nevertheless I cannot appear to grasp how tó but them aIl collectively.
So significantly I possess code as comes after below and no testbench however
How will it appear - should it work? Perform I require to make elements for mux 2-to 1 as okay(and, or , not really gates)? How would the testbench appearance like?
Thank you!
.EDIT updated program code.EDIT SoIved