Consider a computer with 2^32 bytes of memory has a direct mapped of 1024 blocks
ID: 3777489 • Letter: C
Question
Consider a computer with 2^32 bytes of memory has a direct mapped of 1024 blocks, where each block is 32 bytes. How many blocks of main memory are there? Show the format of an address utilized by the cache. How many bits are in the tag. block and offset fields? For the address 0.r0000652C, what are the values of the tag. block and offset fields? Suppose the computer described in problem 0 instead had a fully associative cache. How many blocks of main memory are there? Show the format of an address utilized by the cache. How many bits are in the tag and offset fields? For the address 0x0000CB62, what are the values of the tag and offset fields?Explanation / Answer
a. No.of blocks of main memory : 232/26 = 226
b. In 32 bit address , tag field having the 23bits and block field having 3bits and offset field having 6bits.
c. 0x0000CB62 = 0000 0000 0000 0000 0000 0000 1100 1011 0110 0010
From this the tag is 0000 0000 0000 0000 1100 101 and the block field is 101 and the offset is 10 0010
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.