1. Math
  2. Advanced Math
  3. 7 consider a mips machine with a 5stage pipeline with...

Question: 7 consider a mips machine with a 5stage pipeline with...

Question details

7. Consider a MIPS machine with a 5-stage pipeline with a cycle time of 10ns. Assume that you are executing a program where a fraction fof all instructions immediately follow a load upon which they are dependent. Also, there is no other data hazard or control hazard. (A) With forwarding enabled, what is the total execution time for N instructions (in terms of )? (400) (B) Consider a scenario where the MEM stage, along with its pipeline registers, needs 12ns. There are now two options: add another MEM stage so that there are MEMI and MEM2 stages or increase the cycle time to 12ns so that the MEM stage fits within the new cycle time and the number of pipeline stages remain unaffected. For a program mix with the above characteristics when is the first option better than the second. Your answer should be based on the value of f (You may ignore the first few cycles to fill the pipeline.) (4%) (C) Embedded processors have two different memory regions - a faster scratchpad memory and a slower normal memory. Assume that in the 6-stage machine (with MEM1 and MEM2 stages), there is a region of memory that is faster and for which the correct value is obtained at the end of the MEM1 stage itself while the rest of the memory needs both MEM1 and MEM2 stages. For the sake of simplicity, assume that there are two load instructions Iw fast and Iw.slow that indicate which memory region is accessed. If 40% of the fraction/ mentioned above get their value from the fast memory, how does the answer to the previous question change? (496)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution