Skip to main content

GATE CSE 2025CO & Architecture › Machine Instructions & Addressing ModesVerified

GATE CSE 2025 PYQ: An application executes 6.4 × 1 0 8 6.4 \times 10^{8} 6.4 × 1 0 8 number of instructions in 6.3 6.3 6.3…

An application executes 6.4×1086.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 perinstruction (CPI)Number of instructions executedBranch22.25×108Load51.20×108Store41.65×108Arithmetic31.30×108\begin{array}{|c|c|c|} \hline \text{Instruction type} & \text{Clock cycles required per} \\& \text{instruction (CPI)} & \text{Number of instructions executed} \\ \hline \text{Branch} & \text{2} & 2.25 × 10^8 \\ \hline \text{Load} & \text{5} & 1.20 \times 10^8 \\ \hline \text{Store} & \text{4} & 1.65 \times 10^{8} \\ \hline \text{Arithmetic} & \text{3} & 1.30 \times 10^8 \\ \hline \end{array}

    Answer

    3.0 ns

    Approach

    Calculate the total number of clock cycles from the given CPI and instruction counts, then use execution time = total cycles × clock cycle time to solve for the clock cycle duration. Finally convert seconds to nanoseconds and round to one decimal place.

    The total number of cycles is 2.1 × $10^9$. Dividing the total execution time 6.3 s by this gives 3 × $10^-9 s$ per cycle, i.e. 3 ns, which rounds to 3.0 ns.

    Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.