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 ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Pre<strong>di</strong>ttori a correlazione: gselect e gshare<br />
• Per generare l’in<strong>di</strong>ce <strong>del</strong>la PHT, Pan e (successivamente) McFarling<br />
suggeriscono <strong>di</strong> usare sia l’in<strong>di</strong>rizzo <strong>del</strong> branch (BIA) che la stringa<br />
<strong>di</strong> storia globale (BHSR)<br />
• La semplificazione e’ <strong>di</strong> NON usare una BHT con piu’ elementi<br />
• gselect [Pan92]<br />
• Alcuni bit <strong>del</strong> BIA sono accostati ai bit <strong>del</strong>la global history<br />
• gshare [McFarling93]<br />
• I bit <strong>del</strong> BIA sono “mescolati” (hashed) con quelli <strong>del</strong>la global history<br />
• La funzione <strong>di</strong> “mescolamento” <strong>di</strong> solito e’ l’operazione <strong>di</strong> XOR<br />
Branch<br />
address<br />
(BIA)<br />
Roberto Giorgi, Universita’ <strong>di</strong> Siena, C208L05, Slide 9<br />
Global<br />
history<br />
(BHSR)<br />
gselect 4/4 gshare 8/8<br />
0000 0000 0000 0001 0000 0001 00000001<br />
00000000 00000000 00000000 00000000<br />
11111111 00000000 11110000 11111111<br />
11111111 10000000 11110000 01111111<br />
gselect [Pan92]<br />
• m bit dall’in<strong>di</strong>rizzo (BIA) sono accostati ai k bit <strong>del</strong> BHSR<br />
• Schema molto semplice: 1 BHSR e 1 piccolo PHT<br />
BHSR<br />
Roberto Giorgi, Universita’ <strong>di</strong> Siena, C208L05, Slide 10<br />
k<br />
BIA<br />
m<br />
k+m<br />
PHT<br />
…<br />
2 k+m x j<br />
entries<br />
pre<strong>di</strong>ction