Question: 1 ) ( 4 2 pts ) In a hypothetical system with 1 0 2 4 bytes of main memory, 1 2 8 bytes of
pts In a hypothetical system with bytes of main memory, bytes of cache, blocks of byte
size, with directmap S placement policy and LRU replacement policy, answer each of the following
questions:
a pts Determine the address fields for index, tag and block offset in the memory address.
b pts How many sets are there in the cache?
c pts How many blocks in the main memory are mapped to the same set of blocks in cache?
d pts If associative parallel comparison is to be performed with all tags for identification, how
many XOR gates are required?
e Determine the hit ratio in running each of the following program segments each instruction occupies
a word: briefly show your work
i pts a sequence of consecutive instructions starting from address x with each
instruction executed once in order
ii pts a loop of consecutive instructions starting at location x and is iterated times
iii pts a loop of consecutive instructions starting at location x and is iterated times
pts Redo problem # if it is with a way set associative placement policy S
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
