Question

Systems Programming problem:


Consider a processor with the following parameters Base CPI (no Memory Stall) Clock rate L1 miss rate L2 Direct Mapped speed

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

For main memory access time = 50ns
1) First level cache only
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*Main Memory access
= 1.5 + 0.07*50ns*2 GHz = 1.5 + 0.07*100 = 1.5 + 7 = 8.5
2) First level and Second level direct-mapped cache
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*L2 access + L2miss* Main memory access
= 1.5 + 0.07*12 + 0.035*50ns*2GHz = 1.5 + 0.84 + 3.5 = 5.84
3) First level and second level eight-way set associative
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*L2 access + L2miss* Main memory access
= 1.5 + 0.07*28 + 0.015*50ns*2GHz = 1.5 + 1.96 + 1.5 = 4.96
---------------------------------------------------------------------------------------------------------
For main memory access time = 100ns
1) First level cache only
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*Main Memory access
= 1.5 + 0.07*100ns*2 GHz = 1.5 + 0.07*200 = 1.5 + 14 = 15.5
2) First level and Second level direct-mapped cache
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*L2 access + L2miss* Main memory access
= 1.5 + 0.07*12 + 0.035*100ns*2GHz = 1.5 + 0.84 + 7 = 9.34
3) First level and second level eight-way set associative
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*L2 access + L2miss* Main memory access
= 1.5 + 0.07*28 + 0.015*100ns*2GHz = 1.5 + 1.96 + 3 = 6.46
-----------------------------------------------------------------------------------------------------------
For main memory access time = 200ns
1) First level cache only
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*Main Memory access
= 1.5 + 0.07*200ns*2 GHz = 1.5 + 0.07*400 = 1.5 + 28 = 29.5
2) First level and Second level direct-mapped cache
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*L2 access + L2miss* Main memory access
= 1.5 + 0.07*12 + 0.035*200ns*2GHz = 1.5 + 0.84 + 14 = 16.34
3) First level and second level eight-way set associative
CPItotal= CPIbase+ CPImemory-stalls= CPIbase+ L1miss*L2 access + L2miss* Main memory access
= 1.5 + 0.07*28 + 0.015*200ns*2GHz = 1.5 + 1.96 + 6 = 9.46

-----------------------------------------------------------------------------------------------------------------

Hope it helps, please upvote if you are happy with the answer

Add a comment
Know the answer?
Add Answer to:
Systems Programming problem: Consider a processor with the following parameters Base CPI (no Memory Stall) Clock rate L1 miss rate L2 Direct Mapped speed L2 Direct Mapped miss rate L2 8-way set asso...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Base machine has a 2.4GHz clock rate. There is L1 and L2 cache. L1 cache is...

    Base machine has a 2.4GHz clock rate. There is L1 and L2 cache. L1 cache is 256K, direct mapped write through. 90% (read) hit rate without penalty, miss penalty is 4 cycles. (cost of reading L2) All writes take 1 cycle. L2 cache is 2MB, 4 way set associative write back. 95% hit rate, 60 cycle miss penalty (cost of reading memory). 30% of all instructions are reads, 10% writes. All instructions take 1 cycle - except reads which take...

  • A direct-mapped cache consists of 8 blocks. Byte-addressable main memory contains 4K blocks of 8 bytes...

    A direct-mapped cache consists of 8 blocks. Byte-addressable main memory contains 4K blocks of 8 bytes each. Access time for the cache is 22ns, and the time required to fill a cache slot from main memory is 300ns. (This time allows us to determine the block is missing and bring it into cache.) Assume a request is always started in parallel to both cache and to main memory(so if it is not found in cache, we do not have to...

  • Consider an L1 cache that has 8 sets, is direct-mapped (1-way), and supports a block size...

    Consider an L1 cache that has 8 sets, is direct-mapped (1-way), and supports a block size of 64 bytes. For the following memory access pattern (shown as byte addresses), show which accesses are hits and misses. For each hit, indicate the set that yields the hit. (30 points) 0, 48, 84, 32, 96, 360, 560, 48, 84, 600, 84, 48.

  • Question 9 Which of the following statements is true about memory system? Put the answer in...

    Question 9 Which of the following statements is true about memory system? Put the answer in the box. A. Cache memories are usually built by SRAMs, which have higher density and faster access speed than DRAM-based main memories. B. Secondary storages such as hard disk drive and solid-state drive are typically volatile memories. C. Compared to the associative cache mapping function, direct mapping function has more flexibility. D. Due to locality of reference, the basic transfer unit between cache and...

  • 6. What is the difference between a Direct map cache and Set associative cache. If we...

    6. What is the difference between a Direct map cache and Set associative cache. If we are looking for block #26, block 32 and block #10 in an 8 way set associative and 4 block direct mapped cache. Where can we find these blocks. (Show your work) 7. What are the differences between SRAM, DRAM, SDRAM, who implements SRAM and SDRAM 8. What is a DIMM, So-Dimm and DDR, list different versions of DDR, what are the differences between those...

  • 3. 12+2-4 points] We are comparing the two caches in Problem 1 and Problem 2. Suppose both caphes have a hit time of 2 cycles. The cache in Problem 1 has a miss penalty of 15 cycles. The o...

    3. 12+2-4 points] We are comparing the two caches in Problem 1 and Problem 2. Suppose both caphes have a hit time of 2 cycles. The cache in Problem 1 has a miss penalty of 15 cycles. The one in Problem 2 has a miss penalty of 25 cycles. Calculate the total time taken (in cycles) for all accesses, for each cache. Which cache is better- the one in Problem 1 or Problem 2? 3. 12+2-4 points] We are comparing...

  • 1a. convert the following decimal number to 32 bit single precision Floating point binary number and...

    1a. convert the following decimal number to 32 bit single precision Floating point binary number and convert that binary number to hexadecimal NUMBER = -134.5 in decimal b. convert the following 32-bit single precision floating point number to decimal: 01000111111100000000000000000000 2. Using Booth's algorithm, multiply the decimal numbers -12 and +13. 3. you have two improvement alternatives, which is better and why? The first one improves 15% of the instructions, and it improves that speed by a factor of 6....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT