إذا ممكن أحد يشرحلي الامثلة التالية وهي من مادة التنظيم شبتر 7 ........
1
Example: Bits in a Cache
How many total bits are required for a direct-mapped cache with 16 KB of data and 4-word blocks, assuming a 32-bit address?
16KB = 4K words = 212 words
Block size = 4 words(22), 210 blocks
Each block has 4*32=128 bits of data plus a tag(32-10-2-2 bits)
Thus:
the total cache size = 210*(128+(32-10-2-2)+1) = 210 *147 = 147 Kbits
.................................................. .............................
2
Example: Mapping an Address to a Multiword Cache Block
Consider a cache with 64 blocks and a block size of 16 bytes. What block number does byte address 1200 map to?
رجعت للكتــــــــــــــــــــــــــــاب و ما فهمت شيء