[71] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id: RegisterFile_Monolithic_statistics_declaration.cpp 84 2008-05-13 18:04:50Z 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 | { |
---|
[75] | 19 | _stat = new Stat (static_cast<std::string>(_name), |
---|
[71] | 20 | "RegisterFile_Monolithic", |
---|
| 21 | param_statistics); |
---|
| 22 | |
---|
| 23 | _stat_nb_read = _stat->create_variable("nb_read" ); |
---|
| 24 | _stat_nb_write = _stat->create_variable("nb_write"); |
---|
| 25 | |
---|
[84] | 26 | _stat->create_expr_average_by_cycle("average_read" , "nb_read" , "", _("Average read by cycle" )); |
---|
| 27 | _stat->create_expr_average_by_cycle("average_write", "nb_write", "", _("Average write by cycle")); |
---|
[71] | 28 | |
---|
[84] | 29 | _stat->create_expr_percent ("percent_use_read" , "average_read" , toString(_param->_nb_port_read +_param->_nb_port_read_write), _("Percent read by cycle" )); |
---|
| 30 | _stat->create_expr_percent ("percent_use_write", "average_write", toString(_param->_nb_port_write+_param->_nb_port_read_write), _("Percent write by cycle")); |
---|
[71] | 31 | |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | }; // end namespace registerfile_monolithic |
---|
| 35 | }; // end namespace registerfile |
---|
| 36 | }; // end namespace generic |
---|
| 37 | }; // end namespace behavioural |
---|
| 38 | }; // end namespace morpheo |
---|
| 39 | #endif |
---|