[2] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <stdint.h> |
---|
[15] | 9 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h" |
---|
[75] | 10 | #include "Behavioural/include/XML.h" |
---|
[2] | 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace registerfile { |
---|
[15] | 16 | namespace registerfile_monolithic { |
---|
[2] | 17 | |
---|
[75] | 18 | std::string Parameters::print (uint32_t depth) |
---|
[2] | 19 | { |
---|
[75] | 20 | XML xml ("registerfile_monolithic"); |
---|
| 21 | |
---|
| 22 | xml.balise_open("registerfile_monolithic"); |
---|
| 23 | xml.singleton_begin("nb_port_read "); xml.attribut("value",toString(_nb_port_read )); xml.singleton_end(); |
---|
| 24 | xml.singleton_begin("nb_port_write "); xml.attribut("value",toString(_nb_port_write )); xml.singleton_end(); |
---|
| 25 | xml.singleton_begin("nb_port_read_write"); xml.attribut("value",toString(_nb_port_read_write)); xml.singleton_end(); |
---|
| 26 | xml.singleton_begin("nb_word "); xml.attribut("value",toString(_nb_word )); xml.singleton_end(); |
---|
| 27 | xml.singleton_begin("size_word "); xml.attribut("value",toString(_size_word )); xml.singleton_end(); |
---|
| 28 | xml.balise_close(); |
---|
| 29 | |
---|
| 30 | return xml.get_body(depth); |
---|
[2] | 31 | }; |
---|
| 32 | |
---|
[75] | 33 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 34 | morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters & x) |
---|
[2] | 35 | { |
---|
| 36 | output_stream << x.print(0); |
---|
| 37 | |
---|
| 38 | return output_stream; |
---|
| 39 | }; |
---|
| 40 | |
---|
[15] | 41 | }; // end namespace registerfile_monolithic |
---|
[2] | 42 | }; // end namespace registerfile |
---|
| 43 | }; // end namespace generic |
---|
| 44 | }; // end namespace behavioural |
---|
| 45 | }; // end namespace morpheo |
---|