Question: Develop a C + + program that can take any group of instructions from traditional MIPS instructions and your program can detect the pipelining hazards

Develop a C++program that can take any group of instructions from traditional MIPS instructions and your program can detect the pipelining hazards and generates the timing sequence (IF/ID/.....) showing the hazards. The program cannot be hardcoded. Then, it should use a solution for the detected hazards and regenerate the timing sequence after
applying the proposed solution. Use the pipelining five stages.
In your demonstration, you need to show at least one program of at least four
instructions. In other words, a program of four lines should be demonstrated. The
instructions do not have to be different.
- You can program any number of instructions but you must include at least add, sub, lw, sw.
- You need to show three outputs of your program...
1. "without any solution" which means you can just show the dependencies by
highlighting the registers, report to the consol or a file both the name of the registers
and the type of the hazard, you can show the arrows, .... anything anything to show
that there is hazards.
2. "with solution 1" which means that you need to show the output (timing diagram F D X M W) with using (only stall) with the forwarding unit disabled.
3.with solution 2 which means that you need to show the output (timing diagram F D X M W) using stall (if needed) with the forwarding unit enabled.
- The MIPS program that you will test must be at least four lines/instructions.
- You must support 9 registers or more

Step by Step Solution

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 Databases Questions!