asked 17.0k views
0 votes
for a direct-mapped cache design with a 32-bit address, the following bits of the address are used to access the cache. what is the cache block size (in words)?

1 Answer

1 vote

The cache block size for the given configuration is 2^26 words.

Calculating Cache Block Size:

Total address bits: 32 bits

Bits used for cache access: 6 bits (bits 0 to 5)

Remaining bits: 32 bits - 6 bits = 26 bits

Each address bit represents one word: Therefore, 26 bits represent 2^26 words.

Therefore, the cache block size is 2^26 words.


The Complete Question

For a direct-mapped cache design with a 32-bit address, the following bits of the address (from bit 0 to bit 5) are used to access the cache.

Calculate the cache block size (in words) based on the provided address bits.

Address bits used for cache access: Bits 0 to 5

answered
User Artanik
by
8.1k points