source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_statistics_declaration.cpp @ 75

Last change on this file since 75 was 75, checked in by rosiere, 16 years ago

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File size: 1.2 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace register_unit {
17
18#undef  FUNCTION
19#define FUNCTION "Register_unit::statistics_declaration"
20  void Register_unit::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
21  {
22    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
23
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
37    log_printf(FUNC,Register_unit,FUNCTION,"End");
38  };
39
40}; // end namespace register_unit
41}; // end namespace execute_loop
42}; // end namespace multi_execute_loop
43}; // end namespace core
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
47#endif
Note: See TracBrowser for help on using the repository browser.