Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A block-set associative cache consits of a total of 64 blocksdivided into 4-bloc

ID: 3611113 • Letter: A

Question

A block-set associative cache consits of a total of 64 blocksdivided into 4-block sets. The main meory contains 4096 blocks,each consisting of 128 words. Assume that this is the maximum sizeof the main meory. Assume word addressing(i.e., address 0,1,2,3.... refer to words not bytes). a.) How many bits are there in a main memory address? b.) How many bits are there in each of the TAG,SET, and WORDfields? A block-set associative cache consits of a total of 64 blocksdivided into 4-block sets. The main meory contains 4096 blocks,each consisting of 128 words. Assume that this is the maximum sizeof the main meory. Assume word addressing(i.e., address 0,1,2,3.... refer to words not bytes). a.) How many bits are there in a main memory address? b.) How many bits are there in each of the TAG,SET, and WORDfields?

Explanation / Answer

Dear User,

a)

The main memory contains 4096 blocks and each block consists of128 words

                   Total words in Main memory = 4096 *128

                                                                   = 524288

To address 524288 words we require (2^19 =524288) –19bits

b)

         Wordbits:

        There are 128 wordsin each block. Therefore, to identify each word (2^7 =128)

                                                                                                                        7 bits require

        Setbits: There are 64 blocks and each set consists of 4blocks.Therefore, there are

        16(64/4) sets. Toidentify each set (2^4 =16) –four bits required.

Tag bits:

             The total address bits are 19.

                                               The tag bits =19-7-4

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote