Question
Pipeline Hazard Test Case Generation Develop a pair of test programs that you can use to test your pipelined designs. Specifically, the first program should
Pipeline Hazard Test Case Generation
Develop a pair of test programs that you can use to test your pipelined designs. Specifically, the first program should cause at least 10 different cases of possible data or control hazards for the 5-stage MIPS processor presented in class. Each test case must be described/justified in a comment. The second program should be a refactored version of the first program that guarantees, for the 5- stage pipeline presented in class, no data or control hazards exist (i.e., use judicious NOP insertion and instruction reordering to avoid data and control hazards in your code). Submit your programs as .s MIPS assembly files. Your test program should be different than that of your term project partner(s). ?you should assume branches and jumps evaluate in the decode stage?
Five stages are IF:IFetch, ID:Dec, EX:Execute, MEM: MemAccess, WB: WriteBack.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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