Which one of the following of register operands on different instructions can cause data hazard in the pipelined processor?
Solution :
The correct option is Read After Write.
In a pipelined processor, data hazards occur when instructions that are close together in the instruction stream reference the same memory or register operands, and the execution of those instructions overlaps in time. If the pipeline is not stalled or the operands are not forwarded, this overlap can lead to incorrect results.
Let us analyze the nature of data hazards by looking at the relationship between two instructions, where Instruction 1 occurs before Instruction 2 in program order:
1. Read After Write (RAW):
This hazard occurs when Instruction 2 tries to read a source register before Instruction 1 has written to it. In other words, Instruction 2 requires the value produced by Instruction 1. Since Instruction 1's write-back stage occurs late in the pipeline while Instruction 2's decode/read stage occurs early, Instruction 2 might read the old (incorrect) value. This is a true dependency and is the primary cause of data hazards in standard pipelined processors.
2. Write After Read (WAR):
This hazard occurs when Instruction 2 tries to write to a destination register before it is read by Instruction 1. In standard in-order pipelines, this cannot cause a hazard because registers are read in earlier stages (e.g., Instruction Decode) than they are written (e.g., Write Back). Hence, Instruction 1 will always read the register before Instruction 2 writes to it.
3. Write After Write (WAW):
This hazard occurs when Instruction 2 tries to write to a destination register before Instruction 1 writes to it, potentially leaving the register with the older value from Instruction 1 instead of the newer one from Instruction 2. In a standard in-order pipeline, since instructions write back in the order they are issued, this hazard does not occur.
4. Read After Read (RAR):
This situation occurs when both instructions read from the same register. Since reading a register does not modify its state or value, there is no dependency or conflict, and no hazard can occur.
Consequently, in a standard pipelined processor, Read After Write is the register operand relationship that causes a data hazard.
Completely free for students. Educators & coaching institutes get 2 months free Pro trial to create tests.
Access unlimited practice questions, detailed step-by-step solutions, and exam study materials — completely free for students.
Create and conduct professional online assessments with AI question generation, tab proctoring, and comprehensive batch management.
Prepare for GATE 2026 Civil Engineering with the latest question papers, previous year papers, detailed solutions, syllabus, exam pattern, preparation tips, mock tests, and subject-wise study material. Download GATE 2026 CE question papers with solutions in PDF format and boost your preparation for top engineering institutes and PSU recruitment.
Prepare effectively for GATE 2026 Electronics & Communication Engineering (EC) with this comprehensive Question Paper with Solutions. This resource includes detailed explanations, concept-wise solutions, previous year paper analysis, and exam-oriented practice to help aspirants strengthen core subjects like Electronic Devices, Analog Circuits, Digital Circuits, Signals & Systems, Network Theory, Control Systems, Electromagnetics, Communications, and more. Perfect for revision, self-assessment, and boosting your GATE 2026 EC preparation strategy.
Copyright © 2026 Combe Labs Private Limited. All Rights Reserved.