Introduction
This assignment is based on sections 5.1, 5.2, 5.3, and 5.5 of the textbook and the Cache Parameters web page.
The Assignment
Answer the following questions for a memory system with the following set of parameter values:
- Byte addressable
- 8 bytes per word
- 8 GB primary memory
- 2-way set associative cache
- 8 words per cache line
- 2 MB cache capacity
- cache access time is 500 psec
- miss penalty time is 5 nsec
Questions
- Number of blocks of primary memory
- Number of cache lines
- Number of cache sets
- Primary memory address size
- Size of byte offset field
- Size of block offset field
- Size of index field
- Size of tag field
- p(hit) if the CPU were to access memory totally randomly
- Average access time if the CPU were to access memory totally randomly
- Average access time if p(hit) is 0.97