in CO and Architecture edited by
254 views
0 votes
0 votes
consider a cache with 32 blocks and each block of size 32 byte. The byte address 1216 of main memory will map which line of cache
in CO and Architecture edited by
254 views

2 Comments

Assuming starting from address 0 for the first byte, the number of blocks that we are going to accomodate till 1216 address are -
1216/Block_size=1216/32=38 blocks.
As the number of blocks are 32 , So for finding the cache line for given memory address-
Block_no%32=38%32=6
So answer should be 6.
0
0
why is it not 0 because 1216 % 32 = 0
0
0

Please log in or register to answer this question.