edited by
5,949 views
1 votes
1 votes

Given the following specifications for an external cache memory: four-way set associative; line size of two 16-bit words; able to accommodate a total of 4K 32-bit words from main memory; used with a 16-bit processor that issues 24-bit addresses. Design the cache structure with all pertinent information and show how it interprets the processor’s addresses.

edited by

1 Answer

Best answer
3 votes
3 votes
No. of entries in cache = 4K

Line size = 2 *16 = 32 bits = 1 word, for byte addressing (which is default) we need 2 offset bits to address 4 bytes.

So, number of cache lines = 4K

Number of lines in a set = 4 (4 way set associative)

So, number of sets = 4K / 4 = 1024.

So, we need lg 1024 = 10 set/index bits and 2 offset bits. Remaining 12 (24-10-2) bits must be tag bits.
edited by

Related questions

2.0k
views
1 answers
7 votes
Tuhin Dutta asked Jan 27, 2018
1,959 views
Consider a physically tagged, word addressable, 16-way set associative cache with the line size of 128 Bytes. What is the size of cache if tag memory size is 2Kbits. Further assume ... and word size is 4 Bytes.a. 1 KBb. 2 KBc. 3 KBd. 4 KB
320
views
1 answers
1 votes
845
views
3 answers
1 votes
jagadeesha kanihal asked Sep 30, 2015
845 views
Case1) cache block size is 4 Words and memory block size is 8 WordsCase2) cache block size is 8 Words and memory block size is 4 Words
3.2k
views
1 answers
3 votes
khushtak asked Oct 19, 2015
3,173 views
1. A cache structure allows a Cpu to access a cache while a hit is being serviced2. A cache structure allows a Cpu to access a cache while ... support multiple outstanding misses4. A cache that can support multiple outstanding hitsAnd why?