Question: Consider a physical main memory / cache system with the following properties: Main memory is byte addressable. Memory accesses are to 1 - byte words
Consider a physical main memorycache system with the following properties:
Main memory is byte addressable. Memory accesses are to byte words not byte words Main memory addresses are bits wide. Cache is way set associative E with a byte block size B and eight sets S
The contents of the cache are as shown below, with all numbers given in hexadecimal.
way Set Associative Cache Index Tag V Bytes Tag V Bytes Tag V Bytes Tag V Bytes FO ED A AA BF D FC EF A BC F A BC E CD AO B ED A BC E C DF E FB B BC E E FA B DC B BF B F BE BE F E D A CO A CB D BC C B AF CE C C A C DC BC BA DD D DC E A BA AB EE BC D BA B F BC A D D F DA BC CC A A CE F DA FA EB A A A E BE CC F BC FD
a What is the size C of this cache in bytes?
Explain your answer below:
b The diagram below shows a bit main memory address. Identify the bits of the main memory address that constitute the following fields for addressing the cache:
CO cache block offset
Cl cache set index
CT cache tag c Suppose that the CPU reads a byte from main memory address times mathrm~A
i Write the binary equivalent of the main memory address in the diagram below:
ii Fill in the table below for main memory address times mathrm~A All values should be given in hexadecimal.
d Suppose that the CPU reads a byte from main memory address times mathrmE
i Write the binary equivalent of the main memory address in the diagram below.
ii Fill in the table below for main memory address times E All values should be given in hexadecimal. c Suppose that the CPU reads a byte from main memory address xA
i Write the binary equivalent of the main memory address in the diagram below:
ii Fill in the table below for main memory address times mathrm~A All values should be given in hexadecimal.
d Suppose that the CPU reads a byte from main memory address xE
i Write the binary equivalent of the main memory address in the diagram below.
ii Fill in the table below for main memory address times E All values should be given in hexadecimal.
e List all main memory addresses in hex that will result in a cache hit in set index
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
