Rewrite the RISC programs in Problems 10-11 and 10-12, using NOPs to avoid all data and control

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 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

Step by Step Answer:

Related Book For  book-img-for-question

Logic And Computer Design Fundamentals

ISBN: 9780133760637

5th Edition

Authors: M. Morris Mano, Charles Kime, Tom Martin

Question Posted: