This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: again stored in location 0. The cache contents of the first three passes are shown below: Pass 1 Pass 2 Pass 3 0 BNE BNE BNE 2 10D7 4 Add Add Add 6 Dec Dec Dec 2) From the above one can calculate: First pass has 4 main memory access, and 4 cache access with a total of 44 second pass has 2 main memory access and 4 cache access with a total of 24 third pass has 1 main memory access and 4 cache access with a total of 14 Note that you always have to access the cache regardless where if you have to access the main memory first. 2 3) Problem 5.13 of the textbook. a. Direct mapping b. Associate-mapping c. Set-associate mapping...
View Full Document
- Winter '08