Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 7 (10 points): Write an 8:1 multiplexer module in Verilog, called mux8 w

ID: 3601480 • Letter: P

Question

Problem 7 (10 points): Write an 8:1 multiplexer module in Verilog, called mux8 with selection input s[2:0], data inputs do, d1, d2, d3, d4, d5, d6, d7, and data output y. The bit width of all data inputs and outputs should be parameterized by "width". Use "case" statement with behavioural model. Problem 8 (10 points): Write a structural module in Verilog to compute the logic function, y = ab' + b,c, + abc, using multiplexer logic. Use the 8:1 multiplexer from Problem 7 as the building block with structural model only

Explanation / Answer

problem 7

module mux8to1(d,s,y)

input [0:7]d;

input [2:0]s;

output y;

reg y;

always @(d or s)

case (s[2:0])

0:output d[0];

1:output d[1];

2:output d[2];

3:output d[3];

4:output d[4];

5:output d[5];

6:output d[6];

7:output d[7];

end case

end module

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote