Question: Exercise 6 : Cache and Memory Performance Evaluation You are tasked with analyzing the performance of a CPU with the following configuration: Address Space: 3
Exercise :
Cache and Memory Performance Evaluation
You are tasked with analyzing the performance of a CPU with the following configuration:
Address Space: bit addresses GB addressable memory
Cache Configuration:
o Cache Size: KB
o Cache Line BlockSize: bytes
o Cache Associativity: way set associative
o Write Policy: Writeback
o Write Allocation: Writeallocate on write miss, load the block into the cache
o Replacement Policy: Least Recently Used LRU
Main Memory: GB of memory.
Part : Cache Organization
Determine the number of blocks in the cache.
Determine the number of sets in the cache.
Determine the number of bits used for the block offset, index, and tag.
Part : Cache Access Sequence
The CPU generates the following sequence of memory accesses in hexadecimal:
xxxxxxxxxx
xxxxxxxAxBxCxD
For each of the memory accesses, determine if it results in a cache hit or a cache miss, and simulate the cache replacement process using the LRU policy
Part : Virtual Memory Page Table Simulation
Assume that the CPU uses paging for virtual memory with the following configuration:
Page Size: KB
Virtual Address Space: bit, so the total virtual memory size is GB
Physical Address Space: bit, so the total physical memory size is also GB
Determine the number of pages in virtual memory and the number of frames in physical memory.
Simulate the translation of virtual addresses to physical addresses for each memory access.
Part : Performance Analysis
Calculate the cache hit ratio and miss penalty based on the cache access sequence.
Calculate the page fault rate and determine the effective memory access time EMATconsidering a page fault penalty of cycles
Exercise :
A CPU produces the following sequence of read addresses in hexadecimal:
ACCFADC
The word size is bits
Assume an word cache that is initially empty.
Implement a Least Recently Used LRUreplacement policy.
For each of the following cache types, determine whether each address produces a hit or a miss:
Direct Mapping
Fully Associative
Twoway setassociative
Task:
Fill in the table with Address HexAddress BinaryDirect Mapping, Fully Associative, and Way Set Associative.
Sketch the cache after processing all addresses and note replacements.
Compare the hit ratio for each cache type.
Discuss how changing the cache design to use words per block would affect the hitmiss behavior.
Explain the impact of miss penalty on the system performance.
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
