Question: ay you have an LC 2 K program with the following characteristics: 3 5 % lw 2 0 % sw 1 5 % add /
ay you have an LCK program with the following characteristics:
lw
sw
addnor
beq
of registerwriting instructions are immediately followed by an instruction dependent on it You may assume that it is true no matter what instructions are involved.
of branches are not taken
What would be the expected CPI of your program using detectandstall to resolve data hazards and detectandstall for control hazards? Assume we are using the stage pipeline described in class and the stalling is handled by the pipeline. Clearly show your work.
What would be the expected CPI of your program using detectandforward to resolve data hazards and predictnottaken for control hazards? Assume we are using the stage pipeline described in class. Clearly show your work.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
