Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Draw the pipeline diagram with data dependency considered Appendix A Pipelining: Basic and Intermediate Concepts Data hazards occur when the pipeline changes the order of
Draw the pipeline diagram with data dependency considered
Appendix A Pipelining: Basic and Intermediate Concepts Data hazards occur when the pipeline changes the order of read/write accesses to operands so that the order differs from the order seen by sequentially executing instructions on an unpipelined processor. Consider the pipelined execution of these instructions: DADD DSUB AND OR XOR R1,R2,R3 R4, R1,R5 R6, R1,R7 R8, R1,R9 R10,R1,R11 All the instructions after the DADD use the result of the DADD instruction. As shown in Figure A.6, the DADD instruction writes the value of RI in the WB pipe stage, but the DSUB instruction reads the value during its ID stage. This problem is called a data hazard. Unless precautions are taken to prevent it, the DSUB instruc- tion will read the wrong value and try to use it. In fact, the value used by the DSUB Time (in clock cycles) CC 1 CC 2 cc a Ccs cC 6 Reg DADD R1, R2 RM DSUB A4. R1. RS IM Reg WDM XOR R10.81 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started