[2] | 1 | #ifdef STATISTICS |
---|
[15] | 2 | #ifndef morpheo_behavioural_generic_registerfile_registerfile_monolithic_Statistics_h |
---|
| 3 | #define morpheo_behavioural_generic_registerfile_registerfile_monolithic_Statistics_h |
---|
[2] | 4 | |
---|
| 5 | /* |
---|
| 6 | * $Id$ |
---|
| 7 | * |
---|
| 8 | * [ Description ] |
---|
| 9 | * |
---|
| 10 | */ |
---|
| 11 | |
---|
[44] | 12 | #include "Common/include/Debug.h" |
---|
[2] | 13 | #include "Behavioural/include/Statistics.h" |
---|
| 14 | #include "Behavioural/include/Parameters_Statistics.h" |
---|
| 15 | #include "Behavioural/Generic/Group/include/Statistics.h" |
---|
[15] | 16 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h" |
---|
[2] | 17 | |
---|
| 18 | using namespace morpheo::behavioural::generic::group; |
---|
| 19 | |
---|
| 20 | namespace morpheo { |
---|
| 21 | namespace behavioural { |
---|
| 22 | namespace generic { |
---|
| 23 | namespace registerfile { |
---|
[15] | 24 | namespace registerfile_monolithic { |
---|
[2] | 25 | |
---|
| 26 | class Statistics : public morpheo::behavioural::Statistics |
---|
| 27 | { |
---|
| 28 | // -----[ fields ]---------------------------------------------------- |
---|
[55] | 29 | private : const Parameters * _parameters; |
---|
| 30 | private : morpheo::behavioural::generic::group::Parameters * _param_port_read; |
---|
| 31 | private : morpheo::behavioural::generic::group::Parameters * _param_port_write; |
---|
[2] | 32 | private : morpheo::behavioural::generic::group::Statistics * _stat_port_read; |
---|
| 33 | private : morpheo::behavioural::generic::group::Statistics * _stat_port_write; |
---|
| 34 | |
---|
| 35 | // -----[ methods ]--------------------------------------------------- |
---|
| 36 | public : Statistics (string name , |
---|
[55] | 37 | morpheo::behavioural::Parameters_Statistics * parameters_statistics , |
---|
| 38 | Parameters * parameters |
---|
[2] | 39 | ); |
---|
| 40 | //public : Statistics (Statistics & stat); |
---|
| 41 | public : ~Statistics () ; |
---|
| 42 | |
---|
| 43 | public : string print_body (uint32_t depth); |
---|
| 44 | public : string print (uint32_t depth); |
---|
| 45 | public : void add (uint32_t nb_read, |
---|
| 46 | uint32_t nb_write); |
---|
| 47 | |
---|
| 48 | public : friend ostream& operator<< (ostream& output_stream, |
---|
| 49 | const Statistics & x); |
---|
| 50 | |
---|
| 51 | }; |
---|
| 52 | |
---|
[15] | 53 | }; // end namespace registerfile_monolithic |
---|
[2] | 54 | }; // end namespace registerfile |
---|
| 55 | }; // end namespace generic |
---|
| 56 | }; // end namespace behavioural |
---|
| 57 | }; // end namespace morpheo |
---|
| 58 | |
---|
| 59 | #endif |
---|
| 60 | #endif |
---|