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