Question
Suppose a computer has 2^32 bytes of byte-addressable main memory and a cache size of 2^15 bytes, and each cache block contains 32 bytes. A)
Suppose a computer has 2^32 bytes of byte-addressable main memory and a cache size of 2^15 bytes, and each cache block contains 32 bytes.
A) How many blocks of main memory are there?
B) How many blocks of cache memory are there?
C) If this cache is direct-mapped, what is the format of a memory address as seen by the cache; that is, the size of the tag field ____, the size of block field ____, and the size of the offset field ____.
D) If this cache is fully associative, what is the format of a memory address as seen by the cache; that is, the size of the tag field ____, and the size of the offset field ____.
E) If this cache is 4-way set associative, what is the format of a memory address as seen by the cache; that is, the size of the tag field ____, the size of set field ____, and the size of the offset field ____.
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