This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Department of Electrical and Computer Engineering McGill University 304-221A Introduction to Computer Engineering I Mid Term Exam Examiner: F.P. Ferrie Date: February 28, 2000 Question 1 (2 points) Give a procedure for determining the length of an integer data type assuming you have access to a "C" compiler and you know that the machine does 2's complement arithmetic (limit your answer to no more than 2 or 3 sentences). Question 2 (2 points) Assuming an IEEE like floating point representation, how many mantissa bits are required to represent a decimal number to 3 significant figures in the fractional component? Question 3 (3 points) Encode the number 3.72 x 10 8 using the IEEE 754 floating point representation. Express your answer as a hexadecimal number. Question 4 (2 points) A binary multiplication algorithm, equivalent to the one you wrote for Assignment 1, is implemented in hardware on a digital computer. Assuming that all delays are negligible except for the full adder, how long does the multiplier take to perform a 16-bit by 16-bit multiply if the...
View Full Document
This note was uploaded on 04/25/2010 for the course ECSE 221 taught by Professor F.pferrie during the Fall '09 term at McGill.
- Fall '09