retagged by
1,234 views
3 votes
3 votes

Consider a $\color{maroon}{\text{single-level cache}}$ with an access time of $2.5$ ns, a line size of $64$ bytes, and a hit ratio of $\large\color{maroon}{\text{H } =   0.95}$. Main memory uses a block transfer capability that has a first word ($4$ bytes) access time of $50$ ns and an access time of $5$ ns for each word thereafter.

A. What is the access time when there is a cache miss? Assume that the cache waits until the line has been fetched from main memory and then re-executes for a hit.

b. Suppose that increasing the line size to $128$ bytes increases the $\large\color{marron}{\text{H}}$ to $0.97$. Does this reduce the average memory access time?

retagged by

1 Answer

2 votes
2 votes

A. What is the access time when there is a cache miss? Assume that the cache waits until the line has been fetched from main memory and then re-executes for a hit. 

Directly given there is miss.

Total Words=64B/4B = 16

So Total Time = 2.5ns +[ 1*50ns + 15*5ns ] + 2.5 = 130ns

For part B.

https://gateoverflow.in/11135/consider-the-following 

edited by

Related questions

2 votes
2 votes
0 answers
2
Shubhanshu asked Aug 5, 2017
761 views
According to my calculation, the time required in write back is 240ns and for write through it should be 1920ns. Is it correct or not?
1 votes
1 votes
0 answers
3
Shubhanshu asked Aug 5, 2017
295 views
Figure 4.10Figure 4.12Figure 4.15Fora) 24, 2^16, 4 words, 2^22, 2^14, 8b) 24, 2^16, 4 words, 2^22, 2^14, 22And for c give your answer and verify these answer?