{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw3sol

# hw3sol - EE 3755 Homework 2 Due TBA/Solution Estimated time...

This preview shows pages 1–4. Sign up to view the full content.

EE 3755 Homework 2 Due: TBA //Solution Estimated time to solve: Prob.0 5 mins. Prob.0-1 2 mins. Prob.1 10 mins. Prob.2 50 mins. Prob.3 10 mins. Total: 77 mins. How to submit? // Hard copy at the class room. Please write down actual time you spend to do the each problem. Prob. 0 What kind of hardware is this?(module WhatIsThis1) (you may find it on lecture note) (5 mins.)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
module WhatIsThis1(x,control,i0,i1,i2,i3); input [1:0] control; input [7:0] i0, i1, i2, i3; output x; reg [7:0] x; always @( control or i0 or i1 or i2 or i3 ) begin case ( control ) 0: x = i0; 1: x = i1; 2: x = i2; 3: x = i3; endcase end endmodule //solution // Multiplexer
Prob.0-1 What kind of hardware is this?(module WhatIsThis2) module WhatIsThis2(x,a,b,c,d,control); input [31:0] a, b, c, d; input [1:0] control; output [31:0] x; assign x = control == 0 ? a : control == 1 ? b : control == 2 ? c : d; endmodule //solution // Multiplexer Prob. 1 Without running the simulator, answer this question.(you may check later to verify your solution). What will be the output of this program? (10 mins.)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 12

hw3sol - EE 3755 Homework 2 Due TBA/Solution Estimated time...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online