Pipeline Processor: GATE CS Previous Year Questions

Pipeline Processor · Computer Organization and Architecture

53 questions · asked in 25 of 27 years (2000–2026)

MCQ 29 · MSQ 2 · NAT 221-mark 23 · 2-mark 30

2000Questions per year2026

Questions 31–35 of 53

Q31GATE 20102 marksMCQ−0.67 if wrong
A 5-stage pipelined processor has Instruction Fetch (IF), Instruction Decode (ID), Operand Fetch (OF), Perform Operation (PO) and Write Operand (WO) stages. The IF, ID, OF and WO stages take 1 clock cycle each for any instruction. The PO stage takes 1 clock cycle for ADD and SUB instructions, 3 clock cycles for MUL instruction, and 6 clock cycles for DIV instruction respectively. Operand forwarding is used in the pipeline. What is the number of clock cycles needed to execute the following sequence of instructions?
Instruction Meaning of instruction I0 : MUL R2,R0,R1 R2 ← R0 * R1 I1 : DIV R5,R3,R4 R5 ← R3 / R4 I2 : ADD R2,R5,R2 R2 ← R5 + R2 I3 : SUB R5,R2,R6 R5 ← R2 − R6

Q32GATE 20092 marksMCQ−0.67 if wrong
Consider a 4 stage pipeline processor. The number of cycles needed by the four instructions I1, I2, I3, I4 in stages S1, S2, S3, S4 is shown below:
S1 S2 S3 S4 I1 2 1 1 1 I2 1 3 2 2 I3 2 1 1 3 I4 1 2 2 2
What is the number of cycles needed to execute the following loop?
For (i=1 to 2) {I1; I2; I3; I4;}

Q33GATE 20082 marksMCQ−0.67 if wrong
A non pipelined single cycle processor operating at 100 MHz is converted into a synchronous pipelined processor with five stages requiring 2.5 nsec, 1.5 nsec, 2 nsec, 1.5 nsec and 2.5 nsec, respectively. The delay of the latches is 0.5 nsec. The speedup of the pipeline processor for a large number of instructions is:

Q34GATE 20082 marksMCQ−0.67 if wrong
Delayed branching can help in the handling of control hazards

The following code is to run on a pipelined processor with one branch delay slot:
I1: ADD R2 ←\leftarrow R7 + R8
I2 : SUB R4 ←\leftarrowR5 - R6
I3: ADD R1 ←\leftarrow R2 + R3
I4 : STORE Memory [R4] ←\leftarrow R1
BRANCH to Label if R1==0

Which of the instructions I1, I2, I3 or I4 can legitimately occupy the delay slot without any other program modification?

Q35GATE 20082 marksMCQ−0.67 if wrong
Delayed branching can help in the handling of control hazards

For all delayed conditional branch instructions, irrespective of whether the condition evaluates to true or false

Keep practising

Topics in Computer Organization and Architecture

All CS topics ›