Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
IF
IF
ID
ID
RD
RD
ALU
ALU
MEM
MEM
WB
WB
2. Consider the pipeline discussed in the previous problem. A new stage is added in between RD and ALU which adds an additional addressing mode, allowing the second ALU source operand to be obtained directly from memory. Hence, the second source operand can come from the register file (in stage RD) or from memory (in the newly added stage). Draw the new pipeline diagram. For the following instruction sequence, determine if a hazard exists. If a hazard exists, show the critical forwarding path and determine the number of cycles by which the penalty is reduced with forwarding. Does the addition of the new stage have any impact on the external fragmentation? If so, how?
ADD SW SUB LW r5, r3, r6, r1, r4, r3 0(r2) r4, 0(r2) 0(r2)
3. Equation 2.4 in the textbook describes the performance enhancement of a pipelined processor. Why is this equation an oversimplification? Is the actual performance higher or lower? Why? 4. Shown on the next page is a nonpipelined microprocessor. Design a pipelined version of the processor which minimizes internal fragmentation and utilizes five stages. Assume pipeline registers have a setup time of 0.5 ns, and there is a 1 ns propagation delay through the register (from the triggering clock event to the output). Compute the latency of the pipelined and nonpipelined instructions, the cycle time, internal fragmentation, and potential speedup over the nonpipelined version, and the internal fragmentation. Is the external fragmentation minimized? Justify your answer.
10 5
Register File (4 ns) Read Register 1 Read Register 2 Operand 1 Write Register Write Data Operand 2 MUX (1 ns)
32 32
32
ALU (4 ns)
32
MUX (1 ns)