Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 Not yet answered Marked out of 1 3 . 0 0 Flag question FALSE 2 5 3 2 7 TRUE Assume that you

Question 2
Not yet answered
Marked out of 13.00
Flag question
FALSE 25327 TRUE
Assume that you have a system that contains a 16-word cache (C=16). Consider the following RISC-V assembly code
addi t0, zero, 4
addi s0,zero,0
loop: beq t0, zero, done
Iwt1,0x30(s1)
Iwt2,074(s1)
Iwt3,054(s1)
Iwt3,050(s1)
addi 0,t0,-1
j Ioop
done:
Part2: Two-way Set Associative Cache, b=1 word
Fill in the correct size for the cache fields (Memory Address size is 32-bit):
\table[[Tag,Set,Byte Offset],[,,]]
Place every instruction's data in the correct set in the cache. Also, determine what kind of miss the instruction faces.
\table[[\table[[Instruction's],[data]],\table[[Set Cache No.],[Answer as :0,3,],[5...]],\table[[Compulsory miss],[Answer as: TRUE or],[FALSE]],\table[[Conflict miss (2nd],[iteration)],[Answer as: TRUE or],[FALSE]]],[mem[0x00..030],,,],[mem[0x00..074],,,],[mem[0x00..054],,,],[mem[000..050],,,]]
Find the miss rate (NOTE: if the number is 88.777778, then your answer should be 88.8) :
(Note: number of misses includes both compulsory and the conflict misses in all iterations)
Cache miss rate=
|%
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions