$30
CDA 4205 Computer Architecture
Assignment 4: MIPS Programming
(10 pts) What is the decimal value of the following single-precision floating-point numbers?
1010 1101 0001 0100 0000 0000 0000 0000 (binary)
0100 0110 1100 1000 0000 0000 0000 0000 (binary)
(10 pts) Show the IEEE 754 binary representation for: -75.4 in …
Single Precision
Double Precision
(10 pts) Single-precision float-point numbers x, and y are as follows:
x = 1100 0110 1101 1000 0000 0000 0000 0000 (binary) and
y = 0011 1110 1110 0000 0000 0000 0000 0000 (binary)
Perform the following operations showing all work:
x + y
x * y
(15 pts) Single precision IEEE 754 floating-point numbers x, y, and z are as follows:
x = 0101 1111 1011 1110 0100 0000 0000 0000 (in binary) and
y = 0011 1111 1111 1000 0000 0000 0000 0000 (in binary) and
z = 1101 1111 1011 1110 0100 0000 0000 0000 (in binary)
Perform the following operations.
x + y
Result of (a)+ z
Why is the result of (b) counterintuitive?
IA-32 offers an 80-bit extended precision option with a 1 bit sign, 16-bit exponent, and 63-bit fraction (64-bit significand including the implied 1 before the binary point). Assume that extended precision is similar to single and double precision.
(2 pts) What is the bias in the exponent?
(3 pts) What is the range (in absolute value) of normalized numbers that can be represented by the extended precision option?
(10 pts) Using the refined division hardware, show the unsigned division of:
Dividend = 11011001 (binary) by Divisor = 00001010 (binary)
The result of the division should be stored in the Remainder and Quotient registers. Eight iterations are required. Show your steps.
(10 pts) Using the refined signed multiplication algorithm, show the multiplication of:
Multiplicand = 00101101 by Multiplier = 11010110 (signed)
The result of the multiplication should be a 16 bit signed number in HI and LO registers. Eight iterations are required because there are 8 bits in the multiplier. Show the steps.
Submission Requirements
Your solutions must be in a single file with a file name yourname-hw1.
If scanned from hand-written copies, then the writing must be legible, or loss of credits may occur.
Only submissions via the link on Canvas where this description is downloaded are graded. Submissions to any other locations on Canvas will be ignored.
Late submissions are accepted for a maximum of 3 late days with 20% assignment credit off as late penalization. Assignments submitted after 3 late days will not be accepted.