1 votes 1 votes CO and Architecture co-and-architecture pipelining data-dependency + – Himanshu1 asked Dec 24, 2015 retagged Nov 13, 2017 by Arjun Himanshu1 2.7k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply resuscitate commented Dec 24, 2015 reply Follow Share is it 11?? 0 votes 0 votes Himanshu1 commented Dec 24, 2015 reply Follow Share Answer given is 14. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Inst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 I1 IF ID DF EX WB I2 IF ID DF EX WB I3 IF ID DF STALL EX WB I4 IF ID STALL DF STALL EX WB I5 IF STALL ID STALL DF STALL EX WB I6 STALL IF STALL ID STALL DF STALL EX WB All I3 I4 I5 I6 dependent. Umang Raman answered Dec 24, 2015 Umang Raman comment Share Follow See all 10 Comments See all 10 10 Comments reply Show 7 previous comments Himanshu1 commented Dec 25, 2015 reply Follow Share Becz, u must have read that writes take place in first half cycle & read (DF) takes place in second half of a clock cycle. 0 votes 0 votes Umang Raman commented Dec 25, 2015 reply Follow Share but in question it is mentioned no special hardware technique and whatever you mentioned is only available in RISC pipeline . and according to me data fetching can be done before wb coz it just accessing the register file i think . execution will be done at ex stage so at that time new data required so it will be kept after wb. 0 votes 0 votes Himanshu1 commented Dec 25, 2015 reply Follow Share I am not sure whether that is special Hardware(In that case 18 should be the answer) or by default , and Indeed we are talking about RISC pipeline only , just that no special technique for Hazard resolution. But for sure we can't DF before WB of previous instruction (in case of RAW Hazard) becz it will read old values , if operand forwarding is not employed.. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes 5 for first instruction 1 for second instruction and 1+2 for third instruction(depends on 2 therefore 2 stalls) 1+2 for fourth(depends on third ) 1+2 for fifth(depends on 4th) 1+2 for sixth(depends on 5th) total = 18 cycle sachin486 answered Aug 8, 2020 sachin486 comment Share Follow See all 0 reply Please log in or register to add a comment.