Final Exam Solutions

Processor hit or miss blocks blocks blocks blocks

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ze is 1 word. “Before” and “After” refer to the block’s state in cache before the instruction is executed and after it is executed, respectively. Processor: Hit or miss? Block’s Block’s Block’s Block’s Instruction state in P0 state in P0 state in P1 state in cache cache cache P1 cache (before) (after) (before) (after) P0: read 100 Hit Shared Shared Shared Shared P1: write 104 Hit Shared Invalid Shared Modified P0: read 100 Hit Shared Shared Shared Shared P1: read 100 Hit Shared Shared Shared Shared P0: write 100 Hit Shared Modified Shared Invalid P1: read 104 Hit Invalid Invalid Modified Modified (b) Repeat the problem for a cache block size of 8 words. Processor: Hit or miss? Block’s Block’s Block’s Block’s Instruction state in P0 state in P0 state in P1 state in cache cache cache P1 cache (before) (after) (before) (after) P0: read 100 Hit Shared Shared Shared Shared P1...
View Full Document

Ask a homework question - tutors are online