Benc4453021718 Senibina Komputer

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

SULIT

(BENC 4453)

Table Q2(b)
Line Label lnstru_sti,on ..
•·

1 Rl =Rl + 1
2 R2 = R2+2
3 JUMPL6
4 R4=R4+4
5 R5=R5+5
6 L6: R6 = R6+6
7 END

(i) Create the timing diagram (as in Table Q2(b)(i)) to show how many time units
are needed for a processor with the 4-stage pipelining.

Table Q2(b)(i)
Time-+
1 2 3 4 5 6 ... ...
Instruction 1 FI DA FO EX
Instruction 2
Instruction 3

[7 marks]

(ii) Explain what happened to Instruction 4 during the implementation.


[2 marks]

(iii) Classify the pipeline hazard that occurred when JUMP instruction is
implemented. Explain your answer.
[2 marks]

(iv) Recommend TWO (2) mechanisms to mitigate the impact of the pipeline
hazards.
[2 marks]

- 12 -
SULIT

You might also like