A CPU has a 5-stage pipeline: IF, ID, EX, MEM, WB. If the EX stage takes 2 cycles, what is the total number of cycles to execute 10 instructions?
Q1. A CPU has a 5-stage pipeline: IF, ID, EX, MEM, WB. If the EX stage takes 2 cycles, what is the total number of cycles to execute 10 instructions?
Answer: 14
Explanation: For the first instruction, it takes 5 + 1 (for EX) = 6 cycles.