Question: 1 ( a ) . [ 1 0 points ] Write a behavioral Verilog module for a 2 - input, 4 - bit multiplexer with

1(a).[10 points]
Write a behavioral Verilog module for a 2-input, 4-bit multiplexer with the function table shown below.
Name the data input and output vectors D0, D1, and Y, and index them from 1 to 4.
Inputs Outputs
EN_L S 1Y 2Y 3Y 4Y
1 x 0000
001D02D03D04D0
011D12D13D14D1
1(b).[10 points]
Write the Verilog test bench that tests for correct functioning of the module in the question (1)a. For
each value of the function inputs, it should check the output is correct for all combinations of data-input
values and display an informative error message if it is incorrect. Insert one or more errors into to the
module for question 1(a) and verify that your error messages are working

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!