The GATE Grind

GATE 2025 CS (CS2) – Question 61

Computer Organization and Architecture · ALU and Control Unit Design · 2 marks · Numerical answer

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 typeClock cycles required per instruction (CPI)Number of instructions executed
Branch2$2.25 \times 10^8$
Load5$1.20 \times 10^8$
Store4$1.65 \times 10^8$
Arithmetic3$1.30 \times 10^8$

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 3

Explanation

Total cycles for the program $=\sum(\text{CPI}\times\text{count})$:
$$2(2.25)+5(1.20)+4(1.65)+3(1.30)=4.5+6.0+6.6+3.9=21.0\ (\times10^8\text{ cycles}).$$

So the program takes $2.1\times10^9$ cycles. Execution time is $6.3$ s, hence
$$\text{cycle time}=\frac{6.3\text{ s}}{2.1\times10^9}=3.0\times10^{-9}\text{ s}=\mathbf{3.0}\text{ ns}.$$

More ALU and Control Unit Design questions

All ALU and Control Unit Design questions →