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/Load_Store_pointer_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 load_store_pointer_unit { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Load_Store_pointer_unit::print" |
---|
22 | std::string Parameters::print (uint32_t depth) |
---|
23 | { |
---|
24 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | XML xml ("load_store_pointer_unit"); |
---|
27 | |
---|
28 | xml.balise_open("load_store_pointer_unit"); |
---|
29 | xml.singleton_begin("nb_front_end "); xml.attribut("value",toString(_nb_front_end )); xml.singleton_end(); |
---|
30 | xml.singleton_begin("nb_inst_insert "); xml.attribut("value",toString(_nb_inst_insert )); xml.singleton_end(); |
---|
31 | xml.singleton_begin("nb_inst_retire "); xml.attribut("value",toString(_nb_inst_retire )); xml.singleton_end(); |
---|
32 | xml.singleton_begin("nb_load_store_queue "); xml.attribut("value",toString(_nb_load_store_queue )); xml.singleton_end(); |
---|
33 | for (uint32_t i=0;i<_nb_front_end; i++) |
---|
34 | { |
---|
35 | xml. balise_open_begin("component"); |
---|
36 | xml. attribut("type","front_end"); |
---|
37 | xml. attribut("id" ,toString(i)); |
---|
38 | xml. balise_open_end(); |
---|
39 | xml. singleton_begin("nb_context "); xml.attribut("value",toString(_nb_context [i] )); xml.singleton_end(); |
---|
40 | xml. balise_close(); |
---|
41 | } |
---|
42 | for (uint32_t i=0;i<_nb_load_store_queue; i++) |
---|
43 | { |
---|
44 | xml. balise_open_begin("component"); |
---|
45 | xml. attribut("type","load_store_queue"); |
---|
46 | xml. attribut("id" ,toString(i)); |
---|
47 | xml. balise_open_end(); |
---|
48 | xml. singleton_begin("size_store_queue "); xml.attribut("value",toString(_size_store_queue [i])); xml.singleton_end(); |
---|
49 | xml. singleton_begin("size_load_queue "); xml.attribut("value",toString(_size_load_queue [i])); xml.singleton_end(); |
---|
50 | xml. balise_close(); |
---|
51 | } |
---|
52 | xml.balise_close(); |
---|
53 | |
---|
54 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End"); |
---|
55 | |
---|
56 | return xml.get_body(depth); |
---|
57 | }; |
---|
58 | |
---|
59 | #undef FUNCTION |
---|
60 | #define FUNCTION "Load_Store_pointer_unit::operator<<" |
---|
61 | std::ostream& operator<< (std::ostream& output_stream , |
---|
62 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::load_store_pointer_unit::Parameters & x) |
---|
63 | { |
---|
64 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin"); |
---|
65 | |
---|
66 | output_stream << x.print(0); |
---|
67 | |
---|
68 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End"); |
---|
69 | |
---|
70 | return output_stream; |
---|
71 | }; |
---|
72 | |
---|
73 | }; // end namespace load_store_pointer_unit |
---|
74 | }; // end namespace rename_unit |
---|
75 | }; // end namespace ooo_engine |
---|
76 | }; // end namespace multi_ooo_engine |
---|
77 | }; // end namespace core |
---|
78 | |
---|
79 | }; // end namespace behavioural |
---|
80 | }; // end namespace morpheo |
---|