Due: Friday, October 25, 2024, 11:00 am (start of the class)
Email Ying your homework. The email subject should follow this format CS232 Fall2024 HW5 -- Your Name.
Pentium IV Cache Design
Split level 1 (L1) cache into two parts: a 16KB (214) instruction cache and an 8KB (213) data cache. The L1 data cache uses a 4-way set associative design, and each line has 64 bytes (26). The L1 instruction cache uses a direct mapping design and each line has 64 bytes.
The L2 cache is 256KB (218), and the line size is 128 bytes (27). It uses an 8-way set associative design.
The addressable unit is 1 byte.
Please answer the following questions.
Given a 32-bit address, what is the size for the tag, set, and word fields for the L2 cache?
Given a 32-bit address, how many lines are in the L1 data cache? How many sets?
Given the 32-bit address 0xFF0110A8, which line of cache would it map to in the L1 instruction cache, given the above design? Hint: the address is given in a hexadecimal format. Each number in hexadecimal uses 4 bits in binary to represent. The given address has 8 hexadecimal numbers, which is consistent with the 32-bit address (4 * 8 = 32).
Explain why it might make sense for the L1 instruction cache to be direct mapped while the L1 data cache is 4-way set associative.
If the hit ratio for the L-1 cache is 70% and the hit ratio for the L-2 cache is 80%, how often does the CPU have to go all the way to main memory to retrieve data? How much benefit does the L2 cache provide?
© 2024 Ying Li. Page last modified: .