123k views
2 votes
2. (40 POINTS) 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: 0x74 0xA0 0x78 0x38C 0xAC 0x84 0x88 0x8C 0x7C 0x34 0x38 0x13C 0x388 0x18C 2 2.A.) (30 POINTS) Show the placement of the given instruction addresses in this cache. 2.B.) (10 POINTS) Calculate the miss rate of this cache for the given list of instruction addresses. Please show your work. It is ok to use hand-drawing. If so, make sure

1 Answer

4 votes

Answer:

See the attached file for the answer.

Step-by-step explanation:

(a) Find attached of question a.

b. the miss rate for the above instructions address sequence is 100% as no address is repeated.

2. (40 POINTS) Assume a 16-word direct mapped cache with b=1 word is given. Also assume-example-1
User Felix Livni
by
5.4k points