40 likes | 186 Views
CSCE 212 Quiz 9a – 4/1/11. For the following questions, assume the clock cycle times given above and the following set of instructions: lw $5, -16($5) sw $5, -16($5) add $5, $5, $5 What is the total execution time of this instruction sequence without forwarding and with full forwarding?
E N D
CSCE 212 Quiz 9a – 4/1/11 For the following questions, assume the clock cycle times given above and the following set of instructions: lw $5, -16($5) sw $5, -16($5) add $5, $5, $5 • What is the total execution time of this instruction sequence without forwarding and with full forwarding? • What is the speed-up achieved by adding full forwarding to a pipeline that had no forwarding? *ALU instruction can forward a value to EX stage of next instruction.
CSCE 212 Quiz 9a Answers First determine nops and total clock cycles. WithoutWith lw $5, -16($5) lw $5, -16($5) nop nop nop sw $5, -16($5) sw $5, -16($5) add $5, $5, $5 add $5, $5, $5 (7 + 2 clock cycles) (7 + 1 clock cycles)
CSCE 212 Quiz 9a Answers • What is the total execution time of this instruction sequence without forwarding and with full forwarding? Without(7 + 2) x 200ps = 1800ps With (7 + 1) x 250ps = 2000ps
CSCE 212 Quiz 9a Answers • What is the speed-up achieved by adding full forwarding to a pipeline that had no forwarding? 1800/2000 = 0.90 (actually a slowdown)