COMPUTER FUNDAMENTALS

COMPUTER ARCHITECTURE

MEMORY SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider a direct mapped cache with block size 4 KB. The size of main memory is 16 GB and there are 10 bits in the tag. Find the number of bits in physical address.
A
34 bits
B
32 bits
C
16 bits
D
8 bits
Explanation: 

Detailed explanation-1: -There are 2^32 = 4, 294, 967, 296 total bits in a 32-bit address. Therefore, the required number of bits for a direct-mapped cache with 16 KB of data and 4-word blocks is 2^32 + 4 = 4, 294, 967, 296.

Detailed explanation-2: -Calculate the size of each address in m bits. If main memory has 2048 bytes, then we have 2048=2^m unique addresses. Calculate bit offset n from the number of bytes in a block. 64 bytes/8 blocks = 8 bytes per block. Calculate the set index s. Finally, we know the number of tag bits is T=m-s-n. 13-Mar-2021

There is 1 question to complete.