Ignore:
Timestamp:
Dec 19, 2008, 4:34:00 PM (16 years ago)
Author:
rosiere
Message:

1) Update Prediction Table : statistics
2) Size instruction address on 30 bits
3) Change Log File
4) Add debug_level in simulation configuration file

File:
1 edited

Legend:

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

    r95 r97  
    4242
    4343#ifdef STATISTICS
    44   morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,50);
     44  morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,CYCLE_MAX);
    4545#endif
    4646
     
    137137  ALLOC1_SC_SIGNAL(out_UPDATE_RAS_PREDICTION_IFETCH   ,"out_UPDATE_RAS_PREDICTION_IFETCH   ",Tcontrol_t         ,_param->_nb_inst_update);
    138138
    139   ALLOC1_SC_SIGNAL( in_EVENT_STATE                    ," in_EVENT_STATE                    ",Tevent_state_t     ,_param->_nb_context);
     139  ALLOC1_SC_SIGNAL( in_EVENT_VAL                      ," in_EVENT_VAL                      ",Tcontrol_t         ,_param->_nb_context);
     140  ALLOC1_SC_SIGNAL(out_EVENT_ACK                      ,"out_EVENT_ACK                      ",Tcontrol_t         ,_param->_nb_context);
    140141  ALLOC1_SC_SIGNAL( in_EVENT_TYPE                     ," in_EVENT_TYPE                     ",Tevent_type_t      ,_param->_nb_context);
    141142  ALLOC1_SC_SIGNAL( in_EVENT_DEPTH                    ," in_EVENT_DEPTH                    ",Tdepth_t           ,_param->_nb_context);
     
    230231  INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_UPDATE_RAS_INDEX               ,_param->_nb_inst_update);
    231232  INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_UPDATE_RAS_PREDICTION_IFETCH   ,_param->_nb_inst_update);
    232   INSTANCE1_SC_SIGNAL(_Update_Prediction_Table, in_EVENT_STATE                    ,_param->_nb_context);
     233  INSTANCE1_SC_SIGNAL(_Update_Prediction_Table, in_EVENT_VAL                      ,_param->_nb_context);
     234  INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_EVENT_ACK                      ,_param->_nb_context);
    233235  INSTANCE1_SC_SIGNAL(_Update_Prediction_Table, in_EVENT_TYPE                     ,_param->_nb_context);
    234236  if (_param->_have_port_depth)
     
    316318        in_UPDATE_ACK          [i]->write(0);
    317319      for (uint32_t i=0; i<_param->_nb_context; ++i)
    318         {
    319         in_EVENT_STATE [i]->write(EVENT_STATE_NO_EVENT);
    320         in_EVENT_TYPE  [i]->write(EVENT_TYPE_NONE     );
    321         }
     320        in_EVENT_VAL   [i]->write(0);
     321
    322322      //---------------------------------------------------------------------
    323323      //---------------------------------------------------------------------
     
    932932         
    933933          SC_START(1);
    934           in_EVENT_STATE [context]->write(EVENT_STATE_END            );
     934          in_EVENT_VAL   [context]->write(1);
    935935          in_EVENT_TYPE  [context]->write(EVENT_TYPE_MISS_SPECULATION);
    936936
    937937          SC_START(1);
    938           in_EVENT_STATE [context]->write(EVENT_STATE_NO_EVENT       );
     938          in_EVENT_VAL   [context]->write(0);
    939939          in_EVENT_TYPE  [context]->write(EVENT_TYPE_NONE            );
    940940        }
     
    13661366         
    13671367          SC_START(1);
    1368           in_EVENT_STATE [context]->write(EVENT_STATE_END            );
     1368          in_EVENT_VAL   [context]->write(1);
    13691369          in_EVENT_TYPE  [context]->write(EVENT_TYPE_MISS_SPECULATION);
    13701370
    13711371          SC_START(1);
    1372           in_EVENT_STATE [context]->write(EVENT_STATE_NO_EVENT       );
     1372          in_EVENT_VAL   [context]->write(0);
    13731373          in_EVENT_TYPE  [context]->write(EVENT_TYPE_NONE            );
    13741374        }
     
    19741974           
    19751975            SC_START(1);
    1976             in_EVENT_STATE [context]->write(EVENT_STATE_END            );
     1976            in_EVENT_VAL   [context]->write(1);
    19771977            in_EVENT_TYPE  [context]->write(EVENT_TYPE_MISS_SPECULATION);
    19781978           
    19791979            SC_START(1);
    1980             in_EVENT_STATE [context]->write(EVENT_STATE_NO_EVENT       );
     1980            in_EVENT_VAL   [context]->write(0);
    19811981            in_EVENT_TYPE  [context]->write(EVENT_TYPE_NONE            );
    19821982          }
     
    21552155  delete [] out_UPDATE_RAS_PREDICTION_IFETCH;
    21562156
    2157   DELETE1_SC_SIGNAL( in_EVENT_STATE                    ,_param->_nb_context);
     2157  DELETE1_SC_SIGNAL( in_EVENT_VAL                      ,_param->_nb_context);
     2158  DELETE1_SC_SIGNAL(out_EVENT_ACK                      ,_param->_nb_context);
    21582159  DELETE1_SC_SIGNAL( in_EVENT_TYPE                     ,_param->_nb_context);
    21592160  DELETE1_SC_SIGNAL( in_EVENT_DEPTH                    ,_param->_nb_context);
Note: See TracChangeset for help on using the changeset viewer.