Question

1. (4 pt) Circle True or False. Each is 2 pts. t Recently Used (LRU) replacement policy generates better miss penalty than FIFO for fully- associative caches ngger b me rna 2. (8 pt) Find the Average Memory Access Time (AMAT) for a machine with following configuration: The machine has the hit rate of 95% with the hit time of 2 ns. A miss costs 30 ns to fetch the desired ume that the read and write miss penalties are the same and ignore other write stalls. data. Ass 3. (10 pt) A two-way set associate cache has 8 blocks and each block holds 4-byte of data. The memory system is byte-addressable. For each memory reference below, identify if it is hit or miss? Assume that the cache is initially empty. Reference 0 5 20 17 19 56911 43 17 H/M?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

HOMEWORKLIB RULES: ONLY ONE QUESTION PER POST IS ALLOWED please ABIDE BY THE HOMEWORKLIB POLICY

POST FURTHER QUESTIONS ACCORDINGLY

SOLUTION

Question 1:

a) True, because the page that is recently used is generally the part of the program that is more likely to be used again so LRU results in better miss penalty than FIFO

b) True, because larger block sizes have the advantage of spatial locality so the miss penalty is reduced in cache having larger blocks

PLEASE RATE ! !

Thanks !

Add a comment
Know the answer?
Add Answer to:
1. (4 pt) Circle True or False. Each is 2 pts. t Recently Used (LRU) replacement...
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
  • 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...

  • 2. Cache hierarchy You are building a computer system with in-order execution that runs at 1...

    2. Cache hierarchy You are building a computer system with in-order execution that runs at 1 GHz and has a CPI of 1, with no memory accesses. The memory system is a split L1 cache. Both the I-cache and the D-cache are direct mapped and hold 32 KB each, with a block size of 64 bytes. The memory system is split L1 cache. Both the I-cache and the D-cache are direct mapped and hold 32 KB each, with a block...

  • A short program loop goes through a 16 kB array one word at a time, reads...

    A short program loop goes through a 16 kB array one word at a time, reads a number from the array, adds a random number, and stores the result in the corresponding entry in another array that is located in the memory immediately following the first array. An outer loop repeats the above operation 100 times. The 64-bit processor, operating at a clock frequency of 4 GHz, is pipelined, has 48 address lines, three levels of caches with a 64...

  • (15pts) Answer each of the following with a TRUE (T) or (1) Data in SRAM will...

    (15pts) Answer each of the following with a TRUE (T) or (1) Data in SRAM will be lost without refreshing frequently or FALSE (F) 9. (2) A cache is a small fast memory that stores a subset of the informatio (3) In set associative cache, ory block can be placed in only (4) The unit of data transfer between cache and main memory is a w (5) When CPU requests a word and cannot find it in cache, it a...

  • 1. 2-way Set Associative Cache Memory Consider a hypothetical machine with 1K words of cache memo...

    1. 2-way Set Associative Cache Memory Consider a hypothetical machine with 1K words of cache memory. They are in two-way set associative organization, with cache block size of 128 words, using LRU replacement algorithm. Suppose the cache hit time is 9ns, the time to transfer the first word from main memory to cache is 50ns, while subsequent words require 10ns/word. Consider the following read pattern (in blocks of 128 words, and block id starts from 0): 1 2 3 5...

  • Each of the following questions is either True or False. Place a T (True) if the...

    Each of the following questions is either True or False. Place a T (True) if the answer is True on the answer sheet beside the question; otherwise place a F (False) if the answer is False on the answer sheet beside the question. 21. Variable-length instructions are easier to decode than fixed-length instructions.       T                                        F 22. Fixed-length instructions always have the same number of operands.       T                                        F 23. The two types of cache write policies are write-through and write-back.       T                                        F 24. When...

  • Given the following cache specifications: (S, E, B, m) = (4, 2, 2, 6) Construct a...

    Given the following cache specifications: (S, E, B, m) = (4, 2, 2, 6) Construct a block diagram of a two-way set-associative cache. Each block is 1 byte deep. Identify the tag bits, set bits and block offset bits for the address field. The cache replacement policy is: Last-in First-out. Step 1: Initial State Define the initial structure and state of the cache as done in class. The # of rows in the table below must be changed to fit...

  • 1 Overview The goal of this assignment is to help you understand caches better. You are...

    1 Overview The goal of this assignment is to help you understand caches better. You are required to write a cache simulator using the C programming language. The programs have to run on iLab machines. We are providing real program memory traces as input to your cache simulator. The format and structure of the memory traces are described below. We will not give you improperly formatted files. You can assume all your input files will be in proper format as...

  • this is true and false for C++ (1 point each) Circle T for true or F...

    this is true and false for C++ (1 point each) Circle T for true or F for false for the following questions. 1. T/F The Boolean expression b1 || b2 evaluates to true if either Boolean value (b1, b2) is true. T/F The code we write in C++ (e.g. code in file project1.cpp) is referred to as source code. 2. 3. T/F The statement float scores[3][3] creates 3 arrays, each containing 3 floating-point variables. T/F For loops work best when...

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