[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/Rename_select/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 rename_select { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Rename_select::print" |
---|
| 22 | std::string Parameters::print (uint32_t depth) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Rename_select,FUNCTION,"Begin"); |
---|
| 25 | |
---|
| 26 | XML xml ("rename_select"); |
---|
| 27 | |
---|
| 28 | xml.balise_open("rename_select"); |
---|
| 29 | xml.singleton_begin("nb_front_end "); xml.attribut("value",toString(_nb_front_end )); xml.singleton_end(); |
---|
| 30 | xml.singleton_begin("max_branch_speculated"); xml.attribut("value",toString(_max_branch_speculated)); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("size_general_data "); xml.attribut("value",toString(_size_general_data )); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("nb_inst_rename "); xml.attribut("value",toString(_nb_inst_rename )); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("nb_front_end_select "); xml.attribut("value",toString(_nb_front_end_select )); xml.singleton_end(); |
---|
| 34 | xml.singleton_begin("priority "); xml.attribut("value",toString(_priority )); xml.singleton_end(); |
---|
| 35 | xml.singleton_begin("load_balancing "); xml.attribut("value",toString(_load_balancing )); xml.singleton_end(); |
---|
| 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. singleton_begin("nb_inst_decod "); xml.attribut("value",toString(_nb_inst_decod [i])); xml.singleton_end(); |
---|
| 44 | xml. balise_close(); |
---|
| 45 | } |
---|
| 46 | xml.balise_close(); |
---|
| 47 | |
---|
| 48 | log_printf(FUNC,Rename_select,FUNCTION,"End"); |
---|
| 49 | |
---|
| 50 | return xml.get_body(depth); |
---|
| 51 | }; |
---|
| 52 | |
---|
| 53 | #undef FUNCTION |
---|
| 54 | #define FUNCTION "Rename_select::operator<<" |
---|
| 55 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 56 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::rename_select::Parameters & x) |
---|
| 57 | { |
---|
| 58 | log_printf(FUNC,Rename_select,FUNCTION,"Begin"); |
---|
| 59 | |
---|
| 60 | output_stream << x.print(0); |
---|
| 61 | |
---|
| 62 | log_printf(FUNC,Rename_select,FUNCTION,"End"); |
---|
| 63 | |
---|
| 64 | return output_stream; |
---|
| 65 | }; |
---|
| 66 | |
---|
| 67 | }; // end namespace rename_select |
---|
| 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 |
---|