GATE CSE Instruction Pipelining PYQs
Instruction pipelining and pipeline hazards are tested extensively with a heavy numerical skew (primarily 2-mark NATs). GATE focuses on evaluating effective CPI… Read the guide
- Questions
- 25
- Asked
- since 2011
- Total marks
- 44
- Marks / paper
- 1.8
25 GATE CSE Instruction Pipelining PYQs with solutions, from Computer Organization and Architecture. Browse all GATE CSE PYQs.
Questions
Every official paper that asked this topic, newest first.
- GATE CSE 2026 Set 1 · Q16Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?MCQ1 markEasySolve
- GATE CSE 2026 Set 1 · Q60The EX stage of a pipelined processor performs the memory read operations for LOAD instructions, and the operations for the arithmetic and logic instructions. Let denote the time taken by the EX stage to perform the operation for an instruction. For each instruction type, the values of and …NAT2 marksMediumDiagramSolve
- GATE CSE 2026 Set 2 · Q57A non-pipelined instruction execution unit that operates at 1.6 GHz clock takes an average of 5 clock cycles to complete the execution of an instruction. To improve the performance, the system was pipelined with a goal of achieving an average throughput of one instruction per clock cycle. However, it could operate…NAT2 marksMediumSolve
- GATE CSE 2025 Set 2 · Q56A 5-stage instruction pipeline has stage delays of 180, 250, 150, 170, and 250, respectively, in nanoseconds. The delay of an inter-stage latch is 10 nanoseconds. Assume that there are no pipeline stalls due to branches and other hazards. The time taken to process 1000 instructions in microseconds is _________ .…NAT2 marksMediumSolve
- GATE CSE 2024 Set 1 · Q30Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB) stages. Which of the following statements about forwarding is/are CORRECT?MSQ1 markMediumSolve
- GATE CSE 2024 Set 2 · Q31An instruction format has the following structure:
Instruction Number: Opcode destination reg, source reg-1, source reg-2
Consider the following sequence of instructions to be executed in a pipelined processor:
I1: DIV R3, R1, R2I2: SUB R5, R3, R4I3: ADD R3, R5, R6I4: MUL R7, R3, R8…MSQ1 markEasySolve - GATE CSE 2024 Set 2 · Q58A non-pipelined instruction execution unit operating at 2 GHz takes an average of 6 cycles to execute an instruction of a program P. The unit is then redesigned to operate on a 5-stage pipeline at 2 GHz. Assume that the ideal throughput of the pipelined unit is 1 instruction per cycle. In the execution of program P,…NAT2 marksMediumSolve
- GATE CSE 2023 · Q33Consider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and 14 ns, for the first, second, and the third stages, respectively. Assume that there is no other delay and the processor does not suffer from any pipeline hazards. Also assume that one instruction is fetched every cycle. The total…NAT1 markEasySolve
- GATE CSE 2022 · Q61A processor operating at 2 GHz has a standard 5-stage RISC instruction pipeline having a base CPI (cycles per instruction) of one without any pipeline hazards. For a given program P that has 30% branch instructions, control hazards incur 2 cycles stall for every branch. A new version of the processor …NAT2 marksMediumSolve
- GATE CSE 2021 Set 1 · Q53A five-stage pipeline has stage delays of 150, 120, 150, 160 and 140 nanoseconds. The registers that are used between the pipeline stages have a delay of 5 nanoseconds each. The total time to execute 100 independent instructions on this pipeline, assuming there are no pipeline stalls, is _____ nanoseconds.NAT2 marksEasySolve
- GATE CSE 2021 Set 2 · Q53Consider a pipelined processor with 5 stages, Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Write Back (WB). Each stage of the pipeline, except the EX stage, takes one cycle. Assume that the ID stage merely decodes the instruction and the register read is performed in the EX…NAT2 marksMediumSolve
- GATE CSE 2020 · Q43Consider a non-pipelined processor operating at 2.5 GHz. It takes 5 clock cycles to complete an instruction. You are going to make a 5-stage pipeline out of this processor. Overheads associated with pipelining force you to operate the pipelined processor at 2 GHz. In a given program, assume that 30% are memory…NAT2 marksMediumSolve
- GATE CSE 2017 Set 1 · Q50Instruction execution in a processor is divided into 5 stages, Instruction Fetch (IF), Instruction Decode (ID), Operand Fetch (OF), Execute (EX), and Write Back (WB). These stages take 5, 4, 20, 10, and 3 nanoseconds (ns) respectively. A pipelined implementation of the processor requires buffering between each pair of…NAT2 marksMediumSolve
- GATE CSE 2016 Set 1 · Q32The stage delays in a 4-stage pipeline are 800, 500, 400 and 300 picoseconds. The first stage (with delay 800 picoseconds) is replaced with a functionally equivalent design involving two stages with respective delays 600 and 350 picoseconds. The throughput increase of the pipeline is _________ percent.NAT2 marksMediumSolve
- GATE CSE 2016 Set 2 · Q30Suppose the functions and can be computed in 5 and 3 nanoseconds by functional units and , respectively. Given two instances of and two instances of , it is required to implement the computation for . Ignoring all other delays, the minimum time…NAT2 marksMediumSolve
- GATE CSE 2016 Set 2 · Q33Consider a 3 GHz (gigahertz) processor with a three-stage pipeline and stage latencies , , and such that . If the longest pipeline stage is split into two pipeline stages of equal latency, the new frequency is _________ GHz, ignoring delays in the pipeline…NAT2 marksMediumSolve
- GATE CSE 2015 Set 1 · Q38Consider a non-pipelined processor with a clock rate of 2.5 gigahertz and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to 2 gigahertz. Assume that there are no stalls in the pipeline.…NAT2 marksMediumSolve
- GATE CSE 2015 Set 3 · Q47Consider the following code sequence having five instructions to . Each of these instructions has the following format. OP Ri, Rj, Rk where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri. : ADD R1, R2, R3 : MUL R7, R1, R3 :…MCQ2 marksMediumSolve
- GATE CSE 2015 Set 3 · Q51Consider the following reservation table for a pipeline having three stages and . The minimum average latency (MAL) is _______.NAT2 marksMediumDiagramSolve
- GATE CSE 2014 Set 1 · Q43Consider a 6-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is executing on this 6-stage pipeline, the speedup achieved with respect to non-pipelined execution if 25% of the instructions incur 2 pipeline stall cycles…NAT2 marksMediumSolve
- GATE CSE 2014 Set 3 · Q9Consider the following processors (ns stands for nanoseconds). Assume that the pipeline registers have zero latency. P1: Four-stage pipeline with stage latencies 1 ns, 2 ns, 2 ns, 1 ns. P2: Four-stage pipeline with stage latencies 1 ns, 1.5 ns, 1.5 ns, 1.5 ns. P3: Five-stage pipeline with stage latencies 0.5 ns, 1…MCQ1 markEasySolve
- GATE CSE 2014 Set 3 · Q43An instruction pipeline has five stages, namely, instruction fetch (IF), instruction decode and register fetch (ID/RF), instruction execution (EX), memory access (MEM), and register writeback (WB) with stage latencies 1 ns, 2.2 ns, 2 ns, 1 ns, and 0.75 ns, respectively (ns stands for nanoseconds). To gain in terms of…NAT2 marksHardSolve
- GATE CSE 2013 · Q45Consider an instruction pipeline with five stages without any branch prediction: Fetch Instruction (FI), Decode Instruction (DI), Fetch Operand (FO), Execute Instruction (EI) and Write Operand (WO). The stage delays for FI, DI, FO, EI and WO are 5 ns, 7 ns, 10 ns, 8 ns and 6 ns, respectively. There are intermediate…MCQ2 marksHardSolve
- GATE CSE 2012 · Q20Register renaming is done in pipelined processorsMCQ1 markEasySolve
- GATE CSE 2011 · Q41Consider an instruction pipeline with four stages (S1, S2, S3 and S4) each with combinational circuit only. The pipeline registers are required between each stage and at the end of the last stage. Delays for the stages and for the pipeline registers are as given in the figure. What is the approximate speed up of the…MCQ2 marksMediumDiagramSolve
What GATE tests in Instruction Pipelining
Concepts, patterns, formulas and traps distilled from past papers.
Instruction pipelining and pipeline hazards are tested extensively with a heavy numerical skew (primarily 2-mark NATs). GATE focuses on evaluating effective CPI and speedup under realistic hazard scenarios (data, control, and structural), calculating clock cycle time from bottleneck stage delays and latch latencies, and analyzing cycle-by-cycle instruction progression with or without operand forwarding. Conceptual items frequently test dependency classifications (RAW, WAR, WAW) and the mechanics of operand bypassing.
Core concepts
- 5-Stage RISC Pipeline (IF, ID/RF, EX, MEM, WB)
- Pipeline Clock Period & Bottleneck Stages
- Data Hazards (RAW true dependence, WAR anti-dependence, WAW output dependence)
- Operand Forwarding / Bypassing Paths (EX/MEM to EX, MEM/WB to EX)
- Load-Use Delay Stalls
- Control Hazards and Branch Penalty (Flushing vs Branch Target Buffers / BPU)
- Structural Hazards from Multi-cycle Functional Units
- Register Renaming to eliminate WAR and WAW Hazards
- Reservation Tables, Collision Vectors, and MAL in Non-linear Pipelines
- Clock cycle determination via bottleneck stage
- Pipeline latency vs throughput
- Cycle counting formula (k + n - 1) for n instructions across k stages
- Synchronous pipelined execution without hazards
- Clock cycle time determination by the bottleneck stage delay
- Pipeline register / inter-stage buffer overhead
- Pipeline stage decomposition / sub-pipelining
- Finite instruction sequence execution time (k + n - 1)
- Relative speedup calculation between pipeline architectures
Recurring question patterns
Pipelined vs Non-Pipelined Speedup with Hazard Overheads
CommonNAT2 marks2026, 2024, 2022, 2020Given instruction mix percentages (ALU, Branch, Memory) and their respective stall penalties or miss rates, calculate effective CPI, instruction execution times, and overall speedup over an unpipelined or baseline processor.
Clock Period, Frequency Optimization, and Stage Splitting
CommonNAT2 marks2025, 2021, 2016, 2014Determine the clock period from maximum stage latency plus buffer/register overhead, evaluate the effect of splitting bottleneck stages into sub-stages, or calculate throughput changes and execution time for N instructions.
Cycle-by-Cycle Pipeline Trace and Operand Forwarding
CommonNAT2 marks2026, 2021, 2013Given an explicit sequence of instructions with specific stage latencies or data dependencies, calculate total execution cycles with and without operand forwarding or when resolving branches in specific stages.
Data Dependency Classification and Forwarding Principles
OccasionalMSQ1 marks2026, 2024, 2015, 2012Analyze an assembly snippet or pipeline architecture to identify RAW (true), WAR (anti), and WAW (output) dependencies, or evaluate true/false conceptual statements regarding forwarding datapaths and register renaming.
Reservation Table and Minimum Average Latency (MAL)
RareNAT2 marks2015Given a stage-time reservation table for a non-linear or multi-function pipeline, identify forbidden latencies, construct the collision vector and state transition diagram, and determine the Minimum Average Latency (MAL).
Ideal Synchronous Pipeline Execution Time
CommonNAT1 marks2023A -stage pipeline is specified with individual stage delays and optional buffer overhead. The problem asks for the total time required to execute independent instructions assuming no stalls, branches, or data dependencies.
Pipeline Stage Splitting and Speedup Comparison
CommonNAT2 marks2017Given a set of pipeline stage latencies and an intermediate register/buffer delay, evaluate the execution time for a finite number of instructions across a baseline pipeline and an improved pipeline where the bottleneck stage is split into multiple sub-stages, then compute the resulting speedup.
Formulas GATE uses
Pipelined Clock Period
Determining processor clock period from stage delays and latch/buffer delays.
Total Execution Time (Ideal Pipeline)
Computing total time to execute independent instructions on a -stage pipeline without stalls.
Effective CPI with Pipeline Stalls
Calculating average CPI when instructions encounter data, control, or structural stalls.
Speedup of Pipelined over Non-Pipelined
Comparing throughput/performance between pipelined and non-pipelined processors.
Branch Stall Cycles with Prediction
Computing control hazard stalls when a branch prediction unit (BPU) is present.
Structural Hazard Stall Calculation
Calculating stall cycles per instruction when a functional stage takes multiple clock cycles.
Clock Cycle Period
Used to determine the minimum operating clock period of a synchronous pipeline given individual stage delays and interface latch/buffer delays.
Total Cycles in Ideal Pipeline
Used to find the total clock cycles required to process instructions through a -stage pipeline without hazards or stalls.
Total Execution Time
Used to compute the absolute time (in ns, ps, etc.) to execute a batch of instructions.
Clock Cycle Time with Buffer Delay
Used to find the operating clock period of a synchronous pipeline where each stage has a distinct execution delay and pipeline registers introduce overhead.
Total Execution Time for $n$ Instructions in a $k$-Stage Pipeline
Used to calculate the total time taken to execute independent instructions in a linear -stage pipeline without hazards or stalls.
Speedup Ratio
Used when comparing performance gains of an optimized/split pipeline implementation over a baseline implementation for a fixed task workload.
Examiner traps in Instruction Pipelining
- Forgetting latch/register delay when computing clock period after stage splitting.
- Applying ideal formula (k+n-1) when dependencies or multi-cycle stages introduce stalls.
- Assuming forwarding eliminates all stalls (forgetting the unavoidable 1-cycle stall in load-use data hazards).
- Confusing WAR (anti-dependence) and WAW (output dependence) with RAW (true dependence).
- Miscalculating branch penalty: forgetting that branch outcome resolution at stage M incurs (M - 1) stall cycles for instruction fetch.
- In multi-cycle EX stage stalls, calculating stalls as k instead of (k - 1) per instruction.
- Summing up the individual stage delays for every instruction rather than using the bottleneck stage duration max(ti) as the clock period.
- Off-by-one errors in cycle count (e.g., using k × n or k + n instead of k + n - 1).
- Forgetting to convert time units (e.g., ns to cycles or vice versa).
- Omitting the buffer delay when calculating the pipeline cycle time (tcycle = max(ti) instead of max(ti) + tbuffer).
- Forgetting to update the number of pipeline stages k after splitting a bottleneck stage (e.g., failing to increment k from 5 to 6).
- Using asymptotic speedup (tcycle1 / tcycle2) instead of computing the finite instruction count execution time with (k + n - 1).
- Rounding speedup prematurely during intermediate steps rather than rounding to two decimal places at the final answer.
How questions are asked
- Calculate speedup given instruction mix, branch penalty, and cache miss rates
- Find total execution time in microseconds for N instructions with latch delay
- Determine new clock frequency after splitting the bottleneck stage
- Identify data hazard types (RAW/WAR/WAW) from an assembly code sequence
- Cycle-by-cycle schedule comparison (with vs without operand forwarding)
- Count total structural stall cycles from a tabular breakdown of stage execution times
- Find Minimum Average Latency (MAL) from a reservation table
- Calculate total execution time for n instructions given stage delays in nanoseconds.
- Numerical calculation of speedup between two pipeline variations for a given instruction batch
Paper trends
Shift from simple formula-based speedup calculations toward multi-hazard models combining branch prediction accuracy, cache miss penalties, and structural hazards.
2026, 2022, 2020, 2014, 2011
Transition of qualitative hazard and forwarding questions from single-correct MCQs to multi-correct MSQs requiring deep understanding of datapath multiplexing.
2024, 2015, 2012
Increased focus on non-uniform multi-cycle execution stages causing structural stalls per instruction type.
2026, 2021
Testing baseline pipeline timing as a clean NAT item focusing on bottleneck stage determination and cycle count arithmetic without hazards.
2023
Questions focus on numerical performance evaluation (NAT) with non-ideal stages and explicit inter-stage buffer overheads rather than theoretical or ideal pipeline assumptions.
2017
Difficulty notes
Easy: Single-concept questions such as finding clock period as max stage delay + latch delay, evaluating cycles without stalls, or identifying a RAW dependency. Medium: Speedup calculations with mixed stall sources (cache misses, mispredicted branches, data stalls), stage-splitting frequency revisions, or reservation table MAL analysis. Hard: Detailed cycle-by-cycle pipeline traces involving multi-cycle operations (e.g., ADD vs MUL in EX), conditional branches resolved at arbitrary pipeline stages with custom forwarding logic, or multi-stage pipeline redesign ratios.