Question

how to do this 4 to 1 mux in verilog code a multiplexer with inputs in[3:0],...

how to do this 4 to 1 mux in verilog code

a multiplexer with inputs in[3:0], sel[1:0], e and output o.
The output o is in[N] where N is the number corresponding to the binary value of sel[1:0].

0 0
Add a comment Improve this question Transcribed image text
Answer #1

4X1 -MUltiplexer Verilog code:

module mpx41(o,e sel,in);

input [3:0]in;

input e;

input [1:0]sel;

output o;

if (e==1)

assign o=in[sel];

end

endmodule

Add a comment
Know the answer?
Add Answer to:
how to do this 4 to 1 mux in verilog code a multiplexer with inputs in[3:0],...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT