source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/src/OOO_Engine_statistics_allocation.cpp @ 88

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id: OOO_Engine_statistics_allocation.cpp 88 2008-12-10 18:31:39Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/include/OOO_Engine.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16
17
18#undef  FUNCTION
19#define FUNCTION "OOO_Engine::statistics_allocation"
20  void OOO_Engine::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics)
21  {
22    log_begin(OOO_Engine,FUNCTION);
23
24    _stat = new Stat (static_cast<std::string>(_name),
25                      "OOO_Engine",
26                      param_statistics);
27
28    for (uint32_t i=0; i<_param->_nb_rename_unit; i++)
29      _stat->add_stat(_component_rename_unit [i]->_stat);
30    _stat->add_stat(_component_commit_unit          ->_stat);
31    _stat->add_stat(_component_issue_queue          ->_stat);
32    _stat->add_stat(_component_reexecute_unit       ->_stat);   
33    _stat->add_stat(_component_special_register_unit->_stat);
34    _stat->add_stat(_component_glue                 ->_stat);
35   
36    log_end(OOO_Engine,FUNCTION);
37  };
38
39}; // end namespace ooo_engine
40}; // end namespace multi_ooo_engine
41}; // end namespace core
42
43}; // end namespace behavioural
44}; // end namespace morpheo             
45#endif
Note: See TracBrowser for help on using the repository browser.