CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

If a cache has 64-bytes cache lines, how long does it takes to fetch a cache line if the main memory takes 20 cycles to respond to each memory request and returns 2 bytes of data in response to each request ?

A
640 cycles
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
160 cycles
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
320 cycles
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
980 cycles
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A 640 cycles
option (b)

In one request, 2 Bytes of data can be accessed from main memory. Number of request needed to access a cache line of size

64B=64B2B=32

1 request time = 20cycles

32 requests time=32×20

=640 cycles

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Cache Initialization 1
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon