This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: EE 3755 Homework 2 Due: TBA //Solution Estimated time to solve: Prob.0 5 mins. Prob.01 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.) 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.01 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)....
View
Full
Document
This note was uploaded on 02/26/2012 for the course EE 3755 taught by Professor Staff during the Fall '02 term at LSU.
 Fall '02
 Staff

Click to edit the document details