314s06_prelim1 - NETID_ NAME:_ SIGNATURE:_ ECE 314 Prelim...

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

View Full Document Right Arrow Icon
NETID______________________________ Page 1 of 11 NAME:_____________________________ SIGNATURE:________________________ ECE 314 Prelim Exam March 16, 2006 Normal academic integrity rules apply. No calculators. Show your work (e.g., on the back of the page) in order to receive partial credit.
Background image of page 1

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

View Full DocumentRight Arrow Icon
NETID______________________________ Page 2 of 11 Question Possible Points Points Earned Number Representation 20 Endian Representation 20 Digital Logic 20 Performance 20 C and MIPS 20 Total 100
Background image of page 2
NETID______________________________ Page 3 of 11 Q.1. Number Representation (15 pts) a) (8 pts) Fill in the blanks: Encoding Decimal Value Binary Pattern Hex Pattern 8-bit Sign/Magnitude -72 __________ __________ 8-bit 2’s Complement __________ 11001001 __________ 8-bit Unsigned __________ __________ 0xCD _-bit_____________ -11 11011 __________ b) (6 pts) Perform the following calculation in 8-bit 2’s complement. First convert the numbers from decimal to binary representation, and then perform the computation. Report your answer in both binary 8-bit 2’s complement and decimal representations. There will be no partial credit for this problem. (Hint: doing the addition in decimal will NOT work correctly.) (-44) (87) Answer: 8-bit 2’s complement: (3 pts) Decimal: (4 pts)
Background image of page 3

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

View Full DocumentRight Arrow Icon
NETID______________________________ Page 4 of 11 c) (6 pts) Convert the following decimal number into IEEE Floating Point Standard format: 1.5 Write your answer in the space below. 3 1 3 0 2 9 2 8
Background image of page 4
NETID______________________________ Page 5 of 11 Q2. Endian Representation (20 pts) (20 pts) The following assembly code sequence is executed on two different machines, one of which is big-endian and the other little-endian. The initial register values are the same on both machines, as shown in Table 1 . a)
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/28/2008 for the course ECE 3140 taught by Professor Mckee/long during the Spring '07 term at Cornell University (Engineering School).

Page1 / 11

314s06_prelim1 - NETID_ NAME:_ SIGNATURE:_ ECE 314 Prelim...

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

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