









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Computer Architecture; Subject: Computer/Information Sciences; University: University of Delaware; Term: Spring 2009;
Typology: Study notes
1 / 17
This page cannot be seen from the preview
Don't miss anything!










Direct mapped
Example: run the code on 2-sets four-word block cache which is initially empty
What locality is being used? What is the miss rate?
Suppose a computer system has a memory organization with only two levels of hierarchy, a cache and main memory, with access times and miss rates given as follows:
Access Time Miss rate (Cycles) Cache 1 10% Main Memory 100 0%
What is the average memory access time?
Solution: The average memory access time is 1 + 0.1 (100) = 11 cycles.
In a Row-major arrangement, for example, the elements for a 3x3 matrix A are stored in memory like
In a Column-major arrangement, for example, the elements for a 3x3 matrix A are stored in memory like
Therefore, the order of looping through the matrix indices is essential for spatial locality.
Sum = 0; for(i=0; i<2; i++) for(j=0; j<2; j++) sum += A[i,j];
Locality
Sum = 0; for(j=0; j<2; j++) for(i=0; i<2; i++) sum += A[i,j];
No locality
Advanced issues (CISC 360)