Write a single Verilog module describing 5-to-1 multiplexer. Write a testbench using -2, -1, 0, 1, 2 for the five inputs of the multiplexer respectively, and apply appropriate values to the select lines to pass these inputs to the output.

Diagram

Design 1 – dataflow model

Design 2 – behavioral model

Testbench

Related Questions:

4 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.