Last change
on this file since 59 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[15] | 9 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Statistics.h" |
---|
[2] | 10 | |
---|
| 11 | #include <sstream> |
---|
| 12 | using namespace std; |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | namespace generic { |
---|
| 17 | namespace registerfile { |
---|
[15] | 18 | namespace registerfile_monolithic { |
---|
[2] | 19 | |
---|
| 20 | string Statistics::print (uint32_t depth) |
---|
| 21 | { |
---|
| 22 | string tab = string(depth,'\t'); |
---|
| 23 | ostringstream msg; |
---|
| 24 | |
---|
[15] | 25 | msg << tab << "<registerfile_monolithic name=\"" << _name << "\" >" << endl |
---|
[2] | 26 | << print_body(depth+1) |
---|
[15] | 27 | << tab << "</RegisterFile_Monolithic>" << endl; |
---|
[2] | 28 | |
---|
| 29 | return msg.str(); |
---|
| 30 | }; |
---|
| 31 | |
---|
| 32 | ostream& operator<< (ostream& output_stream , |
---|
[15] | 33 | morpheo::behavioural::generic::registerfile::registerfile_monolithic::Statistics & x) |
---|
[2] | 34 | { |
---|
| 35 | output_stream << x.print(0); |
---|
| 36 | |
---|
| 37 | return output_stream; |
---|
| 38 | }; |
---|
| 39 | |
---|
[15] | 40 | }; // end namespace registerfile_monolithic |
---|
[2] | 41 | }; // end namespace registerfile |
---|
| 42 | }; // end namespace generic |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.