[78] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace rename_unit { |
---|
| 17 | namespace register_translation_unit { |
---|
| 18 | namespace register_address_translation_unit { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Register_Address_Translation_unit::print" |
---|
| 23 | std::string Parameters::print (uint32_t depth) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | XML xml ("register_address_translation_unit"); |
---|
| 28 | |
---|
| 29 | xml.balise_open("register_address_translation_unit"); |
---|
| 30 | xml.singleton_begin("nb_front_end "); xml.attribut("value",toString(_nb_front_end )); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("nb_general_register"); xml.attribut("value",toString(_nb_general_register)); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("nb_special_register"); xml.attribut("value",toString(_nb_special_register)); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("nb_inst_insert "); xml.attribut("value",toString(_nb_inst_insert )); xml.singleton_end(); |
---|
| 34 | xml.singleton_begin("nb_inst_retire "); xml.attribut("value",toString(_nb_inst_retire )); xml.singleton_end(); |
---|
| 35 | |
---|
| 36 | for (uint32_t i=0;i<_nb_front_end; i++) |
---|
| 37 | { |
---|
| 38 | xml. balise_open_begin("component"); |
---|
| 39 | xml. attribut("type","front_end"); |
---|
| 40 | xml. attribut("id" ,toString(i)); |
---|
| 41 | xml. balise_open_end(); |
---|
| 42 | xml. singleton_begin("nb_context "); xml.attribut("value",toString(_nb_context [i] )); xml.singleton_end(); |
---|
| 43 | xml. balise_close(); |
---|
| 44 | } |
---|
| 45 | xml.balise_close(); |
---|
| 46 | |
---|
| 47 | log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End"); |
---|
| 48 | |
---|
| 49 | return xml.get_body(depth); |
---|
| 50 | }; |
---|
| 51 | |
---|
| 52 | #undef FUNCTION |
---|
| 53 | #define FUNCTION "Register_Address_Translation_unit::operator<<" |
---|
| 54 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 55 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Parameters & x) |
---|
| 56 | { |
---|
| 57 | log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin"); |
---|
| 58 | |
---|
| 59 | output_stream << x.print(0); |
---|
| 60 | |
---|
| 61 | log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End"); |
---|
| 62 | |
---|
| 63 | return output_stream; |
---|
| 64 | }; |
---|
| 65 | |
---|
| 66 | }; // end namespace register_address_translation_unit |
---|
| 67 | }; // end namespace register_translation_unit |
---|
| 68 | }; // end namespace rename_unit |
---|
| 69 | }; // end namespace ooo_engine |
---|
| 70 | }; // end namespace multi_ooo_engine |
---|
| 71 | }; // end namespace core |
---|
| 72 | |
---|
| 73 | }; // end namespace behavioural |
---|
| 74 | }; // end namespace morpheo |
---|