MCS-284 Chapter 6 Homework (Fall 2001)
When turning in a homework problem, if it is one from the book, you
should indicate the exercise number. If it is not from the book, you
should indicate the number I give with an x in it, as in 6.x1
below. These will be the reference numbers I use in reporting back
your standing on the homework.
-
Do exercise 6.9 from pages 530-531.
-
Problem 6.x1:
Suppose the MIPS instruction set architecture were changed to require
that the 16-bit displacement in load and store instructions always be
zero. (Any program that used non-zero displacements would have to be
rewritten.)
-
How could the pipeline structure (as shown for example in figure 6.12,
page 452) be reconfigured to take advantage of this restriction?
(Don't feel limited to minor change; a major overhaul may be possible.)
-
What impact would your change have on the situation where a load is
followed by a use of the loaded value, as in figure 6.9, page 447?
-
If programs were rewritten to always have displacements of 0 and your
modified pipeline were used, which two of the three factors that
combine to determine performance (cycle time, CPI, and number of
instructions) would be most likely to change, relative to running the
un-rewritten program on the book's pipeline? Briefly explain the
cause for each of the two changes and indicate the direction in which
each of the two would change.
Instructor: Max Hailperin