1 votes 1 votes CO and Architecture hazards + – pankaj joshi 1 asked Jan 22, 2018 pankaj joshi 1 392 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply vishal chugh commented Jan 22, 2018 reply Follow Share Is it option D? 0 votes 0 votes pankaj joshi 1 commented Jan 22, 2018 reply Follow Share 2 is ans but please explain 0 votes 0 votes shriram s 1 commented Jan 22, 2018 reply Follow Share I think here they have asked for data hazards that need to be detected by ID stage i.e. RAW hazards. So we have only 2 RAW hazards. Forwarding technique can be used to select the operand value either from Register file or from previous execution stage. Reference: http://web.cs.iastate.edu/~prabhu/Tutorial/PIPELINE/dataHazClass.html 0 votes 0 votes vishal chugh commented Jan 22, 2018 reply Follow Share I considered all the Hazards so there are 2 RAW($R_{1}$ in Instruction 2 and $R_{2}$ in instruction 3), 1 WAR($R_{2}$ in Instruction 2) and 1 WAW($R_{1}$ in instruction 3) hazards. But as pointed out by shriram s 1 they are only asking for RAW hazards so the ans is 2. 0 votes 0 votes Please log in or register to add a comment.