Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <stdint.h> |
---|
| 9 | #include "Behavioural/Generic/RegisterFile/include/Parameters.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | using namespace std; |
---|
| 12 | |
---|
| 13 | namespace morpheo { |
---|
| 14 | namespace behavioural { |
---|
| 15 | namespace generic { |
---|
| 16 | namespace registerfile { |
---|
| 17 | |
---|
| 18 | string Parameters::print (uint32_t depth) |
---|
| 19 | { |
---|
| 20 | string tab = string(depth,'\t'); |
---|
| 21 | ostringstream msg; |
---|
| 22 | msg << tab << "<registerfile>" << endl |
---|
| 23 | << tab << "\t<nb_port_read value=\"" << _nb_port_read << "\" />" << endl |
---|
| 24 | << tab << "\t<nb_port_write value=\"" << _nb_port_write << "\" />" << endl |
---|
| 25 | << tab << "\t<nb_word value=\"" << _nb_word << "\" />" << endl |
---|
| 26 | << tab << "\t<size_word value=\"" << _size_word << "\" />" << endl |
---|
| 27 | << tab << "</registerfile>" << endl; |
---|
| 28 | |
---|
| 29 | return msg.str(); |
---|
| 30 | }; |
---|
| 31 | |
---|
| 32 | ostream& operator<< (ostream& output_stream , |
---|
| 33 | morpheo::behavioural::generic::registerfile::Parameters & x) |
---|
| 34 | { |
---|
| 35 | output_stream << x.print(0); |
---|
| 36 | |
---|
| 37 | return output_stream; |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace registerfile |
---|
| 41 | }; // end namespace generic |
---|
| 42 | }; // end namespace behavioural |
---|
| 43 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.