Question

Assume there are three small caches, each consisting of four one-word blocks. One cache is fully...

Assume there are three small caches, each consisting of four one-word blocks. One cache is fully associative, a second is two-way set-associative, and the third is direct mapped. Find the number of misses for each cache organization given the following sequence of block addresses: 2, 4, 2, 7, 0, and 8. Assume a LRU (least recently used) scheme is used to choose which block to replace.

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

LRU (least recently used) technique is used to choose which block to replace.

one woy Set associative (diveet mapped) Block - Tag Data Given Block Address 2, 4, 2, 70, 8 wp-O Two way set associative set

Address of memory Block Associativity in cache Hit or contents of cache blocks Miss after reference 0 1 2 Mem [2] Mem [2] Mis

after Block © Fully associative cache- Address of Hitl contents of cache block memory block Miss reference Block 0 Block 1 Bl

Add a comment
Know the answer?
Add Answer to:
Assume there are three small caches, each consisting of four one-word blocks. One cache is fully...
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
  • Assume a cache with 2048 blocks, a 4-word block size, and a 32-bit address. For each...

    Assume a cache with 2048 blocks, a 4-word block size, and a 32-bit address. For each of the following configurations, find the total number of bits for each cache block and the total numbers of bits for the entire cache. a. Direct-mapped b. Two-way set associative c. Four-way set associative d. Fully-associative

  • 1. A cache holds 64 words where each word is 4 bytes. Assume a 32 bit...

    1. A cache holds 64 words where each word is 4 bytes. Assume a 32 bit address. There are four different caches a. A direct-mapped cache with block size = 16 words b. 2-way set-associative cache with block size = 8 words c. 4-way set-associative cache with block size=4 words d. A fully associative cache with block size = 16 words. Complete the table for each cache. Cache a Cache be Cache Cache de 16 Number of bits needed for...

  • Cache of 4096 blocks, a 4-word block size, and a 32-bit address, find the total number...

    Cache of 4096 blocks, a 4-word block size, and a 32-bit address, find the total number of sets and the total number of tag bits for caches that are direct mapped, four-way set associative, and fully associative.

  • Using the sequences of 32-bit memory read references, given as word addresses in the following table:...

    Using the sequences of 32-bit memory read references, given as word addresses in the following table: 6 214 175 214 6 84 65 174 64 105 85 215 For each of these read accesses, identify the binary address, the tag, the index, and whether it experiences a hit or a miss, for each of the following cache configurations. Assume the cache is initially empty. A direct-mapped cache with 16 one-word blocks. A direct-mapped cache with two-word blocks and a total...

  • Consider a memory hierarchy using one of the three organization for main memory shown in a...

    Consider a memory hierarchy using one of the three organization for main memory shown in a figure below. Assume that the cache block size is 32 words, That the width of organization b is 4 words, and that the number of banks in organization c is 2. If the main memory latency for a new access is 10 cycles, sending address time is 1 cycle and the transfer time is 1 cycle, What are the miss penalties for each of...

  • 4 blocks, direct-mapped, 1 word per cache line Reference sequence: 4,8,12,4,8,20,4,888,20,24,12,8,4 Find the number of Compulsory,...

    4 blocks, direct-mapped, 1 word per cache line Reference sequence: 4,8,12,4,8,20,4,888,20,24,12,8,4 Find the number of Compulsory, capacity, and confilict misses. Also, when It becomes fully associative cache and 2 set-associative cache. Please explain specifically.

  • Assume a memory model where you have a cache size of 4 blocks, a block size of 8, and addresses f...

    Assume a memory model where you have a cache size of 4 blocks, a block size of 8, and addresses from 0 through 511. Assume that the n-way associative cache and fully associative cache use a LRU (least recently used) eviction strategy. Consider the following sequence of memory accesses: 17, 66, 22, 66, 80, 41, 85, 66, 17, 104. (a) Show the updates to a 2-way associative cache in a table using a similar format to the table shown on...

  • 6. (30) Consider a 64B direct-mapped cache with 16B blocks and 4 sets for an 8-bit architecture (...

    6. (30) Consider a 64B direct-mapped cache with 16B blocks and 4 sets for an 8-bit architecture (i.e., 256 bytes of memory): a. (5) Write a C function unsigned char getTag(unsigned char address) that returns the cache tag for the specified address using bitwise operators: b. (5) Write a C function unsigned char getSet(unsigned char address) that returns the cache set for the specified address using bitwise operators: c. (10) Considering the following sequence of memory addresses, which addresses will...

  • Consider the following 2-way set associative cache with 24 blocks 8-bits addresses, using the Least Recently...

    Consider the following 2-way set associative cache with 24 blocks 8-bits addresses, using the Least Recently used Scheme: Block Valid? LRU Tag Data 1 000 Describe what happens and show the cache state after each of the 001 following sequence of reads. T T 01101 data@01101010 010 T 1 10110 data@10110010 1. 10110000 2. 00101111 011 3. 00110101 100 4. 00110010 5. 01101010 T T 01101 data@01101101 101 . 110 T 111 00101 data 200101111 10110 data@10110111 T

  • Consider a processor that has a 20-bit address and a 1K Byte Cache. The cache and...

    Consider a processor that has a 20-bit address and a 1K Byte Cache. The cache and main memory are divided into blocks where each block is 256 Bytes. If direct mapping is used, what is the tag size of each block in cache and how many tag comparisons are made for a one-cache access? Repeat part (1) for fully associative mapping. Repeat part (1) for 2 way set-associative cache. For the direct map find out which of the following accesses...

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
Active Questions
ADVERTISEMENT