in CO and Architecture retagged by
1,023 views
2 votes
2 votes
in CO and Architecture retagged by
by
1.0k views

4 Comments

@joshi_nitish 

in this also we have dependency between sub and sw instruction but it will not create hazard in the pipeline because of this dependency.

ryt??

0
0
yes, there will be no hazard.
0
0

@joshi_nitish @shubhanshu thanks for clearing certain things out, I do believe adjacency and non adjacency need not matter while looking for dependency. Also it will depend on when result of Execution stage is going to available, if execution stage takes more number of cycle, then definitely non adjacent instruction will suffer because of dependency.
Taking reference of this question https://gateoverflow.in/3622/gate2006-it-78
Its previous year gate question, here if we consider only adjacent instruction, then no option matches, definitely we need to look for  non adjacent instructions as well.

Next to check for hazard, we need to draw pipeline diagram. If stalls are present then only that dependency will lead to hazard.

Correct me if iam still making any mistake. 

2
2

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
3
Na462 asked in CO and Architecture Nov 14, 2018
478 views
Na462 asked in CO and Architecture Nov 14, 2018
by Na462
478 views