Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions