Solution
Solution:
In a pipelined CPU with 5 stages (Fetch, Decode, Execute, Memory, and Write-back), the execution of instructions is overlapped. Once the pipeline is filled, each new instruction can be completed in just one clock cycle.
Let's break down the process:
1. The first instruction takes 5 clock cycles to complete, as each of the 5 stages (F, D, E, M, W) must be processed sequentially.
2. After the pipeline is filled, every subsequent instruction will be completed in 1 additional clock cycle because the stages work in parallel.
For 10 instructions:
- The first instruction takes 5 cycles.
- The remaining 9 instructions will complete 1 instruction per cycle, so they will take 9 additional cycles.
Thus, the total number of clock cycles required is:
\(5 \text{ (first instruction)} + 9 \text{ (remaining instructions)} = 14 \text{ clock cycles}.\)
Therefore, the total number of clock cycles required to complete the execution of 10 instructions is 14 cycles.