edited by
2,879 views
7 votes
7 votes
Which of the following statements are true?

1. WAW and WAR can be reduced but cannot be completely removed from the pipeline.

2.In direct mapped cache,may produce more misses of program refers to a memory word that occupies same tag value

3.By register renaming,all the stalls created by anti data dependency are eliminated
edited by

1 Answer

Best answer
17 votes
17 votes

If we see statement 1 and statement 3 , they are mutually exclusive statements..

Using the technique known as register renaming , all WAR and WAW hazards can be eliminated totally not simply mitigated only..Hence statement 1 is false while statement 3 is true..

Now statement 2 is tricky a bit..

For which we have to know about conflict miss which occurs more for direct mapped cache and hence which is reduced by increasing the associativity of the cache..Hence in a fully associative cache , number of conflict miss = 0..

Now conflict miss arises due to the fact that two main memory blocks map to the same cache line(in case of direct mapped cache) and same set(in case of set associative cache)..Hence for conflict miss to happen in same cache line , the line offset field should be same ..But in the given statement they are saying about same tag field value.

Regarding statement 3 , there we have the phrase "anti dependency" which is referred to WAR hazards..And register renaming is capable to eliminate that..

Hence statement 2 is false..Hence out of the given statements only 3 is true..

selected by

Related questions

3 votes
3 votes
1 answer
3