hw9 solutions - Su, Andy Homework 9 Due: Nov 13 2007, 11:00...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: Su, Andy Homework 9 Due: Nov 13 2007, 11:00 pm Inst: Valvano 1 This print-out should have 10 questions. Multiple-choice questions may continue on the next column or page find all choices before answering. The due time is Central time. Homework 9 001 (part 1 of 1) 10 points Consider the situation where a 9 bit parame- ter is added to a 11 bit parameter. In partic- ular, assume the number n 1 can be any value from 0 to 511, and the number n 2 can be any value from 0 to 2047. If n 3 = n 2 + n 1, how many bits are re- quired to store the number n 3? Correct answer: 12 bits. Explanation: The range of n 3 = n 2 + n 1 is 0 to 2558, therefore it takes 12 bits to store the number n 3. 002 (part 1 of 1) 10 points What is the difference between the emul and emuls instructions? 1. emul is integer multiply while emuls is a fixed-point multiply. 2. They are two names for the same thing. 3. emul operates on signed integers while emuls operates on unsigned integers. 4. emul is integer multiply while emuls is a floating-point multiply. 5. emul is an 8-bit multiply while emuls is a 16-bit multiply. 6. None of these choices is correct. correct Explanation: emul operates on unsigned integers while emuls operates on signed integers. 003 (part 1 of 1) 10 points What is the basic operation of the ediv instruction? 1. 32-bit RegsY:D divided by 16-bit RegX yielding a 16-bit quotient stored in RegD , and a 16-bit remainder stored in RegY . 2. 32-bit RegsY:D divided by 16-bit RegX yielding a 16-bit quotient stored in RegY , and a 16-bit remainder stored in RegD . cor- rect 3. 16-bit RegY divided by 16-bit RegX yielding a 16-bit quotient stored in RegY , and a 16-bit remainder stored in RegD . 4. 32-bit RegsX:D divided by 16-bit RegY yielding a 16-bit quotient stored in RegX , and a 16-bit remainder stored in RegD ....
View Full Document

Page1 / 4

hw9 solutions - Su, Andy Homework 9 Due: Nov 13 2007, 11:00...

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

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