






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







COSC 201 Final Exam Fall 2002 Name: ____________________________________
What is an Instruction Set Architecture?
What are a cache hit and a cache miss? Explain how each is detected.
Convert the following number in binary two's complement format to decimal. 1111 1111 1111 1111 1111 1111 1111 0100
Convert the following number in IEEE floating point format to decimal. 1100 0001 0100 0000 0000 0000 0000 0000
b) sw $s1, 8($sp)
c) slt $t0, $t1, $t
d) beq $t0, $t1, loop
e) jr $ra (be careful)
f) nop (be careful)
Rewrite the MIPS assembly language by inserting the minimum number of nop instructions to correctly deal with these hazards. To save time and space, you may refer to the instructions by number rather that writing them out completely. For example, to insert a nop after every instruction (which obviously is not the best answer) you could write:
1 nop 2 nop 3 nop 4 nop 5 nop 6 nop 7 nop 8 nop 9 nop
Assume that you have a combined instruction/data cache, direct mapped, with 32 words organized into blocks of 4 words each. A hit takes 1 clock cycle and a miss takes 6 clock cycles.
The first instruction of the sum function is stored in memory at the following address: 0x
The array contains 10 numbers and first number in the array is stored in memory at the following address: 0x6789ABC
How many hits and misses occur when the sum function is executed?