Ignore:
Timestamp:
Jan 31, 2008, 6:46:41 PM (16 years ago)
Author:
rosiere
Message:

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_statistics_declaration.cpp

    r60 r75  
    1616namespace register_unit {
    1717
    18 
    1918#undef  FUNCTION
    20 #define FUNCTION "Register_unit::statistics"
    21   string Register_unit::statistics (uint32_t depth)
     19#define FUNCTION "Register_unit::statistics_declaration"
     20  void Register_unit::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
    2221  {
    2322    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    2423
    25     string txt = _stat->print(depth);
    26    
     24    _stat = new Stat (static_cast<std::string>(_name),
     25                      "Register_unit",
     26                      param_statistics);
     27
     28    for (uint32_t i=0; i<_param->_nb_ooo_engine; i++)
     29      {
     30        _stat->add_stat(component_gpr       [i]->_stat);
     31        _stat->add_stat(component_gpr_status[i]->_stat);
     32        _stat->add_stat(component_spr       [i]->_stat);
     33        _stat->add_stat(component_spr_status[i]->_stat);
     34      }
     35    _stat->add_stat(component_glue->_stat);
     36
    2737    log_printf(FUNC,Register_unit,FUNCTION,"End");
    28 
    29     return txt;
    3038  };
    3139
Note: See TracChangeset for help on using the changeset viewer.