Question: Repeat Problem 10-15 using the RISC CPU with data forwarding in Figure 10-13. Problem 10-15 Simulate the processing of the program in Problem 10-12 using

Repeat Problem 10-15 using the RISC CPU with data forwarding in Figure 10-13.

Problem 10-15

Simulate the processing of the program in Problem 10-12 using the RISC CPU with data-hazard stall in Figure 10-12. Give the contents of each pipeline platform and the register file (the latter only whenever a change occurs) for each clock cycle. Initially, R2 contains 0000001016, R4 contains 0000002016, R7 contains 0000003016, and the PC contains 0000000116. Is the data hazard avoided?

 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

Figure 10-12

PC +1 8 DHS Adder BrA MUX C 0132 PI BARAA Address Instruction memory Instruction 60 FR BS RW DA MD IM-IR SHIR

Figure 10-13

PC +1 PC PC Adder BrA MUX C 13 BARAA BS BS La ca Address Instruction memory Instruction IR IM=IR SHIR RW DA

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

Step by Step Solution

3.36 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To simulate the processing of the program in Problem 1012 using the RISC CPU with data forwarding in ... View full answer

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!