Question
A computer has the following memory and cache characteristics: +Virtual memory: 4 Gbytes +Main memory: 4 Mbytes - + Cache: 4 Kbytes + 1 word
A computer has the following memory and cache characteristics:
+Virtual memory: 4 Gbytes
+Main memory: 4 Mbytes -
+ Cache: 4 Kbytes
+ 1 word is 4 bytes
+ Page size: 4096 words
+ The cache is 4-way set associative
+ Cache block size 16 words
a. How many bits are there in a virtual memory address?
b. Show the page and offset fields of the virtual adress. How many bits are there in each field?
c. How many bits are there in a main memory address?
d. How many sets are there in the cache?
e. Show the tag, set and word fields of the memory addresses. How many bits are there in each field?
d. Virtual address 3A4B5C6DH is mapped to page frame 0 in the main memory. Write the main memory address of this reference.
g. Where will it be mapped in the cache? Write the set number and its tag.
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