Instruction Pipelining MCQ Quiz - Objective Question with Answer for Instruction Pipelining - Download Free PDF

Last updated on Apr 11, 2025

Latest Instruction Pipelining MCQ Objective Questions

Instruction Pipelining Question 1:

Consider the following sequence of micro operations :

MBR ← PC

MAR ← X

PC ← Y

MEMORY ← MBR

Which one of the following is possible operation performed by this sequence ?

  1. Instruction Fetch
  2. Operand Fetch 
  3. Conditional Branch 
  4. Initiation of interrupt service

Answer (Detailed Solution Below)

Option 1 : Instruction Fetch

Instruction Pipelining Question 1 Detailed Solution

The correct answer is Instruction Fetch.

key-point-image Key Points

  • Instruction fetch is the process of reading an instruction from memory into the processor.
  • The sequence of micro-operations given corresponds to the steps involved in fetching an instruction from memory:
    • MBR ← PC: The content of the Program Counter (PC) is transferred to the Memory Buffer Register (MBR).
    • MAR ← X: The content of the register X is transferred to the Memory Address Register (MAR).
    • PC ← Y: The content of the register Y is transferred to the Program Counter (PC).
    • MEMORY ← MBR: The content of the MBR is transferred to the memory.
  • This sequence is typical of the steps taken to fetch an instruction from memory, making instruction fetch the correct answer.

additional-information-image Additional Information

  • The Program Counter (PC) holds the address of the next instruction to be fetched.
  • The Memory Address Register (MAR) holds the address of the memory location to be accessed.
  • The Memory Buffer Register (MBR) holds the data to be written to memory or the data read from memory.
  • Fetching an instruction involves reading the instruction from memory into the instruction register.
  • This process is crucial for the CPU to understand which operation to execute next.

Instruction Pipelining Question 2:

Correct the order of instruction cycle:

A. Read the effective address

B. Fetch the information

C. Execute the instruction

D. Decode the instruction

Choose the correct answer from the options given below:

  1. A, B, C, D
  2. B, D, A, C
  3. B, A, D, C
  4. A, B, D, C

Answer (Detailed Solution Below)

Option 2 : B, D, A, C

Instruction Pipelining Question 2 Detailed Solution

- www.amglogisticsinc.net

The correct answer is Option 2: B, D, A, C.

Key Points

  • The instruction cycle is the process by which a computer retrieves, decodes, and executes an instruction.
  • The correct sequence of operations is:
    • Fetch the information (B): The instruction is fetched from memory.
    • Decode the instruction (D): The fetched instruction is decoded to understand the operation to be performed.
    • Read the effective address (A): The effective address of the data required for the operation is determined.
    • Execute the instruction (C): The instruction is executed and the desired operation is performed.

Additional Information

  • The instruction cycle is fundamental to the operation of all computers and involves multiple steps to ensure that the correct operations are performed accurately.
  • Each step in the cycle is crucial for the correct execution of instructions, ensuring that the computer processes data efficiently.
  • Understanding the instruction cycle is important for those studying computer architecture and assembly language programming.

Instruction Pipelining Question 3:

Consider a pipeline unit for fixed - point multiplication of 8-bit integers. Arrange the following stages in a correct sequence.

Stage A : Consists of two CSAS and it merges four numbers from previous stage.

Stage B : is a CPA, which adds up the two numbers

Stage C : is made upto two level of four CSAS.

Stage D : Generates eight partial products.

Choose the correct answer from the options given below:

  1. C, A, B, D
  2. D, C, A, B
  3. B, D, C, A
  4. A, C, D, B

Answer (Detailed Solution Below)

Option 2 : D, C, A, B

Instruction Pipelining Question 3 Detailed Solution

The correct answer is Option 2: D, C, A, B

Explanation:

The correct sequence of stages for fixed-point multiplication of 8-bit integers is as follows:

  1. Stage D: Generates eight partial products. This stage is the initial step where the multiplicand and multiplier are combined to produce partial products.
  2. Stage C: Consists of two levels of four CSAS (Carry Save Adders). This stage processes the partial products to reduce the number of operands.
  3. Stage A: Consists of two CSAS and it merges four numbers from the previous stage. This further reduces the operands.
  4. Stage B: Is a CPA (Carry Propagate Adder), which adds up the two numbers. This final stage produces the final product by adding the last two numbers.

Instruction Pipelining Question 4:

Which table for a dynamic pipeline become more interesting when a nonlinear pattern is follows?

  1. Reservation Table
  2. Confusion Table
  3. Inverted Table
  4. Greedy Table

Answer (Detailed Solution Below)

Option 1 : Reservation Table

Instruction Pipelining Question 4 Detailed Solution

The correct answer is Reservation Table.

key-point-image Key Points
  • A reservation table is used in dynamic pipelines to keep track of the usage of functional units over time.
  • When a nonlinear pattern is followed, the reservation table becomes more interesting because it needs to efficiently handle the dynamic allocation and deallocation of resources.
  • This dynamic nature allows the pipeline to adapt to varying workloads and optimize the performance.
  • The reservation table helps in avoiding conflicts and ensuring that the functional units are utilized effectively, especially when there are dependencies among instructions.
  • It is crucial in maintaining the pipeline's efficiency and preventing stalls that can occur due to resource contention.
additional-information-image Additional Information
  • Reservation tables are used in various stages of instruction execution to track the availability and scheduling of resources.
  • They play a vital role in superscalar and out-of-order execution architectures by managing multiple instructions simultaneously.
  • In a complex pipeline, the reservation table helps in reducing latency and improving throughput by efficiently scheduling instructions.
  • Understanding the reservation table is essential for optimizing the performance of modern processors and designing efficient instruction pipelines.

Instruction Pipelining Question 5:

A program consists of four major types of instructions. The instructions mix and the CPI for each instruction type are given in the following table. If the clock frequency of the processor is 400 MHz, what is the average CPI of the processor? 

Instruction Type

    CPI    

       Instruction Mix     

Arithmetic and Logic

1

60%

Load/Store with cache

hit

2

18%

Branch

4

12%

Memory reference with

cache miss

8

10%

 

  1. 3·75
  2. 2·24 
  3. 1·87 
  4. 1·54

Answer (Detailed Solution Below)

Option 2 : 2·24 

Instruction Pipelining Question 5 Detailed Solution

The correct answer is 2·24 

Explanation:

The formula for finding the total CPI is given below

qImage67692d90b6635bccc7e9d96d

CPI = ∑ Frequencyi * CPIi

Frequencyi = ICi / Instruction count

CPI = (0.60 * 1) + (0.18 * 2) + (0.12 * 4) + (0.10 * 8)

CPI = 2.24

Top Instruction Pipelining MCQ Objective Questions

In microprocessors, the IC (instruction cycle), FC (fetch cycle) and EC (execution cycle) are related as

  1. IC = FC - EC
  2. IC = FC + EC
  3. IC = FC + 2EC
  4. EC = IC + FC

Answer (Detailed Solution Below)

Option 2 : IC = FC + EC

Instruction Pipelining Question 6 Detailed Solution

Download Solution PDF
  • The Steps required by the CPU to fetch and execute an Instruction is called an instruction cycle. It consists of fetch and executes cycle.
  • Instruction cycle (IC) = Fetch cycle (FC) + Execution cycle (EC)
  • The time required by the microprocessor to complete the operation of accessing memory or I/O devices is called a machine cycle.
  • Clock time is a known time state. It is reciprocal of clock frequency.
  • Instruction cycle > Machine cycle > Clock cycle (time state)

26 June 1

Steps in the instruction cycle:

  • First of all, the opcode is fetched by the microprocessor from a stored memory location.
  • Then it is decoded by the microprocessor to find out which operation it needs to perform.
  • If an instruction contains data or operand address which is still in the memory, the CPU has to perform read operation to get the desired data.
  • After receiving the data, it performs to execute the operation.

 

Correct sequence: fetch → decode → read effective address → execute

Consider 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.

F1 Raju Shraddha 01.06.2021 D 16

What is the approximate speed up of the pipeline in steady state under ideal conditions when compared to the corresponding non-pipeline implementation?

  1. 4.0
  2. 2.5
  3. 1.1
  4. 3.0

Answer (Detailed Solution Below)

Option 2 : 2.5

Instruction Pipelining Question 7 Detailed Solution

Download Solution PDF

The correct answer is option 2

Concept:

The segments are separated by registers Ri that holds the intermediate results between the stages.

Data:

Stage delay and corresponding register delay given

S1 = 5 ,

S2 = 6 ,

S3 = 11,

S4 = 8,

And corresponding register delay is 1 for each stage

Number of stage = 4

Explanation:

Time is taken to execute N instructions in non-pipelined implementation will be =(5+6+11+8)N = 30×N

Clock period for pipelined implementation =max(5,6,11,8) + 1 = 12 ns

Time is taken to execute N instructions in pipelined implementation will be = (4 + N-1)12 ≈ 12×N (N is very large)

Speedup = \({30N\over12N }=2.5\)

A non-pipelined CPU has 12 general purpose registers (R0, R1, R2,….R12). Following operations are supported

ADD Ra, Rb, Rr                   Add Ra to Rb and store the result in Rr

MUL Ra, Rb, Rr                  Multiply Ra to Rb and store the result in Rr

MUL operations takes two clock cycles, ADD takes one clock cycle.

Calculate minimum number of clock cycles required to compute the value of the expression XY + XYZ + YZ. The variables X, Y, Z are initially available in registers R0, R1 and R2 and contents of these registers must not be modified.

  1. 5
  2. 6
  3. 7
  4. 8

Answer (Detailed Solution Below)

Option 2 : 6

Instruction Pipelining Question 8 Detailed Solution

Download Solution PDF

Concept -

XY + XYZ + YZ = (X × Y) + (X × Y × Z) + (Y × Z) = (X × Y) + (X × Y + Y) × Z

The instructions are non-pipelined and cycles for each instruction is mentioned. Therefore,

X × Y - takes 2 cycles

X × Y + Y - takes 1 cycles (X × Y already done)

(X × Y + Y) × Z - takes 2 cycles

(X × Y) + (X × Y + Y) × Z - takes 1 cycle

Hence, total cycles = 2 + 1 + 2 + 1 = 6

F1 Raju.S 27-04-2020 Savita D1

Consider 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 instructions, 60% are ALU instructions and the rest are branch instructions. 5% of the memory instructions cause stalls of 50 clock cycles each due to cache misses and 50% of the branch instructions cause stalls of 2 cycles each. Assume that there are no stalls associated with the execution of ALU instructions. For this program, the speedup achieved by the pipelined processor over the non-pipelined processor (round off to 2 decimal places) is _____.

Answer (Detailed Solution Below) 2.15 - 2.18

Instruction Pipelining Question 9 Detailed Solution

Download Solution PDF

Data:

For a non-pipelined processor,

Clock cycles to complete one instruction = 5

Instruction operating frequency = 2.5 GHz

One clock cycle time = 1/ (2.5 GHz) = 0.4 ns

For N number of instructions, clock cycles required = 5N

Time taken to complete 5n clock cycles = 0.4*5n = 2N ns

For a pipelined processor,

Stages of pipeline = 5

Overheads associated = 2 GHz

One clock cycle time = 1/ (2 GHz) = 0.5 ns

For n instructions, clock cycles required

F2 R.S Madhu 13.05.20 D1

 

Instruction type

Number of such instructions

% causing stalls

Number of clock cycles

Memory

0.3N

5% of 0.3N

50

ALU

0.6N

None

0

Branch

0.1N

50% of 0.1N

2

 

Therefore, time taken by pipelined processor:

0.6N (1) + 0.3N [0.05 (1 + 50) + 0.95 (1)] + 0.1N [0.5 (1 + 2) + 0.5 (1)] cycles

= 1.85N cycles

= 1.85N/2 ns

= 0.925N ns

Speedup = \(\frac{{2{\rm{N}}}}{{0.925{\rm{\;N}}}}\) = 2.162

Consider a 5-segment pipeline with a clock cycle time 20ns in each sub operation. Find out the approximate speed-up ratio between pipelined and non-pipelined system to execute 100 instructions. (if an average, every five cycles, a bubble due to data hazard has to be introduced in the pipeline)

  1. 5
  2. 4.03
  3. 4.81
  4. 4.17

Answer (Detailed Solution Below)

Option 2 : 4.03

Instruction Pipelining Question 10 Detailed Solution

Download Solution PDF

Data:

No. of pipeline segments = stages in pipeline, n = 5

Clock cycle time per operation = clock cycle per stage = 20 ns

No. of instructions = 100

Formula:

\({\rm{Spee}}{{\rm{d}}_{{\rm{up}}}} = {\rm{}}\frac{{{{\rm{T}}_{{\rm{without\;pipeline}}}}}}{{{{\rm{T}}_{{\rm{with\;pipeline}}}}}}\)

Calculation:

Twithout pipeline = no. of instructions × stages in pipeline × clock cycle per stage

= 100 × 5 × 20

Twith pipeline = (time for pipelined execution without stalls) + (overhead due to stalls)

= (5 + 99) × 20 + 20 × 20 = 124 × 20

\(Spee{d_{up}} = \frac{{500 \times 20}}{{124 \times 20}} = 4.03\)

Explanation:

→ For calculating the time for pipelined execution without stalls, it is considered that 1st instruction takes up an entire clock cycle, while each instruction after that takes up only the maximum time from all the segments. In our case, all the segments took an equal time of 20ns (1 Clock) hence,

time for pipelined execution without stalls = time required for first instruction + (n - 1) instructions taking 20 ns each = 5 × 20 + (100 - 1) × 20, that is we needed 104 clocks for complete execution

→ Overhead is calculated because it is mentioned in the question that every five cycles, a bubble due to data hazard has to be introduced in the pipeline. Hence ⌊ 104/5 ⌋ = 20 such overheads, each requiring 20ns of service time = 20 × 20

The first machine cycle of an instruction is always a

  1. Memory reed cycle
  2. Fetch cycle
  3. I/O real cycle
  4. Memory write cycle

Answer (Detailed Solution Below)

Option 2 : Fetch cycle

Instruction Pipelining Question 11 Detailed Solution

Download Solution PDF

Machine Cycle: Time taken to execute one OPERATION is known as a machine cycle.  One instruction will contain 1 to 5 machine cycles.

T-State: The portion of a machine cycle executed in one internal clock pulse is known as T-state.

F1 S.B 27.3.20 Pallavi D3

Steps in the instruction cycle:

  • First of all, the opcode is fetched by the microprocessor from a stored memory location.
  • Then it is decoded by the microprocessor to find out which operation it needs to perform.
  • If an instruction contains data or operand address which is still in the memory, the CPU has to perform read operation to get the desired data.
  • After receiving the data, it performs to execute the operation.

 

Correct sequence: fetch → decode → read effective address → execute

Pipelining increases ______ of the processor.

  1. Throughput
  2. Storage
  3. Predictivity
  4. Latency

Answer (Detailed Solution Below)

Option 1 : Throughput

Instruction Pipelining Question 12 Detailed Solution

Download Solution PDF

Concept:

Pipelining is an implementation technique whereby multiple instructions are overlapped in execution. It is like an assembly line. 

Explanation:

In pipelining, each step operates parallel with other steps. It stores and executes instructions in an orderly manner.

The main advantages of using pipeline are :

  • It increases the overall instruction throughput. 
  • Pipeline is divided into stages and stages are connected to form a pipe-like structure.
  • We can execute multiple instructions simultaneously.
  • It makes the system reliable. 
  • It increases the program speed.
  • It reduces the overall execution time but does not reduce the individual instruction time.

The instruction pipeline of a RISC processor has the following stages: Instruction Fetch (IF), Instruction Decode (ID), Operand Fetch (OF), Perform Operation (PO) and Writeback (WB). The IF, ID, OF and WB stages take 1 clock cycle each for every instruction. Consider a sequence of 100 instructions. In the PO stage, 40 instructions take 3 clock cycles each, 35 instructions take 2 clock cycles each, and the remaining 25 instructions take 1 clock cycle each. Assume that there are no data hazards and no control hazards.

The number of clock cycles required for completion of execution of the sequence of instructions is ______.

Answer (Detailed Solution Below) 219

Instruction Pipelining Question 13 Detailed Solution

Download Solution PDF

Total Instruction = 100

Instruction Fetch, Instruction Decode, Operand Fetch, and Writeback (WB) performed in 1 cycle.

PO stage:

40 instructions take 3 cycle

35 instructions take 2 cycles

25 instructions take 1 cycle

Average number of cycles  = (40*3+35*2+25*1)/100 = 2.15 cycles.

On an average first instruction completed in 1+1+1+1+2.15 cycles

Remaining 99 instruction will takes 99*2.15 = 212.85 cycle

Total number of cycles is 6.15+212.85 = 219 cycles.

A non-pipeline system takes 50ns to process a task. The same task can be processed in six-segment pipeline with a clockcycle of 10ns. Determine approximately the speedup ratio of the pipeline for 500 tasks. 

  1. 6
  2. 4.95
  3. 5.7
  4. 5.5

Answer (Detailed Solution Below)

Option 2 : 4.95

Instruction Pipelining Question 14 Detailed Solution

Download Solution PDF

Concept:

Speed up factor is defined as the ratio of time required for non-pipelined execution to that of time received for pipelined execution.

Data:

Time for non-pipelined execution per task = t= 50 ns

Time for pipelined execution per task =  t= 10 ns

Number of stages in the pipeline = k = 6

Number of tasks = 500

Formula

\(S = \frac{{{T_n}}}{{{T_p}}}\)

S = speed up factor

Calculation:

Time for non-pipelined = Tn = tn × Number of tasks

Time for non-pipelined = Tn =  50 × 500

Time for pipelined = Tp​ = 1st task × k × tp + (All Remaining Tasks (k - 1)) × tp

Time for pipelined = Tp​ =  1 × 6 × 10 + (500 - 1) × 10

\(S = \frac{{T_n}}{{T_p}} = 4.95\)

A 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.

Answer (Detailed Solution Below) 17160

Instruction Pipelining Question 15 Detailed Solution

Download Solution PDF

Data:

Number of Instructions = n = 100

Number of stages = 5;

Stage delay = 5 ns

Calculation:

Time taken by five stage pipeline processor of singel instruction = T = Max (150, 120, 150, 160,140)  + stages delay

= 160 + 5 = 165 ns

The time required to execute n instructions with pipeline = [k + (n – 1)]T

= (5 + (100 - 1))×165 = 17160 ns

Get Free Access Now
Hot Links: teen patti - 3patti cards game teen patti live teen patti rummy 51 bonus teen patti royal