GATE CS Instruction Pipelining questions
Practise Instruction Pipelining questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
16 on this page
Consider an instruction pipeline with five stages without any branch prediction: Fetch Instruction (FI), Decode Instruction (DI), Fetch Operand (FO), Execute Instruction (EI) and Write Operand (WO). The stage delays for FI, DI, FO, EI and WO are respectively. There are intermediate storage buffers after each stage …
Register renaming is done in pipelined processors:
Consider an instruction pipeline with four stages 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. What is the approximate speed up of the pipeline in steady state under …
A 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 clock cycle each for any instruction. The PO stage takes clock cycle for ADD and SUB instructions, clock cycles for MUL instruction and clock …
Consider a stage pipeline processor. The number of cycles needed by the four instructions in stages is shown below: …
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 I2: Sub I3: ADD I4: STORE Memory BRANCH to Label if Which of the instructions I1, I2, I3 or I4 …
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,
Which of the following are NOT true in a pipelined processor? Bypassing can handle all RAW hazards Register renaming can eliminate all register carried WAR hazards Control hazard penalties can be eliminated by dynamic branch prediction
Consider a pipelined processor with the following four stages: IF: Instruction Fetch ID: Instruction Decode and Operand Fetch EX: Execute WB: Write Back The IF, ID and WB stages take one clock cycle each to complete the operation. The number of clock cycles for the EX stage depends on the instruction. The ADD and SUB instructions need clock cycle and …
A CPU has a five-stage pipeline and runs at GHz frequency. Instruction fetch happens in the first stage of the pipeline. A conditional branch instruction computes the target address and evaluates the condition in the third stage of the pipeline. The processor stops fetching new instructions following a conditional branch until the branch outcome is …
A 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 state is used. WB – Register write back Consider the following sequence of …
A 4-stage pipeline has the stage delays as , , and , respectively. Registers that are used between the stages have a delay of each. Assuming constant clocking rate, the total time taken to process data items on this pipeline will be:
For a pipelined CPU with a single ALU, consider the following situations The instruction uses the result of the instruction as an operand The execution of a conditional jump instruction The and instructions require the ALU at the same time. Which of the above can cause a hazard
The performance of a pipelined processor suffers if:
Comparing the time T1 taken for a single instruction on a pipelined CPU with time T2 taken on a non-pipelined but identical CPU, we can say that
An instruction pipeline consists of stages – Fetch , Decode field , Execute and Result Write . The instructions in a certain instruction sequence need these stages for the different number of clock cycles as shown by the table below …
