Question: Q . 4 . Memory Hierarchy [ 2 0 marks ] Consider a computer system with a cache memory organized as a 4 - way

Q.4. Memory Hierarchy
[20 marks]
Consider a computer system with a cache memory organized as a 4-way set associative cache. The cache has a block Size of 16 Bytes and a total size of 64 KB .
The sequence of memory addresses of the first column in the below table need to be accessed in the shown order:
\begin{tabular}{||l||c||c||l||l||}
\hline \begin{tabular}{c}
Memory \\
Address
\end{tabular} & \begin{tabular}{c}
Block \\
Address \\
(decimal)
\end{tabular} & \begin{tabular}{c}
Set Index \\
(decimal)
\end{tabular} & \begin{tabular}{c}
Hit/\\
Miss
\end{tabular} & \\
\hline \hline \(0\times 0000\) & & & & Block is added to set ?\\
\hline \hline \(0\times 0010\) & & & & \\
\hline \hline \(0\times 0020\) & & & & \\
\hline \hline \(0\times 0010\) & & & & \\
\hline \(0\times 0000\) & & & & \\
\hline \hline \(0\times 0040\) & & & \\
\hline \hline \(0\times 0000\) & & & \\
\hline \hline \(0\times 0040\) & & & \\
\hline
\end{tabular}
1. Calculate the number of sets in the cache.
2. Determine which addresses map to which sets.
3. Trace the access pattern to identify hits and misses in the cache.
[Use the above table or repeat it in your answer]
4. Calculate the hit ratio for the given sequence of memory accesses.
Q . 4 . Memory Hierarchy [ 2 0 marks ] Consider a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!