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

    r123 r131  
    8484            // no need update
    8585            need_genmealy_update = false;
    86             for (uint32_t i=0; i<_param->_nb_inst_update; i++)
    87               PORT_WRITE(out_UPDATE_ACK [i], 1);
    8886
    8987            // always ack
    9088            for (uint32_t i=0; i<_param->_nb_inst_predict; i++)
    9189              {
    92                 PORT_WRITE(out_PREDICT_ACK [i], 1);
    93                
    9490                // constant direction : never / always
    9591                switch (_param->_predictor_scheme)
     
    9894                    {
    9995                      need_genmealy_predict = false;
    100                       PORT_WRITE(out_PREDICT_DIRECTION [i], 0);
    10196                      break;
    10297                    }
     
    10499                    {
    105100                      need_genmealy_predict = false;
    106                       PORT_WRITE(out_PREDICT_DIRECTION [i], 1);
    107101                      break;
    108102                    }
     
    111105              }
    112106          }
     107
     108#ifdef SYSTEMCASS_SPECIFIC
     109        constant();
     110#else
     111        log_printf(INFO,Direction_Glue,FUNCTION,"Method - constant");
     112       
     113        SC_METHOD (constant);
     114//      dont_initialize ();
     115       
     116#  ifdef SYSTEMCASS_SPECIFIC
     117        // List dependency information
     118#  endif   
     119#endif
    113120
    114121# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
Note: See TracChangeset for help on using the changeset viewer.