07.06.2013 Views

LEZIONE #05 del 12-Mag-2008 (2 ore) - Dipartimento di Ingegneria ...

LEZIONE #05 del 12-Mag-2008 (2 ore) - Dipartimento di Ingegneria ...

LEZIONE #05 del 12-Mag-2008 (2 ore) - Dipartimento di Ingegneria ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

P4 - Branch pre<strong>di</strong>ction [Boggs03]<br />

• Secondo Intel, il piu’ sofisticato schema <strong>di</strong> pre<strong>di</strong>zione al 2007<br />

• Non molti dettagli sono <strong>di</strong>sponibili<br />

• Si avvale <strong>di</strong> due maniere <strong>di</strong> pre<strong>di</strong>rre il branch (simile al P6)<br />

• Se BTB fa hit si usa tale pre<strong>di</strong>zione<br />

• In caso contrario si usa una pre<strong>di</strong>zine statica<br />

• Miglioramenti introdotti nel Pentium M [Gochman03]<br />

- Pre<strong>di</strong>zione dei branch in<strong>di</strong>retti<br />

- Rivelat<strong>ore</strong> <strong>di</strong> loop<br />

Roberto Giorgi, Universita’ <strong>di</strong> Siena, C208L05, Slide 33<br />

P4 - Branch Pre<strong>di</strong>ction statica<br />

• Generazioni precedenti<br />

• I “backward branch” venivano sempre “taken”<br />

• Backward branches nel P4<br />

• Si controlla se ricade su una chiusura <strong>di</strong> un loop oppure no<br />

- La decisione si basa su una soglia definita in maniera empirica<br />

-Se offset < soglia allora deduco che sono nel caso <strong>di</strong> una chiusa <strong>di</strong> loop pre<strong>di</strong>co taken<br />

-Se offset > soglia deduco che NON sono nel caso <strong>di</strong> una chiusa <strong>di</strong> loop pre<strong>di</strong>co not-taken<br />

Roberto Giorgi, Universita’ <strong>di</strong> Siena, C208L05, Slide 34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!