[78] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 107 2009-02-10 23:03:25Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace decod_unit { |
---|
| 17 | namespace decod { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Decod::print" |
---|
| 22 | std::string Parameters::print (uint32_t depth) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Decod,FUNCTION,"Begin"); |
---|
| 25 | |
---|
| 26 | XML xml ("decod"); |
---|
| 27 | |
---|
| 28 | xml.balise_open("decod"); |
---|
| 29 | xml.singleton_begin("nb_context "); xml.attribut("value",toString(_nb_context )); xml.singleton_end(); |
---|
| 30 | xml.singleton_begin("nb_inst_decod "); xml.attribut("value",toString(_nb_inst_decod )); xml.singleton_end(); |
---|
[88] | 31 | // xml.singleton_begin("size_branch_update_prediction"); xml.attribut("value",toString(_size_branch_update_prediction)); xml.singleton_end(); |
---|
[78] | 32 | xml.singleton_begin("nb_context_select "); xml.attribut("value",toString(_nb_context_select )); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("size_general_data "); xml.attribut("value",toString(_size_general_data )); 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 | |
---|
| 37 | for (uint32_t i=0;i<_nb_context; i++) |
---|
| 38 | { |
---|
| 39 | xml. balise_open_begin("component"); |
---|
| 40 | xml. attribut("type","context"); |
---|
| 41 | xml. attribut("id" ,toString(i)); |
---|
| 42 | xml. balise_open_end(); |
---|
| 43 | xml. singleton_begin("nb_inst_fetch "); xml.attribut("value",toString(_nb_inst_fetch [i])); xml.singleton_end(); |
---|
[107] | 44 | xml. singleton_begin("nb_branch_speculated "); xml.attribut("value",toString(_nb_branch_speculated [i])); xml.singleton_end(); |
---|
[78] | 45 | xml. balise_close(); |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | xml.balise_close(); |
---|
| 49 | |
---|
| 50 | log_printf(FUNC,Decod,FUNCTION,"End"); |
---|
| 51 | |
---|
| 52 | return xml.get_body(depth); |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | #undef FUNCTION |
---|
| 56 | #define FUNCTION "Decod::operator<<" |
---|
| 57 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 58 | morpheo::behavioural::core::multi_front_end::front_end::decod_unit::decod::Parameters & x) |
---|
| 59 | { |
---|
| 60 | log_printf(FUNC,Decod,FUNCTION,"Begin"); |
---|
| 61 | |
---|
| 62 | output_stream << x.print(0); |
---|
| 63 | |
---|
| 64 | log_printf(FUNC,Decod,FUNCTION,"End"); |
---|
| 65 | |
---|
| 66 | return output_stream; |
---|
| 67 | }; |
---|
| 68 | |
---|
| 69 | }; // end namespace decod |
---|
| 70 | }; // end namespace decod_unit |
---|
| 71 | }; // end namespace front_end |
---|
| 72 | }; // end namespace multi_front_end |
---|
| 73 | }; // end namespace core |
---|
| 74 | |
---|
| 75 | }; // end namespace behavioural |
---|
| 76 | }; // end namespace morpheo |
---|