Question

In: Computer Science

How many total bits are required for a 1-way set associative cache with 16 KB of...

How many total bits are required for a 1-way set associative cache with 16 KB of data and 8-word blocks, assuming a 32-bit address?

Solutions

Expert Solution

Given that 1-way set associative cache with 16 Kb of data and 8-word blocks, and 32 but address.

assuming each word is 1 byte, that implies 8-words means 8 bytes of data, therefore each block size is 8 bytes.

To refer 8 bytes of information we need 3 bits (i.e, 23 = 8).

Therefore word offset = 3 bits.

cache size is 16 Kilo bytes,

The number of blocks in the cache = cache size / block size = 16 Kb / 8 bytes = (16*1024 bytes) / 8 bytes = 2*1024 blocks = 2048 blocks, and the cache is 1-way set associative which means we have to refer each block as an independent. Which means we have 2048 sets.

To refer these 2048 sets we need 11 bits (i.e, 211 = 2048)

Therefore set index = 11 bits.

Therefore total number of bits required to refer the cache is = set index + word offset = 11 bits + 3 bits = 14 bits.

Note:

tag bits = total memory width - (set index + word offset) = 32 - (11+3) = 32 -14 = 18 bits.


Related Solutions

Consider a 4-way set-associative cache, 4 rows, a line size of 128 bytes and a write-back...
Consider a 4-way set-associative cache, 4 rows, a line size of 128 bytes and a write-back policy. The following requests are made to memory: Load: 0b0011111001000101 Load: 0b1000111110110100 Load: 0b0110101111110100 Store: 0b0010110000000110 Store: 0b1111001001110101 Store: 0b1110000111000001 Load: 0b0000000010100110 Load: 0b0101001001001101 Assuming the machine is in cold-start, profile the contents to the cache after all of the requests have been made. State any assumption you make (if needed).
Clark 202 Part 1: Approximately how many bits are required to address a 4M x 16...
Clark 202 Part 1: Approximately how many bits are required to address a 4M x 16 main memory if: a. Main memory is byte addressable? b. or Main memory is word addressable? Part 2: Consider 256 x 8 RAM chips for the following: a. About how many are needed to provide a memory capacity of 4096 bytes? b. How many lines must go to each and every chip? Part 3: Digital computers have a memory unit with 24 bits per...
11. (12 pts) Consider a system with 32-bit addresses and a 16KB 8-way set-associative cache. Each...
11. (12 pts) Consider a system with 32-bit addresses and a 16KB 8-way set-associative cache. Each cache line contains 64 bytes. (a) How many bits of an address are used for the offset in this cache? (b) How many bits of an address are used for the index in this cache? (c) How many bits of an address are used in the tag for this cache? (d) What is the value of the tag for 0x000d6ae2? (e) What is the...
In set-associative mapping, why when having the choice to replace of which cache line to replace...
In set-associative mapping, why when having the choice to replace of which cache line to replace do we choose the ones with D=0?
A direct mapped cache has 16 blocks and block size is 64-bits (8 bytes). a. Where...
A direct mapped cache has 16 blocks and block size is 64-bits (8 bytes). a. Where will the memory block 45 reside in cache? (5 b. Where will be the memory address 1667 mapped in cache
Suppose a block cipher uses m-to-m bits S-boxes. How many bits are required to store the...
Suppose a block cipher uses m-to-m bits S-boxes. How many bits are required to store the look-up table of k different such m-to-m bits S-boxes? Give a formula in terms of k and m. Hint: A look-up table for one DES S-box requires 256 bits of storage.
How many bits are required to address the program memory of PIC16F887? What is PCLATH? For...
How many bits are required to address the program memory of PIC16F887? What is PCLATH? For PC absolute addressing, describe how to write assembly program to jump to code located in a different program memory page.
How many bits are required to represent all the elements currently in the Periodic Table?
How many bits are required to represent all the elements currently in the Periodic Table?
Part#1 What are the default username and password for Kali Linux? How many bits is the...
Part#1 What are the default username and password for Kali Linux? How many bits is the MD5 hashing algorithm? How many bits is the SHA1 hashing algorithm? Which hashing algorithm is more accurate, MD5 or SHA1? Part#2 What is the command to unmount a partition? In what directories are mount points typically created on Linux? When the ls –l command is used, what is designated in the first column to indicate a file? When the ls –l command is used,...
1.) How many relations are there from a set of size n to a set of...
1.) How many relations are there from a set of size n to a set of size m? 2.) Determine the number of entries in the following sequences: a.) {13, 19, 25, . . . , 601} b. {7, 11, 19, 35, 67, . . . , 131075}
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT