Suppose a computer using direct mapped cache has 232 bytes of main memory and a cache of 1024 blocks, where each block contains 32 bytes.
[2] How many blocks of main memory does this computer have?
[4] Show the format of a memory address as seen by cache; be sure to include the field names as well as their sizes.
[3] Given the memory address 0x00001328, to which cache block will this address map? (Give you answer in decimal.)
A fully associative mapped cache has 8 blocks, with 16 bytes per block. Main memory is 128K bytes.
[3] Show the format for a main memory address, assuming memory is byte addressable. Include the field names as well as their sizes.
[3] Show the format for a main memory address, assuming memory is word addressable, where a word is 32 bits. Include the field names as well as their sizes.