Ignore:
Timestamp:
Mar 9, 2007, 7:16:58 PM (17 years ago)
Author:
rosiere
Message:

Ajout du composant Meta_Predictor

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  
    3535        predictor_2_pht_history   = PORT_READ(in_PREDICT_PREDICTOR_2_PHT_HISTORY [i]);
    3636        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);
    3838          }
    3939        if (_param._predictor_2_have_bht)
     
    4141        predictor_2_bht_history   = PORT_READ(in_PREDICT_PREDICTOR_2_BHT_HISTORY [i]);
    4242        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);
    4444          }
    4545
     
    5252        predictor_1_pht_history   = PORT_READ(in_PREDICT_PREDICTOR_1_PHT_HISTORY [i]);
    5353        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);
    5555          }
    5656        if (_param._predictor_1_have_bht)
     
    5858        predictor_1_bht_history   = PORT_READ(in_PREDICT_PREDICTOR_1_BHT_HISTORY [i]);
    5959        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) ;
    6161          }
    6262        if (_param._predictor_0_have_pht)
     
    6464        predictor_0_pht_history   = PORT_READ(in_PREDICT_PREDICTOR_0_PHT_HISTORY [i]);
    6565        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);
    6767          }
    6868        if (_param._predictor_0_have_bht)
     
    7070        predictor_0_bht_history   = PORT_READ(in_PREDICT_PREDICTOR_0_BHT_HISTORY [i]);
    7171        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);
    7373          }
    7474
Note: See TracChangeset for help on using the changeset viewer.