DPCO Unit 5
DPCO Unit 5
UNIT 5
12. How many total bits are required for a direct mapped cache with 16KB of data and 4-word
blocks, assuming a 32bit address?
No. of cache lines= data memory size of cache /data size of 1 cache line
12
= 16KB/4B = 16x1024/4 = 4096 = 2 lines
12
No. of bits needed to represent cache line = log2 (2 ) = 12
bits No. of bits needed to represent a word in a line = log24 =
2 bits No. of bits needed for tag = 32-12-2 = 18 bits
12
Size of tag memory = No. of tag bits * No. of lines = 18 * 2 bits = 72K
bits Size of data memory = 16 KB = 16 x 8 = 128K bits
Total memory needed for cache = 128 K bits + 72K bits = 200Kbits
PART: B
1. What is cache memory? Discuss Mapping and Replacement Algorithms in detail.
2. Discuss DMA controller with block diagram
3. Discuss the steps involved in the address translation of virtual memory with necessary block diagram.
5. Explain in detail the operation of the data path and its control.
6. Explain the pipeline hazard in detail.