A computer system contains a main memory of 32KB. It also has a 4KB cache divided into
Fantastic news! We've Found the answer you've been seeking!
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 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. |
Posted Date: