EECS 361
Midterm Solutions
-1 point for any incorrect calculation.
Q1) System Performance (20 points)
The base system spends 82% of the time computing and 18% of the time waiting for the
disk. Integer instructions (40% of executed instructions) have a CPI
Homework #3 Solutions (abridged)
1)
Loads
Stores
R-type
Branch
RegDst=0
Y
Y
N
Y
ALUSrc=0
N
N
Y
Y
MemtoReg=0
N
Y
Y
Y
Zero=0
Y
Y
Y
N
RegDst=1
N
Y
Y
Y
ALUSrc=1
Y
Y
N
N
MemtoReg=1
Y
Y
N
Y
Zero=1
Y
Y
Y
N
2)
Loads
Stores
R-type
Branch
3)
The gcc data from Chapt
Homework 4 Solutions
Problem 1
Reference Hit or miss
Reference
Hit or Miss
1
Miss
4
Miss
8
Miss
5
Miss
20
Miss
17
Miss
19
Miss
56
Miss
9
Miss
11
Miss
4
Miss
43
Miss
5
Hit
6
Miss
9
Hit
17
Hit
Here is the final state of the cache:
Block # Address
Block #
Ad
R F D F 2) F 5 F H 2) () H (c)c I I Hc F 5 F H 2) ) V Hc c 5 5 Hc F @ ) F 5 9 ( DD ( 2
6#E#!#4E#6Qd4E1EEEE#6Qd4E8E#6BBQQq4F
6#yx4EBdQ8v44#qQu#EBQb#f t 6Q6r!qGEQEBiQ!gQ4#be4
F D w R F) Hc ( @ h U 5 ( 7 F) H 9 ( f f I H D C ( 5 @ )c I 5 5) s H Fc p S R F)