retagged by
1,009 views
2 votes
2 votes

retagged by

3 Answers

Best answer
3 votes
3 votes
  1 2 3 4 5 6 7     8 10 11 12
I1 F D OF PO WB              
I2   F D OF PO WB            
I3     - - F D OF PO WB      
I4           F D     OF PO WB

stall in pipeline at clock cycle 3 and 4 due to structural dependency (due to shared Instruction and data caches, OF and IF of two instructions cannot happen in same clock cycle) and in 8 and 9 due to data dependency

so ans is d

selected by
1 votes
1 votes

1 RAW hazard present btwn last two instruction --> DATA HAZARD

NO structural dependency & no control dependency ..

so (a) option  correct


PLZ check!!

I1 IF ID OF PO WB        
I2   IF ID OF PO WB      
I3     IF ID ---- OF PO WB  
I4       IF   ID OF PO WB
0 votes
0 votes
i suppose the questions says there is a single memory for data and instruction. obviously data hazard is there the third instruction will suffer from data hazard because during that clock period R1,R2 has not be written by the first two instruction structural hazard is also there Look at the last instruction it access memory to write the value from R1 but the next instruction can be an instruction which will be fetched from memory so there will be issue regarding hardware resource(memory) control hazard wont be a possible as there or no jump or branch instructions so to conclude this pipeline has got data and structural hazard option D

Related questions

4 votes
4 votes
0 answers
2
jayadev asked Feb 3, 2022
392 views
Consider a 5—stage pipeline processor used to execute 200 number of instructions and among those 100 instructions cause 3 stall cycles each. What is the total cycles re...
0 votes
0 votes
0 answers
3
Ritabrata Dey asked May 21, 2019
399 views
How to find number of stall cycles and branch penalty & CPI in a branched instruction pipelining?