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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started