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

Last change on this file since 138 was 138, checked in by rosiere, 14 years ago

1) add counters_t type for interface
2) fix in check load in load_store_unit
3) add parameters (but not yet implemented)
4) change environment and add script (distcc_env.sh ...)
5) add warning if an unser change rename flag with l.mtspr instruction
6) ...

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id: RegisterFile_Monolithic_statistics_declaration.cpp 138 2010-05-12 17:34:01Z 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                                                     _("Usage of read port %d."),
26                                                     _("Percent of usage read port %d."),
27                                                     _("Average of usage read port.")
28                                                     );
29
30    if (_param->_nb_port_write>0)
31    _stat_port_write        = _stat->create_counters("port_write",_param->_nb_port_write,"",
32                                                     _("Usage of write port %d."),
33                                                     _("Percent of usage write port %d."),
34                                                     _("Average of usage write port.")
35                                                     );
36    if (_param->_nb_port_read_write>0)
37    _stat_port_read_write   = _stat->create_counters("port_read_write",_param->_nb_port_read_write,"",
38                                                     _("Usage of read_write port."),
39                                                     _("Percent of usage read_write port %d."),
40                                                     _("Average of usage read_write port.")
41                                                     );
42
43    // _stat_nb_read           = _stat->create_variable("nb_read" );
44    // _stat_nb_write          = _stat->create_variable("nb_write");
45
46    // _stat->create_expr_average_by_cycle("average_read" , "nb_read" , "", _("Average read by cycle" ));
47    // _stat->create_expr_average_by_cycle("average_write", "nb_write", "", _("Average write by cycle"));
48
49    // _stat->create_expr_percent         ("percent_use_read" , "average_read" , toString(_param->_nb_port_read +_param->_nb_port_read_write), _("Percent read by cycle" ));
50    // _stat->create_expr_percent         ("percent_use_write", "average_write", toString(_param->_nb_port_write+_param->_nb_port_read_write), _("Percent write by cycle"));
51
52  };
53
54}; // end namespace registerfile_monolithic
55}; // end namespace registerfile
56}; // end namespace generic
57}; // end namespace behavioural         
58}; // end namespace morpheo             
59#endif
Note: See TracBrowser for help on using the repository browser.