COE 608 Midterm: COE608 – Sample Midterm

198 views4 pages

Document Summary

Student name: answer all the questions, total time allowed is 50 minutes. Any notes or books are not allowed: estimated time for each question is equivalent to the marks assigned to it, all the questions are not of equal difficulty. Page 1/4: determine ieee754 floating point representations, single precision and double precision of (21. 85)10. Page 2/4: the block diagram of a 6-bit multiplier with optimal size alu (adder) and registers is given below. Assume that the multiplicand and multiplier registers are loaded with 6-bit numbers for multiplication and the product register is cleared initially as shown below. Two 6-bit unsigned binary numbers are to be multiplied using shift or add/shift operations. During this process, show the contents of all these registers that change. Determine the contents of these registers after an add/shift or just shift operation and fill up the following table after each operation. Page 3/4: (a) consider the following c code: