Question: Rewrite the RISC programs in Problems 10-11 and 10-12, using NOPs to avoid all data and control hazards, and draw the new execution diagrams. Problem

Rewrite the RISC programs in Problems 10-11 and 10-12, using NOPs to avoid all data and control hazards, and draw the new execution diagrams.

Problem 10-11

For the RISC design, draw the execution diagram for the following RISC program, and indicate any data hazards that are present:

1 MOVA 2 SUB 3 AND R7, R6 R8, R8, R6 R8, R8, R7

Problem 10-12

For the RISC design, draw the execution diagram for the following RISC program (with the contents of R7 nonzero after the subtraction), and indicate any data or control hazards that are present:

1 SUB 2 BNZ 3 AND 4 OR R7, R7, R2 R7,000F R8, R7, R4 R4, R8, R2

1 MOVA 2 SUB 3 AND R7, R6 R8, R8, R6 R8, R8, R7

Step by Step Solution

3.33 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Logic And Computer Design Fundamentals Questions!