Q. Consider the following statements about pipeline hazards, data…
Q. Consider the following statements about pipeline hazards, data dependencies, and hardware mechanisms in modern CPUs:
A Read After Write (RAW) hazard is the same as true data dependency and cannot be avoided by register renaming.
A Write After Read (WAR) hazard occurs when a later instruction writes a register before an earlier instruction reads it, and it can always be eliminated using register renaming.
A Write After Write (WAW) hazard is also called output dependency, and register renaming can remove this hazard without affecting program correctness.
Register renaming can eliminate WAR and WAW hazards but has no effect on true data dependencies (RAW).
RAW hazards can be eliminated by reordering instructions or using register renaming in all pipeline designs.
WAR and WAW hazards occur exclusively in in-order pipelines and cannot appear in out-of-order execution pipelines.
How many of the above statements are NOT TRUE? ________ (NAT)
Attempted by 8 students.
Sign up free to check your answer
Sign up freeLoading lesson…

