edited by
685 views
1 votes
1 votes

edited by

2 Answers

Best answer
7 votes
7 votes
Number of address bits = 16.

#Tag bits = 9.

#Offset bits = 3 (block/line size is 8 bytes and byte-addressing assumed).

So, number of set bits = 16 - 9 - 3 = 4.

Number of sets $=2^4=16$.

No. of cache blocks/lines $=\frac{\text{Cache size}}{\text{Block size}} \\=\frac{1024}{8} = 128.$

So, we have 128 cache blocks and 16 sets meaning $\frac{128}{16} = 8$ way associative cache.
selected by
0 votes
0 votes

Cache size=2^10 Byte

Block Size=2^3 Byte

Format of address split in set associativity

Tag=9bits Set number=4 bits Block Offset=3 bits

Lines=CS/BS

Lines=2^7 

clear 

number of sets=Lines/2^3=2^4 =4bits

Therefore it is 8 way set associativity.

Related questions

0 votes
0 votes
2 answers
1
1 votes
1 votes
1 answer
2