314s05_prelim1

# 314s05_prelim1 - NETID NAME SIGNATURE ECE 314 Prelim Exam...

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

NETID______________________________ Page 1 of 12 NAME:_____________________________ SIGNATURE:________________________ ECE 314 Prelim Exam March 17, 2005 Normal academic integrity rules apply. No calculators. Show your work in order to receive partial credit.

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

View Full Document
NETID______________________________ Page 2 of 12 Question Possible Points Points Earned Number Representation 15 Performance 20 MIPS Simulation and C 15 Digital Logic 20 MIPS Assembler 20 Floating Point Representation 10 Total 100
NETID______________________________ Page 3 of 12 Q.1. (15 pts) Number Representation Perform the following conversions: integer binary 11010010111010101001010010110001 is equivalent to hex: 2’s complement 10010100 is equivalent to decimal: decimal (–37) 10 is equivalent to (8-bit) sign/magnitude binary: decimal (–1) 10 is equivalent to (10-bit) 2’s complement binary: (8-bit) unsigned binary 10101010 is equivalent to decimal: Extra Credit (2 pts) How do you represent decimal numbers 7 and 63 in 8-bit unsigned base –2? Yes, it is –2, instead of 2.

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

View Full Document
NETID______________________________ Page 4 of 12 Q2. (20 pts) Performance It turns out that for many scientific computations (think linear algebra libraries, and matrix manipulations) perform so many sequences of multiplications followed immediately by additions that many high-performance computers have been designed with a single multiply-add instruction. Consider adding such an instruction to the MIPS. Give it the form "mad \$R1, \$R2, \$R3", where \$R1 \$R1 + (\$R2 * \$R3) Now suppose you have the following mix of 100 instructions without the new instruction, and then with the new instruction, both for the same computation. Because the multiply- add instruction has to accomplish more work than the other MIPS RISC instructions, we must increase the clock cycle time by a factor 1.15. In return, we can replace 4/5 of the ALU instructions by the MAD instruction. a) (3 pts) Fill in the table below:
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.

### Page1 / 12

314s05_prelim1 - NETID NAME SIGNATURE ECE 314 Prelim Exam...

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

View Full Document
Ask a homework question - tutors are online