Question: A computer system contains a main memory of 32KB. It also has a 4KB cache divided into four-lines/set with 64B per line. Assume that the
| A computer system contains a main memory of 32KB. It also has a 4KB cache divided into four-lines/set with 64B per line. Assume that the cache is initially empty. The processor fetches words from locations 0, 1, 2, . . ., 4351 in that order. It then repeats this fetch sequence nine more times. The cache is 10 times faster than main memory. Estimate the improvement resulting from the use of the cache. Assume an LRU policy for block replacement. Show the state of cache at the end. | ||||||||||||||||||||||||
Consider the following assembly code:
a) Use five-stage pipeline containing fetch, decode, memory read, execute, write-back units, show the execution of above instructions. Data dependencies and control hazards, if detected must be resolved by stalling the pipeline as required. Assume that a multi-port RAM is used with the CPU running at 1GHz. Calculate the execution time and compare time that would have required in a non-pipelined processor to run the same program. |
Step by Step Solution
There are 3 Steps involved in it
Set 0 Set1 Set2 Set3 Set4 Set5 Set6 Set7 Set8 Set9 Set10 Set11 Set12 Set13 Set14 Set15 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr0 Fr1 Fr1 Fr1 Fr1 Fr1 Fr1 Fr1 Fr1 Fr1 Fr1 Fr1 Fr1 F... View full answer
Get step-by-step solutions from verified subject matter experts
