Question
(1) Consider a computer with byte addressable main memory of 216 bytes and block size of 8 bytes. Assume that a direct mapped cache consisting
(1) Consider a computer with byte addressable main memory of 216 bytes and block size of 8 bytes. Assume that a direct mapped cache consisting of 32 lines is used with this computer.
a. How is a 16-bit memory address divided into tag, line number, and byte number? [1.5 marks]
b. Into what line would bytes with each of the following addresses be stored? [2 marks]
i. 0001 0001 0001 0001
ii. 1100 0011 0011 0100
iii. 1101 0000 0001 1101
iv. 1010 1010 1010 1010
c. Suppose the byte with address 0001 1010 0001 1010 is stored in the cache. What are the addresses of the other bytes stored along with it? [1.5 marks]
d. How many total bytes of memory can be stored in the cache? [1 mark]
e. Why is the tag also stored in the cache? [2 marks]
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