[88] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_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 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Rename_unit::print" |
---|
| 21 | std::string Parameters::print (uint32_t depth) |
---|
| 22 | { |
---|
| 23 | log_begin(Rename_unit,FUNCTION); |
---|
| 24 | |
---|
| 25 | XML xml ("rename_unit"); |
---|
| 26 | |
---|
| 27 | xml.balise_open("rename_unit"); |
---|
| 28 | xml.singleton_begin("nb_front_end "); xml.attribut("value",toString(_nb_front_end )); xml.singleton_end(); |
---|
| 29 | xml.singleton_begin("nb_inst_insert "); xml.attribut("value",toString(_nb_inst_insert )); xml.singleton_end(); |
---|
| 30 | xml.singleton_begin("nb_inst_retire "); xml.attribut("value",toString(_nb_inst_retire )); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("nb_load_store_queue "); xml.attribut("value",toString(_nb_load_store_queue )); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("rename_select_priority "); xml.attribut("value",toString(_rename_select_priority )); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("rename_select_load_balancing "); xml.attribut("value",toString(_rename_select_load_balancing )); xml.singleton_end(); |
---|
| 34 | xml.singleton_begin("rename_select_nb_front_end_select"); xml.attribut("value",toString(_rename_select_nb_front_end_select)); xml.singleton_end(); |
---|
| 35 | xml.singleton_begin("max_branch_speculated "); xml.attribut("value",toString(_max_branch_speculated )); xml.singleton_end(); |
---|
| 36 | xml.singleton_begin("size_general_data "); xml.attribut("value",toString(_size_general_data )); xml.singleton_end(); |
---|
| 37 | xml.singleton_begin("nb_general_register "); xml.attribut("value",toString(_nb_general_register )); xml.singleton_end(); |
---|
| 38 | xml.singleton_begin("nb_special_register "); xml.attribut("value",toString(_nb_special_register )); xml.singleton_end(); |
---|
| 39 | xml.singleton_begin("nb_reg_free "); xml.attribut("value",toString(_nb_reg_free )); xml.singleton_end(); |
---|
| 40 | xml.singleton_begin("nb_bank "); xml.attribut("value",toString(_nb_bank )); xml.singleton_end(); |
---|
[112] | 41 | // xml.singleton_begin("size_read_counter "); xml.attribut("value",toString(_size_read_counter )); xml.singleton_end(); |
---|
[88] | 42 | |
---|
| 43 | for (uint32_t i=0;i<_nb_front_end; i++) |
---|
| 44 | { |
---|
| 45 | xml. balise_open_begin("component"); |
---|
| 46 | xml. attribut("type","front_end"); |
---|
| 47 | xml. attribut("id" ,toString(i)); |
---|
| 48 | xml. balise_open_end(); |
---|
| 49 | xml.singleton_begin("nb_context "); xml.attribut("value",toString(_nb_context [i])); xml.singleton_end(); |
---|
| 50 | xml.singleton_begin("nb_inst_decod "); xml.attribut("value",toString(_nb_inst_decod [i])); xml.singleton_end(); |
---|
| 51 | |
---|
| 52 | for (uint32_t j=0;j<_nb_context[i]; j++) |
---|
| 53 | { |
---|
| 54 | xml. balise_open_begin("component"); |
---|
| 55 | xml. attribut("type","context"); |
---|
| 56 | xml. attribut("id" ,toString(j)); |
---|
| 57 | xml. balise_open_end(); |
---|
| 58 | |
---|
| 59 | xml.singleton_begin("link_load_store_unit_with_thread "); xml.attribut("value",toString(_link_load_store_unit_with_thread [i][j])); xml.singleton_end(); |
---|
| 60 | |
---|
| 61 | xml. balise_close(); |
---|
| 62 | } |
---|
| 63 | |
---|
| 64 | xml. balise_close(); |
---|
| 65 | } |
---|
| 66 | |
---|
| 67 | for (uint32_t i=0;i<_nb_load_store_queue; i++) |
---|
| 68 | { |
---|
| 69 | xml. balise_open_begin("component"); |
---|
| 70 | xml. attribut("type","load_store_queue"); |
---|
| 71 | xml. attribut("id" ,toString(i)); |
---|
| 72 | xml. balise_open_end(); |
---|
| 73 | |
---|
| 74 | xml.singleton_begin("size_store_queue "); xml.attribut("value",toString(_size_store_queue [i])); xml.singleton_end(); |
---|
| 75 | xml.singleton_begin("size_load_queue "); xml.attribut("value",toString(_size_load_queue [i])); xml.singleton_end(); |
---|
| 76 | |
---|
| 77 | xml. balise_close(); |
---|
| 78 | } |
---|
| 79 | |
---|
| 80 | xml.balise_close(); |
---|
| 81 | |
---|
| 82 | log_end(Rename_unit,FUNCTION); |
---|
| 83 | |
---|
| 84 | return xml.get_body(depth); |
---|
| 85 | }; |
---|
| 86 | |
---|
| 87 | #undef FUNCTION |
---|
| 88 | #define FUNCTION "Rename_unit::operator<<" |
---|
| 89 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 90 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::Parameters & x) |
---|
| 91 | { |
---|
| 92 | log_begin(Rename_unit,FUNCTION); |
---|
| 93 | |
---|
| 94 | output_stream << x.print(0); |
---|
| 95 | |
---|
| 96 | log_end(Rename_unit,FUNCTION); |
---|
| 97 | |
---|
| 98 | return output_stream; |
---|
| 99 | }; |
---|
| 100 | |
---|
| 101 | }; // end namespace rename_unit |
---|
| 102 | }; // end namespace ooo_engine |
---|
| 103 | }; // end namespace multi_ooo_engine |
---|
| 104 | }; // end namespace core |
---|
| 105 | |
---|
| 106 | }; // end namespace behavioural |
---|
| 107 | }; // end namespace morpheo |
---|