60 likes | 276 Views
CPU Optimization. Pipeline Branch Prediction. Pipeline performance drops when there is a branch in the program. Branch. The impact is greater with higher pipeline stages Ex: Pentium III’s 11 Stage Pipeline. Processor Pipeline Stages. Branch Prediction. Minimize pipeline stalls
E N D
CPU Optimization Pipeline Branch Prediction
Pipeline performance drops when there is a branch in the program Branch
The impact is greater with higher pipeline stagesEx: Pentium III’s 11 Stage Pipeline
Branch Prediction • Minimize pipeline stalls • Static Predictors • Always taken • Always NOT taken • Dynamic Predictors • Bimodal Predictors • Bimodal Predictors with Hysteresis
Bimodal with 2 Bit Hysteresis 11 (Take) 10 (Take) Taken Taken Not Taken Not Taken Taken 00 ( NOT Take ) 01 ( NOTTake ) Taken Not Taken Not Taken