[10] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[15] | 8 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/Parameters.h" |
---|
[10] | 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | using namespace std; |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
[15] | 15 | namespace registerfile{ |
---|
[10] | 16 | namespace registerfile_multi_banked { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | string Parameters::print (uint32_t depth) |
---|
| 20 | { |
---|
| 21 | log_printf(FUNC,RegisterFile_Multi_Banked,"print","Begin"); |
---|
| 22 | |
---|
| 23 | XML xml ("registerfile_multi_banked"); |
---|
| 24 | |
---|
| 25 | xml.balise_open("registerfile_multi_banked"); |
---|
| 26 | xml.singleton_begin("nb_port_read "); xml.attribut("value",toString(_nb_port_read )); xml.singleton_end(); |
---|
| 27 | xml.singleton_begin("nb_port_write"); xml.attribut("value",toString(_nb_port_write)); xml.singleton_end(); |
---|
| 28 | xml.singleton_begin("nb_word "); xml.attribut("value",toString(_nb_word )); xml.singleton_end(); |
---|
| 29 | xml.singleton_begin("size_word "); xml.attribut("value",toString(_size_word )); xml.singleton_end(); |
---|
| 30 | xml.singleton_begin("nb_bank "); xml.attribut("value",toString(_nb_bank )); xml.singleton_end(); |
---|
| 31 | xml.balise_close(); |
---|
| 32 | |
---|
| 33 | log_printf(FUNC,RegisterFile_Multi_Banked,"print","End"); |
---|
| 34 | |
---|
| 35 | return xml.get_body(depth); |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | ostream& operator<< (ostream& output_stream , |
---|
[15] | 39 | morpheo::behavioural::generic::registerfile::registerfile_multi_banked::Parameters & x) |
---|
[10] | 40 | { |
---|
| 41 | output_stream << x.print(0); |
---|
| 42 | |
---|
| 43 | return output_stream; |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | }; // end namespace registerfile_multi_banked |
---|
[15] | 47 | }; // end namespace registerfile |
---|
[10] | 48 | }; // end namespace generic |
---|
| 49 | |
---|
| 50 | }; // end namespace behavioural |
---|
| 51 | }; // end namespace morpheo |
---|