retagged by
710 views
1 votes
1 votes
Question :

Consider a system with 20 bit physical address and direct mapped cache with 64 blocks and block size of 16 bytes To what block number does byte address 1200 mapped??
retagged by

1 Answer

–1 votes
–1 votes
It will be mapped to block number 11 .

PA is divided as : 10 | 6 | 4

Division of PA : Tag = 10 bits , index =  6 bits , offset = 4 bits .

So for address 1200 take the 6 bits of index from PA i.e bits from block index and find the block number.

PA : Tag  | Index | wo

0000000001    |     001011   |   0000

So, 001011 = 11

 

Alternative way is:

 

As one block has 16 addresses so address 1200 will be in 1200/16 =75 block number.

Now this block number will be mapped to 75%64 = 11.
edited by

Related questions

7 votes
7 votes
5 answers
2
Satbir asked Jan 13, 2020
6,134 views
How many total bits are required for a direct-mapped cache with $128$ KB of data and $1$ word block size, assuming a $32$-bit address and $1$ word size of $4$ bytes?$2$ M...
0 votes
0 votes
1 answer
3
0 votes
0 votes
0 answers
4
manisha11 asked Jan 5, 2019
214 views
What does additional memory for tags refer to in Direct Mapping, Associative Mapping and Set- Associative Mapping?