638 views
1 votes
1 votes
consider a 32 bit microprocessor which has 32K byte which is 4-way set associative cache.Block size of cache is 2 32-bit words.The set number to which wprd from memory location FAFEEBE1 wrapped ___.

I'm confused about 2 32-bit words as block size .Answer given was based on <Tag,Set,Word> =<19,9,4>

1 Answer

Best answer
1 votes
1 votes

physical address

29 3

no of sets = n/ assocoativity 
        n= cache size/block size 
          =32Kbyte/23

            =215 / 23 =212

     no of sets = 212 /22

                              = 210 

   set bits = 10 

19 TAG 10 set 3 block offset

1111 1010 1111 1110 1110 1011 1110 0001

blue color marked will give hexa decimal as : 0001 0111 1100

                                                                        : 17C (ANSWER)

selected by

Related questions

1 votes
1 votes
1 answer
1
kimaya asked Jul 8, 2017
640 views
The answer in the solution is b. My confusion is that adding word to a block will reduce Miss Rate and not Miss Penalty. So shouldn't the answer be c, i.e. only S2 is cor...