retagged by
14,156 views
4 votes
4 votes
Consider a 32-bit microprocessor that has an on-chip 16-KByte four-way set-associative cache. Assume that the cache has a line size of four 32-bit words. Draw a block diagram of this cache showing its organization and how the different address fields are used to determine a cache hit/miss. Where in the cache is the word from memory location ABCDE8F8 mapped?
retagged by

1 Answer

Best answer
7 votes
7 votes

16 Kb cache size.

4 way set associative.

Line size = 4*32 bit = 16 bytes.

Here, in question "word" is mentioned and even

"Where in the cache is the word from memory location"

is asked. So, word addressing is in use. So, offset bits = 2 for 4 words.

#sets=no of lines/p(way)

#lines=cache size /line size = $2^{10}$

#sets = $\frac{2^{10}}{4} = 256$

tag(22 bit) sets( 8 bit) block size(2 bit)

 now addrees is ABCDE8F8

its binary from is :1010 1011 1100 1101 1110 1000 1111 1000

<1010 1011 1100 1101 1110 10> <00 1111 10> <00>

it is mapped to set number 62 in cache.

edited by

Related questions

0 votes
0 votes
1 answer
1
focus _GATE asked Jun 5, 2015
6,541 views
16 KB, 4-way set-associative cache, 32-bit address, byte addressable memory, 32-byte cache blocks/linesHow many tag bits?Where would you find the word at address 0x200356...
2 votes
2 votes
0 answers
3
gailort asked May 11, 2022
828 views
A system is based on an 8-bit microprocessor and has two I/O devices. The I/O controllers for this system use separate control and status registers. Both devices handle d...
3 votes
3 votes
1 answer
4
rahuldb asked Nov 17, 2016
15,969 views
A two-way associative cache memory uses blocks of four words.The cache can accommodate a total of 2048 words from main memory.The main memory size is 128K X 32.Find out t...