GATE 2025 CS (CS2) – Question 61
An application executes $6.4 \times 10^8$ number of instructions in 6.3 seconds. There are four types of instructions, the details of which are given in the table. The duration of a clock cycle in nanoseconds is _________. (rounded off to one decimal place)
| Instruction type | Clock cycles required per instruction (CPI) | Number of instructions executed |
|---|---|---|
| Branch | 2 | $2.25 \times 10^8$ |
| Load | 5 | $1.20 \times 10^8$ |
| Store | 4 | $1.65 \times 10^8$ |
| Arithmetic | 3 | $1.30 \times 10^8$ |
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: 3
Explanation
Total cycles = (2×2.25 + 5×1.20 + 4×1.65 + 3×1.30) × 10^8 = 21 × 10^8. Cycle time = 6.3 s / 2.1×10^9 = 3.0 ns.