Awesome q2a theme
+1 vote
96 views

Consider the following set of instructions executed for a program to be accomplish.

How many number of anti data dependency and true data dependency in the above instructions?

 

Can anyone give the answer and solution for how many RAW dependency is there?

in CO & Architecture by (135 points) | 96 views
0
Should be 6 RAW dependencies, imo.
0

@goxul

I am getting 5. See where I am going wrong.

$i3-i2$

$i4-i2$

$i4-i3$

$i6-i3$

$i5-i4$

0

I think you might be getting $i5-i2$ also ?

0

@Kushagra गुप्ता

Yes, I5-I2 should also be one.

I follow this: https://cs.stackexchange.com/questions/47622/read-after-writeraw-hazard

"Adjacency is not relevant for determining Read-After-Write dependences. You simply list all the instructions where one of the source registers reads the value produced by some previous instruction."

0

Yes, it was a doubt to me also but after going through previous year questions and referring to best answers I decided to stick to that.

See this : https://gateoverflow.in/3622/gate2006-it-78

0
Have you gone through any other source as I was solving data-dependencies "tag" questions and I have found out that we should not consider that.

I can't guarantee you that but I couldn't find any valid book reference to prove my point as it is no where mentioned even in standard books
0

Yes I have read that.

And sir has written it :

But in none of the standard references nor dependency outputting software that is output and so you should not count it in GATE also.

0
yeah only $5$ RAW dependencies
0
Only 5 I2-I5 NOT COUNTED

1 Answer

0 votes
RAW- 5

WAR- 2
by (9 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users 2020 Aug 03 - 09
  1. Mellophi

    97 Points

  2. Ashutosh07091999

    69 Points

  3. prakhar2810

    7 Points

  4. Kushagra गुप्ता

    7 Points

  5. srestha

    7 Points

  6. sdutta

    6 Points

  7. kuldeep kumar07

    6 Points

  8. toppoavinash

    6 Points

  9. Shoaib_Ahmed

    6 Points

  10. prashastinama

    6 Points

Weekly Top User (excluding moderators) will get free access to GATE Overflow Test Series for GATE 2021
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Aug 2020
  1. Mellophi

    103 Points

  2. Ashutosh07091999

    72 Points

  3. Shaik Masthan

    13 Points

  4. srestha

    9 Points

  5. Unnayan kumar

    8 Points

  6. prakhar2810

    7 Points

  7. Sourav Kar

    7 Points

  8. anurag_yo

    7 Points

  9. Kushagra गुप्ता

    7 Points

  10. sdutta

    6 Points

7,710 questions
1,823 answers
11,131 comments
95,090 users