Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Consider a 2-way set associative cache with 8 sets, two blocks per set, 4 bytes per block and the size of a memory address

image text in transcribed

4. Consider a 2-way set associative cache with 8 sets, two blocks per set, 4 bytes per block and the size of a memory address is 13 bits. Fig. 3 shows the content of the cache memory. Note that invalid cache lines are left blank. (1) (3 marks) Show the format of the memory address in terms of tag, set and byte fields. (2) (3 marks) Consider an access to the address 0x08A7. Does this access hit or miss in the cache? What value is returned if it is a hit? Justify your answer. (3) (3 marks) Consider an access to the address 0x1D68. Does this access hit or miss in the cache? What value is returned if it is a hit? Justify your answer. (b) (4 marks) A testing program is executed to evaluate the performance of the cache system. The program consists of 4000 read instructions and 2000 write instructions. Their corresponding hit rates are, respectively, 0.82 and 0.88 . In read (write) operations, the access time of the cache memory is 100ns ( 200ns) and that of the main memory is 1s(2s). Estimate the overall hit rate and the effective access time of the system. Fig. 3 (Note that invalid cache lines are left blank.)

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

How many jobs underperformed on budgeted profit?

Answered: 1 week ago

Question

6-5. Why are subject lines important in email messages? [LO-4]

Answered: 1 week ago