Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (4 points) Let's say that we have a 2-way set associative cache. The cache has four sets in total. Main memory consists of 4K
2. (4 points) Let's say that we have a 2-way set associative cache. The cache has four sets in total. Main memory consists of 4K blocks of 8 words each, and word addressing is used. a. Show the address format that is used to map main memory address to the cache. Include the appropriate fields and their sizes. b. Compute the hit ratio for a program that loops 3 times from location 810 to location 5110. In other words, think of this as an assembly language program that runs from the opcode at location 8 to the opcode at location 51, then loops back to location 8. It does three such iterations in total (the original pass, plus two more loops)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started