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

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit
Files:
3 added
9 edited

Legend:

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

    r113 r131  
    2323  morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,50);
    2424#endif
     25
     26  _model.set_model(MODEL_SYSTEMC, true);
    2527
    2628  Tusage_t _usage = USE_ALL;
     
    180182  TEST(Tcontrol_t, out_EVENT_ACK->read()  , true ); // can receveive an event
    181183
     184#ifdef SELFTEST
    182185  uint32_t        jump      = 7 ;// packet
    183186  uint32_t        nb_packet = 1;
     
    412415
    413416      SC_START(1);
    414      
    415417    }
     418#else
     419  SC_START(100);
     420#endif // SELFTEST
    416421
    417422  /********************************************************
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/include/Address_management.h

    r101 r131  
    167167                                               
    168168#ifdef SYSTEMC                                 
     169  public  : void        constant                  (void);
    169170  public  : void        transition                (void);
    170171  public  : void        genMoore                  (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/src/Address_management.cpp

    r123 r131  
    7474    if (usage_is_set(_usage,USE_SYSTEMC))
    7575      {
    76         // Affect output constant
    77         internal_EVENT_ACK = 1;
    78         PORT_WRITE(out_EVENT_ACK, internal_EVENT_ACK);
     76#ifdef SYSTEMCASS_SPECIFIC
     77        constant();
     78#else
     79        log_printf(INFO,Address_management,FUNCTION,"Method - constant");
     80
     81        SC_METHOD (constant);
     82//      dont_initialize ();
     83       
     84# ifdef SYSTEMCASS_SPECIFIC
     85        // List dependency information
     86# endif   
     87#endif
    7988
    8089        log_printf(INFO,Address_management,FUNCTION,"Method - transition");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/SelfTest/src/test.cpp

    r113 r131  
    107107  ALLOC0_SC_SIGNAL(out_DECOD_BRANCH_STATE                 ,"out_DECOD_BRANCH_STATE                 ",Tbranch_state_t      );
    108108  ALLOC0_SC_SIGNAL(out_DECOD_BRANCH_UPDATE_PREDICTION_ID  ,"out_DECOD_BRANCH_UPDATE_PREDICTION_ID  ",Tprediction_ptr_t    );
    109   ALLOC0_SC_SIGNAL(out_DECOD_EXCEPTION                    ,"out_DECOD_EXCEPTION                    ",Tprediction_ptr_t    );
     109  ALLOC0_SC_SIGNAL(out_DECOD_EXCEPTION                    ,"out_DECOD_EXCEPTION                    ",Texception_t         );
    110110  ALLOC0_SC_SIGNAL( in_ICACHE_RSP_VAL                     ," in_ICACHE_RSP_VAL                     ",Tcontrol_t           );
    111111  ALLOC0_SC_SIGNAL(out_ICACHE_RSP_ACK                     ,"out_ICACHE_RSP_ACK                     ",Tcontrol_t           );
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Ifetch_queue.h

    r82 r131  
    145145                                               
    146146#ifdef SYSTEMC                                 
     147  public  : void        constant                  (void);
    147148  public  : void        transition                (void);
    148149  public  : void        genMoore                  (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/src/Ifetch_queue.cpp

    r123 r131  
    7474    if (usage_is_set(_usage,USE_SYSTEMC))
    7575      {
    76         // constant output
    77         internal_ICACHE_RSP_ACK  = 1;
    78         internal_EVENT_RESET_ACK = 1;
     76        log_printf(INFO,Ifetch_queue,FUNCTION,_("<%s> Method - constant"),_name.c_str());
    7977
    80         PORT_WRITE(out_ICACHE_RSP_ACK , internal_ICACHE_RSP_ACK );
    81         PORT_WRITE(out_EVENT_RESET_ACK, internal_EVENT_RESET_ACK);
     78        SC_METHOD (constant);
     79//      dont_initialize ();
     80       
     81# ifdef SYSTEMCASS_SPECIFIC
     82        // List dependency information
     83# endif   
    8284
    8385        log_printf(INFO,Ifetch_queue,FUNCTION,_("<%s> Method - transition"),_name.c_str());
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/include/Ifetch_unit_Glue.h

    r85 r131  
    123123                                               
    124124#ifdef SYSTEMC                                 
     125  public  : void        constant                  (void);
    125126# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    126127  public  : void        transition                (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue.cpp

    r123 r131  
    7474    if (usage_is_set(_usage,USE_SYSTEMC))
    7575      {
    76         // Write constant
    77         PORT_WRITE(out_ICACHE_REQ_TYPE,ICACHE_TYPE_LOAD);
     76#ifdef SYSTEMCASS_SPECIFIC
     77        constant();
     78#else
     79        log_printf(INFO,Ifetch_unit_Glue,FUNCTION,"Method - constant");
     80
     81        SC_METHOD (constant);
     82//      dont_initialize ();
     83
     84#  ifdef SYSTEMCASS_SPECIFIC
     85        // List dependency information
     86#  endif   
     87#endif
    7888
    7989# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/src/Ifetch_unit_allocation.cpp

    r112 r131  
    156156    {
    157157      name = _name+"_address_management";
    158       log_printf(Ifetch_unit,Core,FUNCTION,_("Create   : %s"),name.c_str());
    159      
     158      log_printf(INFO,Ifetch_unit,FUNCTION,_("Create   : %s"),name.c_str());
     159   
    160160      _component_address_management = new morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::address_management::Address_management
    161161        (name.c_str()
     
    165165         ,_param->_param_address_management
    166166         ,_usage);
    167      
     167
    168168      _component->set_component (_component_address_management->_component
    169169#ifdef POSITION
     
    175175    {
    176176      name = _name+"_ifetch_queue";
    177       log_printf(Ifetch_unit,Core,FUNCTION,_("Create   : %s"),name.c_str());
    178      
     177      log_printf(INFO,Ifetch_unit,FUNCTION,_("Create   : %s"),name.c_str());
     178
    179179      _component_ifetch_queue = new morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::ifetch_queue::Ifetch_queue
    180180        (name.c_str()
     
    184184         ,_param->_param_ifetch_queue
    185185         ,_usage);
    186      
     186
    187187      _component->set_component (_component_ifetch_queue->_component
    188188#ifdef POSITION
     
    194194    {
    195195      name = _name+"_ifetch_unit_glue";
    196       log_printf(Ifetch_unit,Core,FUNCTION,_("Create   : %s"),name.c_str());
    197      
     196      log_printf(INFO,Ifetch_unit,FUNCTION,_("Create   : %s"),name.c_str());
     197
    198198      _component_ifetch_unit_glue = new morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::ifetch_unit_glue::Ifetch_unit_Glue
    199199        (name.c_str()
     
    203203         ,_param->_param_ifetch_unit_glue
    204204         ,_usage);
    205      
     205
    206206      _component->set_component (_component_ifetch_unit_glue->_component
    207207#ifdef POSITION
     
    219219    {
    220220      src = _name+"_address_management";
    221       log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str());
     221      log_printf(INFO,Ifetch_unit,FUNCTION,_("Instance : %s"),src.c_str());
    222222           
    223223      {
     
    337337    {
    338338      src = _name+"_ifetch_queue";
    339       log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str());
     339      log_printf(INFO,Ifetch_unit,FUNCTION,_("Instance : %s"),src.c_str());
    340340           
    341341      {
     
    459459    {
    460460      src = _name+"_ifetch_unit_glue";
    461       log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str());
     461      log_printf(INFO,Ifetch_unit,FUNCTION,_("Instance : %s"),src.c_str());
    462462           
    463463      {
Note: See TracChangeset for help on using the changeset viewer.