Question

In: Computer Science

How long will each iteration of the loop take in steady state (i.e., ignoring startup latency)...

How long will each iteration of the loop take in steady state (i.e., ignoring startup latency) on our  5 stage pipeline? Assume the use of data forwarding and hardware interlocking (bubbles and stalls) and that the branch is not predicted (i.e., stalls/bubbles are required for a branch).

     irmovl   $5, %edx

     irmovl   $80, %ebx

Loop:

     mrmovl   array_base(%ebx), %eax

     addl     %edx, %eax

     rmmovl   %eax, array_base(%ebx)

     addl     $-4, %ebx

     jne Loop   

If the branch delay slots were exposed to the compiler/user, could you move any instructions into those delay slots? Remember that overall program dependences must be obeyed.

- True

- False

Solutions

Expert Solution

The main goal of a pipelined architecture is to first and foremost complete the instruction for every clock cycle . To do this we should maimtain the same rate, the pipeline should contain all the instructions at all times.

The branch delay slot creates side effect of pipelined architectures, this side effect is due to the branch hazard, i.e. if the instruction that is imposed on the pipeline is completed then only the branch gets resolved.

The ideal number of branch delay slots in a particular pipeline implementation is dictated by the number of pipeline stages, the presence of register forwarding, at what stage of the pipeline the branch conditions are computed, whether or not a branch target buffer is used and many other factors affect the delay slots.

Software compatibility requirements dictate that an architecture may not change the number of delay slots from one generation to the next


Related Solutions

1. A metal loop moves at constant velocity toward a long wire carrying a steady current...
1. A metal loop moves at constant velocity toward a long wire carrying a steady current I = 2.0 A. The current induced in the loop is: A. Directed clockwise. B. directed counterclockwise. C. Zero. D. Cannot tell, more information is needed. 2. Loop A in the figure shown is part of a simple circuit with switch open.  Loop B is another one that lies below Loop A. to A When the switch is closed, there is an induced current generated...
What are the phases of fracture healing? How long does each stage take for a long...
What are the phases of fracture healing? How long does each stage take for a long bone vs a distal/small bone? How will this knowledge come into action when working with orthopedic patients?
how do I find the steady-state equation???
how do I find the steady-state equation???
What is the steady state and how it is determined in AS-AD model?
What is the steady state and how it is determined in AS-AD model?
According to the Solow model of growth, growth, in the long run (the steady-state), determine only...
According to the Solow model of growth, growth, in the long run (the steady-state), determine only by growth in technology. However, in the Solow model, there is nothing about how technology determined. 1. What factors do you think might affect technology in the long run? 2. Justify your answer and explain the implications to the growth in the long run.
How calculate the steady-state level of income per capita?
How calculate the steady-state level of income per capita?
Compute the number of passwords of each type below along with how long it would take...
Compute the number of passwords of each type below along with how long it would take to test all possible such passwords if it takes 1 nanosecond to test a password. Report the times in the most convenient human understandable form. In all of these, unless noted otherwise, order matters and repetition of characters is allowed. Passwords of length 8 with any combination of lowercase letters, uppercase letters, and numbers. Passwords that start with a capital letter, have 10 lowercase...
Prove each of the following statements about the steady state of the Solow model with population...
Prove each of the following statements about the steady state of the Solow model with population growth and technological progress. a. The capital–output ratio is constant. b. Capital and labor each earn a constant share of an economy’s income. [Hint: Recall the definition MPK= f(k + 1) - f(k).] c. Total capital income and total labor income both grow at the rate of population growth plus the rate of technological progress, n + g. d. The real rental price of...
Macroeconomics Problem 3 Prove each of the following statements about the steady state of the Solow...
Macroeconomics Problem 3 Prove each of the following statements about the steady state of the Solow model with population growth and technological progress. a. The capital– output ratio is constant. b. Capital and labor each earn a constant share of an economy’s income. [Hint: Recall the definition MPK= f( k + 1) - f(k).] c. Total capital income and total labor income both grow at the rate of population growth plus the rate of technological progress, n + g. d....
How decrease in labor will influence on steady state level of capital and output in Solow...
How decrease in labor will influence on steady state level of capital and output in Solow model.Show on diagram
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT