Question: Computer Architecture Cache Design 1 Set - associative Cache Given a 2 MB 4 - way cache with 3 2 - Byte cache lines; assume
Computer Architecture
Cache Design
Setassociative Cache
Given a MB way cache with Byte cache lines; assume memory addresses are bits,
please answer the following questions. pts
How many sets are there?
How many bits are needed for offset?
How many bits are needed for set index?
How many bits are there for the tag?
Given a memory address xBFF F D which set does it map to What are its tag and
offset?
Cache Replacement Policy
Consider the following set of an LRU cache,
LRU Q:
Please answer the following questions. pts
If next request accessing data at address B what do the set and the queue look like after
this request?
If the nd request accessing data at address D what do the set and the queue look
like after this request?
If the rd and th requests accessing data at addresses C and A what do the set and
the queue look like after these two requests?
Way Data
A
C
D
E
E D C A
Cache Performance
Please answer the following questions regarding average memory access time AMAT pts
If a specific cache design has miss rate for a set of benchmarks with a hit latency of cycles and a miss penalty of cycles. What is the AMAT for this cache?
If another cache design has miss rate for the same set of benchmarks with a hit latency of cycles and a miss penalty of cycles. What is the AMAT for this cache?
Which cache design is better?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
