Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. [10] (Based on the question 3.15b in the textbook). With additional conditions (1) With speculation; and assume the outcome of branch instruction is correctly
2. [10] (Based on the question 3.15b in the textbook). With additional conditions (1) With speculation; and assume the outcome of branch instruction is correctly predicted (2) Assume there is an integer ALU for address calculation; and another integer ALU for branch and all other integer operations (3) If the first instruction in an issue packet is a branch instruction, only this branch instruction can be issued in this cycle (4) Up to two instructions can be committed per cycle (5) There are two CDBs (6) For load/store, EX is for address calculation (7) There are ten Reorder Buffer (ROB) entries (8) Only show the first two iterations and ignore the DADDIU instruction before the loop Answer IterationInstruction Issue Execution Read Write to Co Comment Memory CDB L.D FIO, 0(R2) MUL.D F2, F10, FO L.D F8, O(R3) ADD.D F8, F2, F8 S.D F8, 0(R3) DADDIU R2, R2, #8 DADDIU R3, R3. #8 DSLTU R5, R2, R4 BNEZ, R5, foo L.D F10, 0(R2) MUL.D F2, F10, FO LD F8, 0(R3) ADD.D F8. F2, F8 S.D F8, 0(R3) DADDIU R2, R2, #8 DADDIU R3. R3. #8 DSLTU R5, R2, R4 BNEZ, R5, foo 2 2 2. [10] (Based on the question 3.15b in the textbook). With additional conditions (1) With speculation; and assume the outcome of branch instruction is correctly predicted (2) Assume there is an integer ALU for address calculation; and another integer ALU for branch and all other integer operations (3) If the first instruction in an issue packet is a branch instruction, only this branch instruction can be issued in this cycle (4) Up to two instructions can be committed per cycle (5) There are two CDBs (6) For load/store, EX is for address calculation (7) There are ten Reorder Buffer (ROB) entries (8) Only show the first two iterations and ignore the DADDIU instruction before the loop Answer IterationInstruction Issue Execution Read Write to Co Comment Memory CDB L.D FIO, 0(R2) MUL.D F2, F10, FO L.D F8, O(R3) ADD.D F8, F2, F8 S.D F8, 0(R3) DADDIU R2, R2, #8 DADDIU R3, R3. #8 DSLTU R5, R2, R4 BNEZ, R5, foo L.D F10, 0(R2) MUL.D F2, F10, FO LD F8, 0(R3) ADD.D F8. F2, F8 S.D F8, 0(R3) DADDIU R2, R2, #8 DADDIU R3. R3. #8 DSLTU R5, R2, R4 BNEZ, R5, foo 2 2
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