Question: Consider a machine with main memory 2^16 bytes and block size of 8 bytes (also 1 byte = 1 word). Assume that a direct mapped

Consider a machine with main memory 2^16 bytes and block size of 8 bytes (also 1 byte = 1 word). Assume that a direct mapped cache consisting of 32 total cache lines is used with this machine. a) How would the 16 bit address be divided into tag, line number, and word number?

b) Suppose that the word at the 16-bit address 0001 1010 0001 1010 in main memory is to be stored in the cache. Which cache line will this word be stored at? What will be the addresses in main memory of the other other words that will be stored along with this word in cache at the same time (remember each cache line is a block of words)?

c) How many maximum total bytes of data can be stored in the cache at a given time?

d) Do you need to store the tag since direct mapping is used? Why or why not?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!