Ignore:
Timestamp:
Mar 18, 2009, 11:36:26 PM (15 years ago)
Author:
rosiere
Message:

1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/SelfTest/src/test.cpp

    r111 r112  
    6363  ALLOC1_SC_SIGNAL( in_UPDATE_ADDRESS       ," in_UPDATE_ADDRESS       ",Taddress_t,_param->_nb_inst_update);
    6464  ALLOC1_SC_SIGNAL( in_UPDATE_HISTORY       ," in_UPDATE_HISTORY       ",Thistory_t,_param->_nb_inst_update);
     65  ALLOC1_SC_SIGNAL( in_UPDATE_HISTORY_VAL   ," in_UPDATE_HISTORY_VAL   ",Tcontrol_t,_param->_nb_inst_update);
    6566  ALLOC1_SC_SIGNAL( in_UPDATE_DIRECTION     ," in_UPDATE_DIRECTION     ",Tcontrol_t,_param->_nb_inst_update);
    6667  ALLOC1_SC_SIGNAL( in_UPDATE_MISS          ," in_UPDATE_MISS          ",Tcontrol_t,_param->_nb_inst_update);
     
    9091  INSTANCE1_SC_SIGNAL(_Two_Level_Branch_Predictor, in_UPDATE_ADDRESS       ,_param->_nb_inst_update);
    9192  INSTANCE1_SC_SIGNAL(_Two_Level_Branch_Predictor, in_UPDATE_HISTORY       ,_param->_nb_inst_update);
     93  INSTANCE1_SC_SIGNAL(_Two_Level_Branch_Predictor, in_UPDATE_HISTORY_VAL   ,_param->_nb_inst_update);
    9294  INSTANCE1_SC_SIGNAL(_Two_Level_Branch_Predictor, in_UPDATE_DIRECTION     ,_param->_nb_inst_update);
    9395  if (_param->_update_on_prediction)
     
    155157              {
    156158                bool val = ((rand()%2)<percent_transaction_update);
    157                 in_UPDATE_VAL       [port]->write(val);
    158                 in_UPDATE_DIRECTION [port]->write(0);
     159                in_UPDATE_VAL         [port]->write(val);
     160                in_UPDATE_DIRECTION   [port]->write(0);
    159161               
    160162                if (_param->_update_on_prediction)
    161                   in_UPDATE_MISS      [port]->write(1); // miss
    162                 in_UPDATE_HISTORY   [port]->write(0);
    163                 in_UPDATE_ADDRESS   [port]->write(bht_num_reg);
     163                in_UPDATE_MISS        [port]->write(1); // miss
     164                in_UPDATE_HISTORY     [port]->write(0);
     165                in_UPDATE_HISTORY_VAL [port]->write(0);
     166                in_UPDATE_ADDRESS     [port]->write(bht_num_reg);
    164167               
    165168                SC_START(0);
     
    185188                  {
    186189                    bool val = ((rand()%2)<percent_transaction_update);
    187                     in_UPDATE_VAL       [port]->write(val);
    188                     in_UPDATE_DIRECTION [port]->write(0);
     190                    in_UPDATE_VAL         [port]->write(val);
     191                    in_UPDATE_DIRECTION   [port]->write(0);
    189192                   
    190193                    if (_param->_update_on_prediction)
    191                       in_UPDATE_MISS      [port]->write(1); // miss
    192                     in_UPDATE_HISTORY   [port]->write(i<<_param->_bht_history_rshift);
    193                     in_UPDATE_ADDRESS   [port]->write(pht_num_bank<<_param->_pht_address_bank_rshift);
     194                      in_UPDATE_MISS        [port]->write(1); // miss
     195                    in_UPDATE_HISTORY     [port]->write(i<<_param->_bht_history_rshift);
     196                    in_UPDATE_HISTORY_VAL [port]->write(1);
     197                    in_UPDATE_ADDRESS     [port]->write(pht_num_bank<<_param->_pht_address_bank_rshift);
    194198                   
    195199                    SC_START(0);
     
    241245  DELETE1_SC_SIGNAL( in_UPDATE_ADDRESS       ,_param->_nb_inst_update);
    242246  DELETE1_SC_SIGNAL( in_UPDATE_HISTORY       ,_param->_nb_inst_update);
     247  DELETE1_SC_SIGNAL( in_UPDATE_HISTORY_VAL   ,_param->_nb_inst_update);
    243248  DELETE1_SC_SIGNAL( in_UPDATE_DIRECTION     ,_param->_nb_inst_update);
    244249  DELETE1_SC_SIGNAL( in_UPDATE_MISS          ,_param->_nb_inst_update);
Note: See TracChangeset for help on using the changeset viewer.