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 46–50 of 53

Q46GATE 20051 markMCQ−0.33 if wrong
A 5 stage pipelined CPU has the following sequence of stages:

IF - Instruction fetch from instruction memory,
RD - Instruction decode and register read,
EX - Execute: ALU operation for data and address computation,
MA - Data memory access - for write access, the register read at RD stage is used,
WB - Register write back. 
Consider the following sequence of instructions:
I1 : L R0, loc1;        R0 <= M[loc1]
I2 : A R0, R0;           R0 <= R0 + R0
I3 : S R2, R0;           R2 <= R2 - R0
 
Let each stage take one clock cycle. What is the number of clock cycles taken to complete the above sequence of instructions starting from the fetch of I1 ?

Q47GATE 20041 markMCQ−0.33 if wrong
In an enhancement of a design of a CPU, the speed of a floating point unit has been increased by 20% and the speed of a fixed point unit has been increased by 10%. What is the overall speedup achieved if the ratio of the number of floating point operations to the number of fixed point operations is 2:3 and the floating point operation used to take twice the time taken by the fixed point operation in the original design?

Q48GATE 20041 markMCQ−0.33 if wrong
Consider a pipeline processor with 4 stages S1 to S4. We want to execute the following loop:
 for (i = 1; i < = 1000; i++) 
    {I1, I2, I3, I4} 
where the time taken (in ns) by instructions I1 to I4 for stages S1 to S4 are given below:
S1S2S3S4 I11212I22121I31121I42121\begin{array}{|c|c|c|c|c|} \hline & \textbf {$S _1$} &\textbf {$S _2$} & \textbf {$S _3$} & \textbf{$S _4$ } \\\hline \textbf{I1}& \text{$1$} & \text{$2$} & \text{$1$} & \text{$2$} \\\hline \textbf{I2} & \text{$2$} & \text{$1$} & \text{$2$} & \text{$1$}\\\hline \textbf{I3}& \text{$1$} & \text{$1$} & \text{$2$} & \text{$1$} \\\hline \textbf{I4} & \text{$2$} & \text{$1$} & \text{$2$} & \text{$1$} \\\hline \end{array}
The output of I1 for i = 2 will be available after

Q49GATE 20041 markMCQ−0.33 if wrong
A 4-stage pipeline has the stage delays as 150, 120, 160 and 140 nanoseconds respectively. Registers that are used between the stages have a delay of 5 nanoseconds each. Assuming constant clocking rate, the total time taken to process 1000 data items on this pipeline will be

Q50GATE 20041 markMCQ−0.33 if wrong
Consider the following program segment for a hypothetical CPU having three user registers R1, R2 and R3.
Instruction 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
Let the clock cycles required for various operations be as follows:

Register to/from memory transfer : 3 clock cycles
ADD with both operands in register : 1 clock cycle
Instruction fetch and decode : 2 clock cycles per word

The total number of clock cycles required to execute the program is

Keep practising

Topics in Computer Organization and Architecture

All CS topics ›