SolB
SolB
Q.2 Solution
Marking Scheme: 3 marks for each correct column. All entries of a column should be correct.
No marks have been awarded for any column following an incorrect one.
R1 6 3 8 2
b1 prediction T(GP) T(LP) T(LP) NT(GP)
b1 actual T NT T T
b2 prediction T(GP) T(GP) NT(GP) NT(LP)
b2 actual NT NT NT NT
b3 prediction T(GP) T(GP) T(LP) NT(GP)
b3 actual NT T NT NT
Q.3 Solution
a) Address division: LI: Tag=6 bits, Offset: 6 bits (1 Mark) L2: Tag=4 bits, Line=2 bits, offset=6 bits (1 Mark)
b) 1 Mark for each memory access with correct values of Tag and Data in L1 and L2 both.
L1 Cache L2 Cache
Tag Data Tag Data
101101 M[101101]
MISS
HIT L1
Tag Data Tag Data
101101 M[101101]
101100 M[101100]
MISS
Main Table:
After decode stage R[rs] value is present in A and R[rt] value is present in B.
The SW2 is already present in the main table. NO need to write explicitly.
Marking Scheme: 3 Marks for the row with S2D label and 4 Marks for the next row.
Total 5 cycles are required.
Solution with 6 cycles and additional entry in the main table attracts penalty.
Solution with more than 6 cycles and/or with Dispatch ROM 2 are awarded 0 marks.