Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume the below datapath figure (no forwarding or hazard detection unit). Assume writing to the registers at the first half of the cycle and reading
Assume the below datapath figure (no forwarding or hazard detection unit). Assume writing to the registers at the first half of the cycle and reading is at the second half is possible. Any hazards must be resolved by inserting nops. Assume the following code: a. (5pts) What are the hazard types in this code? Give an example for each from this code. b. (8pts) Considering the above datapath, show hazard sources on the code and rewrite the code inserting minimum number of nops to resolve any hazards. c. (Spts) Write down the hazard in the code that cannot be resolved without stalling even we use forwarding unit. d. (5pts) Write down the hazard in the code that cannot be resolved without flushing even we use
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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