Given: A MIPS computer system with 1 GB of main memory. It has a 4K-Byte direct-mapped cache with a block size of 4 words.
a) Where will the data from main memory address 12345ten be placed in the cache? i.e. specify the cache line number to which main memory byte address 12345ten is mapped. Assume cache lines and main memory blocks are numbered starting at zero as usual.
b) What other neighboring memory addresses nearby 12345ten would reside in the same block of main memory? i.e. list all byte addresses that are in the same main memory block as byte address 12345ten. Specify your answer as an inclusive range of addresses.
Suppose the main memory is completely filled with an equal number of unary and nonunary instructions. How many total instructions would it contain?