The number of clock cycles required for completion of execution of the sequence of instruction is _____.
View worked solution
Answer: 219
Since there are no data or control hazards, instructions flow through the pipeline sequentially. The stages before and after the Perform Operation () stage are , , (each taking cycle) and (taking cycle).
Because the stage takes at least clock cycle for every instruction, it acts as the bottleneck. Once the first instruction reaches the stage, the stage will run continuously without any idle cycles until all instructions complete their stage.
We can calculate the total clock cycles as follows:
- Cycles before for the first instruction: cycles (, , and )
- Total cycles spent in the stage for all instructions:
- Cycles after for the last instruction: cycle ()
Free practice · Your answers on this page are not saved.
