source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_statistics_declaration.cpp @ 146

Last change on this file since 146 was 146, checked in by rosiere, 13 years ago

1) Integration of RegisterFile_Internal_Banked in RegisterFile?
2) Erase "read_write" interface in RegisterFile_Monolithic component
3) Add smith predictor parameters in Load_store_pointer_unit.
4) Fix not statistics flags

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id: RegisterFile_Monolithic_statistics_declaration.cpp 146 2011-02-01 20:57:54Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h"
10
11namespace morpheo                    {
12namespace behavioural                {
13namespace generic                    {
14namespace registerfile               {
15namespace registerfile_monolithic    {
16
17  void RegisterFile_Monolithic::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
18  {
19    _stat = new Stat (static_cast<std::string>(_name),
20                      "RegisterFile_Monolithic",
21                      param_statistics);
22
23    if (_param->_nb_port_read>0)
24    _stat_port_read         = _stat->create_counters("port_read",_param->_nb_port_read,"",
25                                                     _("Cycle number cycle with %d read(s)."),
26                                                     _("Percent of cycle number cycle with %d read(s)."),
27                                                     _("Average of read per cycle.")
28                                                     );
29
30    if (_param->_nb_port_write>0)
31    _stat_port_write        = _stat->create_counters("port_write",_param->_nb_port_write,"",
32                                                     _("Cycle number cycle with %d write(s)."),
33                                                     _("Percent of cycle number cycle with %d write(s)."),
34                                                     _("Average of write per cycle.")
35                                                     );
36  };
37
38}; // end namespace registerfile_monolithic
39}; // end namespace registerfile
40}; // end namespace generic
41}; // end namespace behavioural         
42}; // end namespace morpheo             
43#endif
Note: See TracBrowser for help on using the repository browser.