Changeset 5 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue_genMealy_predict_history.cpp
- Timestamp:
- Mar 9, 2007, 7:16:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue_genMealy_predict_history.cpp
r4 r5 35 35 predictor_2_pht_history = PORT_READ(in_PREDICT_PREDICTOR_2_PHT_HISTORY [i]); 36 36 predictor_2_pht_direction = predictor_2_pht_history >> (_param._predictor_2_pht_size_counter-1); 37 history = (history << _param._predictor_2_pht_size_counter) | predictor_2_pht_history;37 history |= (predictor_2_pht_history << _param._shift_5); 38 38 } 39 39 if (_param._predictor_2_have_bht) … … 41 41 predictor_2_bht_history = PORT_READ(in_PREDICT_PREDICTOR_2_BHT_HISTORY [i]); 42 42 predictor_2_bht_direction = predictor_2_bht_history >> (_param._predictor_2_bht_size_shifter-1); 43 history = (history << _param._predictor_2_bht_size_shifter) | predictor_2_bht_history;43 history |= (predictor_2_bht_history << _param._shift_4); 44 44 } 45 45 … … 52 52 predictor_1_pht_history = PORT_READ(in_PREDICT_PREDICTOR_1_PHT_HISTORY [i]); 53 53 predictor_1_pht_direction = predictor_1_pht_history >> (_param._predictor_1_pht_size_counter-1); 54 history = (history << _param._predictor_1_pht_size_counter) | predictor_1_pht_history;54 history |= (predictor_1_pht_history << _param._shift_3); 55 55 } 56 56 if (_param._predictor_1_have_bht) … … 58 58 predictor_1_bht_history = PORT_READ(in_PREDICT_PREDICTOR_1_BHT_HISTORY [i]); 59 59 predictor_1_bht_direction = predictor_1_bht_history >> (_param._predictor_1_bht_size_shifter-1); 60 history = (history << _param._predictor_1_bht_size_shifter) | predictor_1_bht_history;60 history |= (predictor_1_bht_history << _param._shift_2) ; 61 61 } 62 62 if (_param._predictor_0_have_pht) … … 64 64 predictor_0_pht_history = PORT_READ(in_PREDICT_PREDICTOR_0_PHT_HISTORY [i]); 65 65 predictor_0_pht_direction = predictor_0_pht_history >> (_param._predictor_0_pht_size_counter-1); 66 history = (history << _param._predictor_0_pht_size_counter) | predictor_0_pht_history;66 history |= (predictor_0_pht_history << _param._shift_1); 67 67 } 68 68 if (_param._predictor_0_have_bht) … … 70 70 predictor_0_bht_history = PORT_READ(in_PREDICT_PREDICTOR_0_BHT_HISTORY [i]); 71 71 predictor_0_bht_direction = predictor_0_bht_history >> (_param._predictor_0_bht_size_shifter-1); 72 history = (history << _param._predictor_0_bht_size_shifter) | predictor_0_bht_history;72 history |= (predictor_0_bht_history << _param._shift_0); 73 73 } 74 74
Note: See TracChangeset
for help on using the changeset viewer.