Using the code below, list all of the dependence types (RAW, WAR, WAW). List the
ID: 3830302 • Letter: U
Question
Using the code below, list all of the dependence types (RAW, WAR, WAW). List the dependencies in the respective table by writing in the instruction numbers involved with the dependence. Note: some fields in the table may be empty.
I1: A = B + C;
I2: B = A - C;
I3: C = B + C;
I4: A = A - C;
ODA3100 Spring2017 Final Word TABLE TOOLS John Soler SERT DESIGN AGE LAYOUT REFERENCES MAILINGS REVIEW VIEW DESIGN LAYOUT Find d D AaBbCcL e Replace A A abEX x' T Normal No Spac. Heading 4 Subtle Em... Font Paragraph Editing Chapter 4-The Processor 1. [10 points] Using the code below, list all of the dependence types (RAW, WAR, WAW). List the dependencies in the respective table by writing in the instruction numbers involved with the dependence. Note: some fields in the table may be empty II: A B C, I2: B IS: C B+C. WAV Dependence RAW Dependence WAR Dependence From Inst To Inst From Ins To In From In To In ORDS E Sclence Prealgebra Cancel Earth Sciences Precalculus Type here to search writing in the instruction numbers involved with the 21 AM 5/1/2017Explanation / Answer
Considering pipelining, dependecies are as follows:
1.RAW (Read after Write)
Consider I1: A = B + C and I2: B= A - C;
In this A should be written first and then I2 should read the value of A. Same goes for (I2,I3, for B) and (I3,I4, for C)
2.WAR (Write after Read)
Consider I1: A = B + C and I2: B = A -C
In this B should be written after it has been read in I1. Same goes for (I2,I3, for C)
3. WAW (Write after write)
Consider I1: A = B + C and I4: A = A - C
A must be written in I4 after it is written in I1.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.