GATE / CS ARCHIVE

SUBJECT COLLECTION

Computer Organization & Architecture · Processor Performance

5 questions, newest first

GATE CSE has asked 5 questions on Processor Performance (Computer Organization & Architecture) from 1992 to 2025, in 5 of the 46 papers; the most recent is in GATE CSE 2025 Set 2. In the last five years it carried 0.5 marks per 100-mark paper on average, against 0.2 since 2003. Since 2014 the questions have been 3 NAT.

Browse topics
2 marks · NAT
Report issue

Processor Performance

Question 61, GATE 2025: An application takes 6.3 seconds to execute 6.4×10^8 instructions. Instruction classes are: branch CPI 2, count 2.25×10^8; load CPI 5, count 1.20×10^8; store CPI 4, count 1.65×10^8; arithmetic CPI 3, count 1.30×10^8. Find the clock-cycle duration in ns to one decimal place.
Tap to enlarge
Answer & solution

Official answer: 3.0

Multiply each class count by its cycles per instruction before adding. Branches use 2·2.25×108=4.5×108 cycles; loads use 5·1.20×108=6.0×108; stores use 4·1.65×108=6.6×108; arithmetic uses 3·1.30×108=3.9×108. Total cycles are (4.5+6.0+6.6+3.9)×108=2.1×109.

CPU time equals total cycles times cycle duration, so T_cycle=6.3/(2.1×109)=3×10−9 seconds=3.0 ns. Equivalently, the instruction-count-weighted average CPI is 2.1×109/(6.4×108)=3.28125, leading to the same result. A simple arithmetic average of the four CPIs would be incorrect because the instruction counts differ. The corresponding clock frequency is approximately 333.33 MHz, a useful unit check. Answer: 3.0.

Original paper, page 45 · Answer key

2 marks · NAT
Report issue

Balance parallel speedup against per-core overhead

Processor Performance

Question 55, GATE 2024: A program takes 100 ns on one 2 GHz core. Work accounting for 90% of that time parallelizes fully and is shared equally among cores. Every additional core adds 10 ns overhead. How many cores minimize total execution time?
Tap to enlarge
Answer & solution

Official answer: 3

Approach: Write a total-time function containing serial work, divided parallel work, and overhead for cores beyond the first.
1. The serial part takes 10 ns regardless of core count. With k≥1 cores, the parallel part takes 90/k ns.
2. There are k−1 additional cores, so overhead is 10(k−1) ns. Thus T(k)=10+90/k+10(k−1)=90/k+10k ns.
3. Treating k temporarily as continuous, T'(k)=−90/k²+10. The stationary point is k²=9, so k=3. Since T''(k)=180/k³>0, this is the unique continuous minimum.
4. It is also a valid integer choice. Check its neighbors: T(2)=65 ns, T(3)=60 ns, T(4)=62.5 ns. The derivative is negative before 3 and positive afterward, excluding more distant improvements.
Answer: 3 cores. The 2 GHz rate is not needed because the baseline and overhead are already specified in time units. Ignoring overhead would incorrectly suggest that more cores always help.

Original paper, page 33 · Answer key

2 marks · NAT
Report issue

Processor Performance

Question 55, GATE 2014: Processors P₁ and P₂ execute the same instruction set. For the same program and input under identical conditions, P₂ takes 25% less time but has 20% higher CPI than P₁. If P₁ runs at 1 GHz, what is P₂’s clock frequency in GHz?
Tap to enlarge
Answer & solution

Official answer: 1.6

1. Method and setup. CPU time is instruction count multiplied by cycles per instruction and divided by cycles per second. Convert “25% less time” to a time ratio of 0.75, not a frequency multiplier of 1.25. Under the intended equal-instruction-count assumption, that count cancels when taking the ratio of execution times.

2. Work through the result and its assumptions. For the same instruction count, time=IC·CPI/frequency. Given T2/T1=0.75 and CPI2/CPI1=1.2, 0.75=1.2(f1/f2). Therefore f2=1.6f1=1.6GHz. This assumes the same executed instruction count for the same program/input, as intended.

Original paper, page 21 · Answer key

2 marks · MCQ
Report issue

Instruction fetch and execution cycles

Processor Performance

Question 64, GATE 2004: A CPU has user registers R1,R2,R3. Program in order (operation; instruction size in words): MOV R1,5000 (R1←Memory[5000];2); MOV R2,(R1) (R2←Memory[R1];1); ADD R2,R3 (R2←R2+R3;1); MOV 6000,R2 (Memory[6000]←R2;2); HALT (machine halts;1). Each register/memory transfer costs 3 cycles, register ADD costs 1 cycle, and instruction fetch/decode costs 2 cycles per word. What is the total execution-cycle count?
Options:
(A) 29
(B) 24
(C) 23
(D) 20
Question 64, GATE 2004: A CPU has user registers R1,R2,R3. Program in order (operation; instruction size in words): MOV R1,5000 (R1←Memory[5000];2); MOV R2,(R1) (R2←Memory[R1];1); ADD R2,R3 (R2←R2+R3;1); MOV 6000,R2 (Memory[6000]←R2;2); HALT (machine halts;1). Each register/memory transfer costs 3 cycles, register ADD costs 1 cycle, and instruction fetch/decode costs 2 cycles per word. What is the total execution-cycle count?
Options:
(A) 29
(B) 24
(C) 23
(D) 20
Question 64, GATE 2004: A CPU has user registers R1,R2,R3. Program in order (operation; instruction size in words): MOV R1,5000 (R1←Memory[5000];2); MOV R2,(R1) (R2←Memory[R1];1); ADD R2,R3 (R2←R2+R3;1); MOV 6000,R2 (Memory[6000]←R2;2); HALT (machine halts;1). Each register/memory transfer costs 3 cycles, register ADD costs 1 cycle, and instruction fetch/decode costs 2 cycles per word. What is the total execution-cycle count?
Options:
(A) 29
(B) 24
(C) 23
(D) 20
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. There are 7 instruction words, so fetch/decode costs 7×2=14 cycles. The first MOV loads a memory word, the second MOV uses register-indirect addressing to load one memory word, and the last MOV stores one memory word:3 transfers×3=9 cycles.

2. ADD has register operands and costs 1. No extra HALT execution cost is specified.

3. Total14+9+1=24 cycles. Register-indirect addressing does not itself require another memory load because R1 already contains the address.

4. Teaching check: The instruction sizes sum to seven words, so fetch/decode alone costs fourteen cycles. Indirect MOV R2,(R1) uses R1’s value as an address; it does not first fetch that address from memory. This leaves exactly three data-memory transfers and one ADD.

Original paper, page 9

Report issue

A minimum processor clock rate

Processor Performance

Question 1(iii), GATE 1992: Why do some microprocessors specify a minimum as well as maximum clock frequency?
Question 1(iii), GATE 1992: Why do some microprocessors specify a minimum as well as maximum clock frequency?
Tap to enlarge
Answer & solution

Answer: Dynamic internal storage must be refreshed before charge leaks away (no official key was published)

Some processors use dynamic nodes or storage circuits that retain information as charge rather than static feedback. Clocked transitions periodically refresh or transfer that charge. If the clock is slowed excessively or stopped, leakage can corrupt stored state, imposing a minimum rate. This is an implementation property, not a universal law for every processor; a fully static design can often stop its clock while preserving state. The maximum clock rate instead arises from propagation and setup/hold timing constraints.

Original paper, page 1