test2new_05sol

test2new_05sol - April 13,2005 EE3755 EXAM 2 Do not turn...

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

View Full Document Right Arrow Icon
April 13 ,2005 EE3755 EXAM 2: Do not turn over the page till I say so. Some problems are very easy so do not spend Too much time on them. If you think a problem is difficult, try to solve The easy ones First. Name: Problem 01(10pts ) 03mins (how much did you spend? Min) Problem 02(10pts ) 03mins (how much did you spend? Min) Problem 03(10pts ) 03mins (how much did you spend? Min) Problem 04(08pts ) 04mins (how much did you spend? Min) Problem 05(08pts ) 02mins (how much did you spend? Min) Problem 06(06pts ) 03mins (how much did you spend? Min) Problem 07(10pts ) 05mins (how much did you spend? Min) Problem 08(08pts ) 02mins (how much did you spend? Min) Problem 09(15pts ) 08mins (how much did you spend? Min) Problem 10(15pts ) 15mins (how much did you spend? Min) Bonus(2): 2mins (Fill out how much did you spend) Total 102pts; 50 Min. 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Problem 1 : Convert the following numbers: (Estimated Time to Answer(ETA) 3mins: 10pts) Hint (3/8) = 0.375 a) Decimal 15 to 8-bit Binary: 2pts 00001111 b) Decimal -15 to 8-bit Binary(2’s complement form):2pts 11110001 c) Decimal 15.375 to Binary (as many bits as needed):2pts 1111.011 d) Decimal -15.375 to IEEE 754 Single Precision (Show in hexadecimal):4pts 1 10000010 11101100 00000--- 1100 0001 0111 0110 00…. . 0xc1760000 ##For bonus: How much did you spend? Mins## Problem 2: Fill in the values for x below.(ETA 3mins: 10 pts) ############################################## module opp_example(); reg [7:0] x,a; reg [3:0] b,c,d; reg [2:0] s; initial begin a = 19; x = a < 10 ? 10 : a < 20 ? 20 : 30; //x = 20 b= 4'h6; c= 4'b0001; x = b & c; // x = 0 x = b && c; // x = 1 b = 4'b0001; x = { 3'd2,1'h1,b}; // x = 01010001 =81 x = 8'b00001011; s = 2; x = x << s; // x = 00101100 =44 b = -3; c = 1; x = b > c ; // x = 1 2
Background image of page 2
// explain why? Negative number = big positive at unsigned 1pts. b = -1;
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 9

test2new_05sol - April 13,2005 EE3755 EXAM 2 Do not turn...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online