Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a behavioral verilog module 2mux2in4b and a test bench 2mux2in4b_tb for a 2-input, 4-bit MUX with data input vectors D0 and D1, and an
Write a behavioral verilog module 2mux2in4b and a test bench 2mux2in4b_tb for a 2-input, 4-bit MUX with data input vectors D0 and D1, and an output vector Y and index them from 1 to 4. For each value of the function inputs, the test bench shouldd check that the output is correct for all combinations of data-input calues and display an error message if it is incorrect.
Inputs | Outputs | ||||
G | S | 1Y | 2Y | 3Y | 4Y |
1 | x | 0 | 0 | 0 | 0 |
0 | 0 | 1D0 | 2D0 | 3D0 | 4D0 |
0 | 1 | 1D1 | 2D1 | 3D1 | 4D1 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started