Gestione degli hazard - Dipartimento di Ingegneria Informatica e ...
Gestione degli hazard - Dipartimento di Ingegneria Informatica e ...
Gestione degli hazard - Dipartimento di Ingegneria Informatica e ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Program<br />
execution<br />
order<br />
(in instructions)<br />
40 beq $1, $3, 7<br />
44 and $12, $2, $5<br />
48 or $13, $6, $2<br />
52 add $14, $2, $2<br />
72 lw $4, 50($7)<br />
Time (in clock cycles)<br />
CC 1<br />
IM Reg<br />
Branch<br />
DM Reg<br />
IM Reg DM Reg<br />
IM Reg<br />
DM<br />
Metodologie <strong>di</strong> progettazione Hardware/Software- LS Ing. <strong>Informatica</strong><br />
CC 2 CC 3 CC 4 CC 5 CC 6 CC 7 CC 8 CC 9<br />
IM Reg<br />
DM<br />
Branch<br />
• I control <strong>hazard</strong> può essere gestiti me<strong>di</strong>ante stalli impedendo il<br />
completamento della fase <strong>di</strong> fetch dell’istruzione successiva fino<br />
a quando non si conosce l’esito del branch<br />
– Disabilitando l’incremento del PC<br />
– Scrivendo su registro IF/ID una NOP<br />
Metodologie <strong>di</strong> progettazione Hardware/Software- LS Ing. <strong>Informatica</strong><br />
IM<br />
Reg<br />
Reg<br />
Reg<br />
DM<br />
Reg<br />
23<br />
24<br />
12