[88] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Issue_queue/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 issue_queue { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Issue_queue::print" |
---|
| 21 | std::string Parameters::print (uint32_t depth) |
---|
| 22 | { |
---|
| 23 | log_begin(Issue_queue,FUNCTION); |
---|
| 24 | |
---|
| 25 | XML xml ("issue_queue"); |
---|
| 26 | |
---|
| 27 | xml.balise_open("issue_queue"); |
---|
| 28 | xml.singleton_begin("nb_context "); xml.attribut("value",toString(_nb_context )); xml.singleton_end(); |
---|
| 29 | xml.singleton_begin("nb_front_end "); xml.attribut("value",toString(_nb_front_end )); xml.singleton_end(); |
---|
| 30 | xml.singleton_begin("nb_rename_unit "); xml.attribut("value",toString(_nb_rename_unit )); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("size_queue "); xml.attribut("value",toString(_size_queue )); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("nb_bank "); xml.attribut("value",toString(_nb_bank )); xml.singleton_end(); |
---|
| 33 | // xml.singleton_begin("size_packet "); xml.attribut("value",toString(_size_packet )); xml.singleton_end(); |
---|
| 34 | xml.singleton_begin("size_general_data "); xml.attribut("value",toString(_size_general_data )); xml.singleton_end(); |
---|
| 35 | xml.singleton_begin("size_special_data "); xml.attribut("value",toString(_size_special_data )); xml.singleton_end(); |
---|
| 36 | xml.singleton_begin("size_general_register"); xml.attribut("value",toString(_size_general_register)); xml.singleton_end(); |
---|
| 37 | xml.singleton_begin("size_special_register"); xml.attribut("value",toString(_size_special_register)); xml.singleton_end(); |
---|
| 38 | xml.singleton_begin("size_store_queue_ptr "); xml.attribut("value",toString(_size_store_queue_ptr )); xml.singleton_end(); |
---|
| 39 | xml.singleton_begin("size_load_queue_ptr "); xml.attribut("value",toString(_size_load_queue_ptr )); xml.singleton_end(); |
---|
| 40 | xml.singleton_begin("nb_inst_issue "); xml.attribut("value",toString(_nb_inst_issue )); xml.singleton_end(); |
---|
| 41 | xml.singleton_begin("nb_inst_reexecute "); xml.attribut("value",toString(_nb_inst_reexecute )); xml.singleton_end(); |
---|
| 42 | xml.singleton_begin("nb_rename_unit_select"); xml.attribut("value",toString(_nb_rename_unit_select)); xml.singleton_end(); |
---|
| 43 | xml.singleton_begin("priority "); xml.attribut("value",toString(_priority )); xml.singleton_end(); |
---|
| 44 | xml.singleton_begin("load_balancing "); xml.attribut("value",toString(_load_balancing )); xml.singleton_end(); |
---|
| 45 | for (uint32_t i=0;i<_nb_rename_unit; i++) |
---|
| 46 | { |
---|
| 47 | xml. balise_open_begin("component"); |
---|
| 48 | xml. attribut("type","rename_unit"); |
---|
| 49 | xml. attribut("id" ,toString(i)); |
---|
| 50 | xml. balise_open_end(); |
---|
| 51 | xml.singleton_begin("nb_inst_rename "); xml.attribut("value",toString(_nb_inst_rename [i])); xml.singleton_end(); |
---|
| 52 | xml. balise_close(); |
---|
| 53 | } |
---|
| 54 | xml.balise_close(); |
---|
| 55 | |
---|
| 56 | log_end(Issue_queue,FUNCTION); |
---|
| 57 | |
---|
| 58 | return xml.get_body(depth); |
---|
| 59 | }; |
---|
| 60 | |
---|
| 61 | #undef FUNCTION |
---|
| 62 | #define FUNCTION "Issue_queue::operator<<" |
---|
| 63 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 64 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::issue_queue::Parameters & x) |
---|
| 65 | { |
---|
| 66 | log_begin(Issue_queue,FUNCTION); |
---|
| 67 | |
---|
| 68 | output_stream << x.print(0); |
---|
| 69 | |
---|
| 70 | log_end(Issue_queue,FUNCTION); |
---|
| 71 | |
---|
| 72 | return output_stream; |
---|
| 73 | }; |
---|
| 74 | |
---|
| 75 | }; // end namespace issue_queue |
---|
| 76 | }; // end namespace ooo_engine |
---|
| 77 | }; // end namespace multi_ooo_engine |
---|
| 78 | }; // end namespace core |
---|
| 79 | |
---|
| 80 | }; // end namespace behavioural |
---|
| 81 | }; // end namespace morpheo |
---|