Pipeline Hazards questions

Q16

GATE CS 2026 CS-1Instruction PipeliningMCQ1 mark−1/3 if wrong
Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?
Show answer without attempting

Answer: B

Q60

GATE CS 2026 CS-1Instruction PipeliningNAT2 marks
The EX stage of a pipelined processor performs the memory read operations for LOAD instructions, and the operations for the arithmetic and logic instructions. Let tEXt_{EX} denote the time taken by the EX stage to perform the operation for an instruction. For each instruction type, the values of tEXt_{EX} and MM (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)
Question figure
Show answer without attempting

Answer: 95

Q30

GATE CS 2024 CS-1Instruction PipeliningMSQ1 mark
Consider 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?
More than one option can be correct.
Show answer without attempting

Answer: A, B, C

Q31

GATE CS 2024 CS-2Instruction PipeliningMSQ1 mark
An 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, R2
I2: SUB R5, R3, R4
I3: ADD R3, R5, R6
I4: MUL R7, R3, R8

Which of the following statements is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: A

Q49

GATE CS 2015 CS-3Instruction PipeliningMCQ2 marks−2/3 if wrong
Consider the following code sequence having five instructions I1I_1 to I5I_5. 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.

I1I_1: ADD R1, R2, R3
I2I_2: MUL R7, R1, R3
I3I_3: SUB R4, R1, R5
I4I_4: ADD R3, R2, R4
I5I_5: MUL R7, R8, R9

Consider the following three statements.

S1: There is an anti-dependence between instructions I2I_2 and I5I_5
S2: There is an anti-dependence between instructions I2I_2 and I4I_4
S3: Within an instruction pipeline an anti-dependence always creates one or more stalls

Which one of above statements is/are correct?
Show answer without attempting

Answer: B

Q20

GATE CS 2012 CSInstruction PipeliningMCQ1 mark−1/3 if wrong
Register renaming is done in pipelined processors
Show answer without attempting

Answer: C

0/60 correct0 marks

Related topics in Instruction Pipelining