Problem 2 (15 Points)
Problem 2 (15 Points)
Submit your HW in Canvas. Your submission should be clearly and neatly to be considered grading.
Assume that main memory accesses take 70 ns and that 36% of all instructions access data memory. The
following table shows data for L1 caches attached to each of two processors, P1 and P2.
a) Assuming that the L1 hit time determines the cycle times for P1 and P2, what are their respective
clock rates?
b) What is the Average Memory Access Time (AMAT) for P1 and P2 (in cycles)?
You are designing the memory hierarchy for a new processor. The access latency of main memory is 200
cycles. You have the following choices for the L2 design:
• 2MB, 16-way set-associative. Hit time = 30 cycles. %miss = 1%
• 1MB, 8-way set associative. Hit time = 20 cycles. %miss = 5%
• 512KB, 4-way set associative. Hit time = 15 cycles. %miss = 10%
1
CECS-341: Computer Architecture and Organization
Semester: Spring 2023 (CSULB)
Homework 4 – Cache Design
Assigned: Dec 1, 2023
Due: Dec 7, 2023, 11PM
Caches are important to providing a high-performance memory hierarchy to processors. Below is a list of
64-bits memory address references given as word addresses.
0x03, 0xb4, 0x2b, 0x02, 0xbf, 0x58, 0xbe, 0x0e, 0xb5, 0x2c, 0xba, 0xfd
For each of these references identify the binary word address, the tag, and the index given a direct
mapped cache with 16 one-word blocks. Also list whether each reference is a hit or a miss, assuming the
cache is initially empty.
• Each block stores 16 words. A direct-mapped cache has 256 blocks. In which block of the cache
would we look for each of the following addresses?
a. 1A2BC012
b. FFFF00FF
c. 12345678
d. C109D532