GATE CS 2026 Set 1 | Question 60
Computer Organization & Architecture › Pipelining · NAT · 2 marks · Answer: 95
- Question 60Computer Organization & Architecturenat2 marksThe 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 M (the number of instructions of that type in a sequence of 100 instructions for a program P), are given in the table below. The duration of the pipeline clock cycle is 1 nanosecond. Assume that the latch time for the interstage buffers in the pipeline is negligible.
When program P is executed, the number of clock cycles for which the pipeline is stalled due to structural hazards in the EX stage is ______. (answer in integer)Instruction | t_(EX) in nanoseconds | M -----------------------+-----------------------+--- LOAD | 1.8 | 15 IMUL | 1.5 | 10 IDIV | 2.5 | 5 FADD | 1.7 | 10 FSUB | 1.7 | 5 FMUL | 2.8 | 15 FDIV | 3.2 | 5 All other instructions | Less than 1.0 | 35Answer: 95
Solution
Answer: 95 An instruction occupies EX for cycles, so it stalls the instructions behind it for cycles.Type | t_(EX) | EX cycles | Stalls each | M | Total -------+--------+-----------+-------------+-----+------ LOAD | 1.8 | 2 | 1 | 15 | 15 IMUL | 1.5 | 2 | 1 | 10 | 10 IDIV | 2.5 | 3 | 2 | 5 | 10 FADD | 1.7 | 2 | 1 | 10 | 10 FSUB | 1.7 | 2 | 1 | 5 | 5 FMUL | 2.8 | 3 | 2 | 15 | 30 FDIV | 3.2 | 4 | 3 | 5 | 15 Others | < 1 | 1 | 0 | 35 | 0 | | | | Sum | 95
More GATE PYQ on Pipelining
All GATE CS Computer Organization & Architecture PYQ →Attempt GATE CS 2026 Set 1 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →