Ignore:
Timestamp:
Jul 8, 2009, 8:40:08 PM (15 years ago)
Author:
rosiere
Message:

1) add constant method
2) test with systemc 2.2.0

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/src/Two_Level_Branch_Predictor.cpp

    r111 r131  
    7272    if (usage_is_set(_usage,USE_SYSTEMC))
    7373      {
    74         // Constants :
    75         for (uint32_t i=0; i<_param->_nb_inst_predict; ++i)
    76           {
    77             internal_PREDICT_ACK [i] = 1;
    78             PORT_WRITE(out_PREDICT_ACK [i], internal_PREDICT_ACK [i]);
    79           }
    80         for (uint32_t i=0; i<_param->_nb_inst_update; ++i)
    81           {
    82             internal_UPDATE_ACK [i] = 1;
    83             PORT_WRITE(out_UPDATE_ACK [i], internal_UPDATE_ACK [i]);
    84           }
    85        
     74#ifdef SYSTEMCASS_SPECIFIC
     75        constant();
     76#else
     77        log_printf(INFO,Two_Level_Branch_Predictor,FUNCTION,_("<%s> : Method - constant"),_name.c_str());
     78
     79        SC_METHOD (constant);
     80//      dont_initialize ();
     81       
     82# ifdef SYSTEMCASS_SPECIFIC
     83        // List dependency information
     84# endif   
     85#endif
    8686
    8787        log_printf(INFO,Two_Level_Branch_Predictor,FUNCTION,_("<%s> : Method - transition"),_name.c_str());
Note: See TracChangeset for help on using the changeset viewer.