in CO and Architecture
1,141 views
3 votes
3 votes
Consider a direct-mapped cache with 64 blocks and a block size of 16 bytes. Byte address 1200 will map to block number ………… of the cache.
in CO and Architecture
by
1.1k views

1 Answer

6 votes
6 votes
Best answer
Block size = 16 B
Memory block number = Byte Address / Block size
= 1200/16 = 75

Cache block number = (Memory block number) mod (number of blocks in cache) 
= 75 mod 64
= 11 

Or

#CMBlock = 64 = 2^6 
Block Size = 16 = 2^4
Tag(x) CLO(6) bits Block Offset(4)
Convert 1200 in Binary : 10010110000 ==> 1 001011 0000
So Block Number = B11                       11
 
 
selected by

Related questions