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 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace registerfile { |
---|
15 | namespace 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 |
---|