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.
Solution
B)
As per the question we assume cache is initially empty
total cache size = 8 blocks that means it using 2 word block
1 bit assigned for word offset,
3 bits assigned for block selection that means 3 bits for index, remaining is for Tag
|
Address (word) |
Address(Hex) |
Cache Tag |
Index |
Cache Data |
Hit/Miss |
|
6 |
0x00000000000110 |
0x0000000000 |
011 |
M(6) M(7) |
Miss |
|
214 |
0x00000011010110 |
0x0000001101 |
011 |
M(6) M(7) replaced by M(214) M(215) |
Miss |
|
175 |
0x00000010101111 |
0x0000001010 |
111 |
M(174) M(175) |
Miss |
|
214 |
0x00000011010110 |
0x0000001101 |
011 |
M(214) M(215) |
Hit |
|
6 |
0x00000000000110 |
0x0000000000 |
011 |
M(214) M(215) replaced by M(6) M(7) |
Miss |
|
84 |
0x00000001010100 |
0x0000000101 |
010 |
M(84) M(85) |
Miss |
|
65 |
0x00000001000001 |
0x0000000100 |
000 |
M(64) M(65) |
Miss |
|
174 |
0x00000010101110 |
0x0000001010 |
111 |
M(174) M(175) |
Hit |
|
105 |
0x00000001101001 |
0x0000000110 |
100 |
M(104) M(105) |
Miss |
|
85 |
0x00000001010101 |
0x0000000101 |
010 |
M(84) M(85) |
Hit |
|
215 |
0x00000011010111 |
0x0000001101 |
011 |
M(6) M(7) replaced by M(214) M(215) |
Miss |
--
solved one question, really sorry for that
please post remaining question separately, love to answer
all the best
Using the sequences of 32-bit memory read references, given as word addresses in the following table:...
2. Suppose that a program does read operations on the following memory addresses (e.g., with “lb” or “lw” instructions): 248, 1312. Give the number of the memory block that each of these addresses belongs to, for each of the following memory block sizes. (a) block size of one word (4 bytes) (b) block size of eight words (32 bytes) 3. Give the position (or set) in the cache that would be checked on each of the read operations of question...
use the following list of 32 bit memory address references, given as word addresses. Note that you will need to convert them to binary: 3, 180, 43, 2, 191, 88, 190, 14, 181, 44, 186, 253 4. Assume a direct-mapped cache with 16 one-word blocks. For each reference, list the binary address, the tag, the index, and if the reference is a hit or a miss, assuming the cache is initially empty.
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...
If I have a problem set like so: Below is a list of 64-bit memory address references, given as word addresses. 3, 180, 43, 2, 191, 88, 190, 14, 181, 44, 186, 253 5.2.1 BLOCK SIZE: 1 word CACHE SIZE: 16 1-word blocks a) For each of these references, identify the binary address, the tag, and the index given a direct-mapped cache with 16 one-word blocks. Also list if each reference is a hit or a miss, assuming the cache...
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...
Please help with this
Below is a list of 32-bit (1 word) memory address references a program makes, given as word addresses (not byte addresses): 2, 4, 5, 4, 6, 4, 12, 13, 2, 13, 4, 253 For each of these references, identify the tag and index, given a 16 word, direct-mapped cache which has 8 two-word blocks. Also, list if each reference is a hit or a miss, assuming the cache is initially empty. Your answer should be a...
Here is a series of address references given as word addresses: 2, 3, 11, 16, 21, 13, 64, 48, 19, 11, 3, 22, 4, 27, 6, and 11. Using this references, show the hits and misses and the final cache contents for a two-way set-associative cache with one-word blocks and a total size of 16 words. Assume LRU replacements.
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
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.
Here is a series of address references given as word addresses: 1, 4, 8, 5, 20, 17, 19, 56, 9, 11, 4, 43, 5, 6, 9, 17. For each of the following cache design, label each reference as a hit or a miss and show the final contents of the cache. Assume the caches are initially empty. - Direct mapped with four-word blocks and total size of 16 words.