written 3.1 years ago by
teamques10
★ 69k
|
•
modified 3.1 years ago
|
Given:
Total number of instructions to be executed = n = 10 instructions
Architecture consisting of Numbers of stages = k = 4 stages
Clock Cycles = t = 1 nsec
i. Time required to execute the program on Non-pipeline and Pipeline processor.
Pipelined Execution Time
= Time taken to execute first instruction + Time taken to execute remaining instructions
= 1 x k clock cycles + (n -1) x 1 clock cycle
= (k + n – 1) clock cycles
= (4 + 10 - 1) * t
= (4 + 9) * 1
= 13 nsec
Non-pipelined Execution Time
= Total number of instructions x Time taken to execute one instruction
= n x k clock cycles
= (n * k) * t
= (10 * 4) * 1
= 40 nsec
ii. Speedup
Speedup
= Non-pipelined Execution Time / Pipelined Execution Time
= 40/13 = 3.07 times