58.4k views
4 votes
Assume a 16-word direct mapped cache with b=1 word is given. Also assume that a program running on a computer with this cache memory executes a repeating sequence of lw instructions involving the following memory addresses in the exact sequence is given: Ox74 OxAO Ox78 0x38C OXAC 0x84 0x88 0x8C 0x7c 0x34 Ox38 0x13C 0x388 0x18C

A.)Show the placement of the given instruction addresses in this cache.
B.) Calculate the miss rate of this cache for the given list of instruction addresses. Please show your work.

User Ivan Loire
by
4.8k points

1 Answer

7 votes

Answer:

a) See the placement of the given instruction addresses in this cache in the picture.

b) The miss rate for the below instructions address sequence is 100% as no address is repeated.

Step-by-step explanation:

Assume a 16-word direct mapped cache with b=1 word is given. Also assume that a program-example-1
User Drembert
by
4.6k points