[55] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | using namespace std; |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace core { |
---|
| 15 | namespace multi_execute_loop { |
---|
| 16 | namespace execute_loop { |
---|
| 17 | namespace multi_read_unit { |
---|
| 18 | namespace read_unit { |
---|
| 19 | namespace reservation_station { |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #undef FUNCTION |
---|
| 23 | #define FUNCTION "Reservation_station::print" |
---|
| 24 | string Parameters::print (uint32_t depth) |
---|
| 25 | { |
---|
| 26 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
| 27 | |
---|
| 28 | XML xml ("reservation_station"); |
---|
| 29 | |
---|
| 30 | xml.balise_open("reservation_station"); |
---|
| 31 | xml.singleton_begin("size_queue "); xml.attribut("value",toString(_size_queue )); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("nb_context "); xml.attribut("value",toString(_nb_context )); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("nb_packet "); xml.attribut("value",toString(_nb_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("nb_general_register"); xml.attribut("value",toString(_nb_general_register)); xml.singleton_end(); |
---|
| 37 | xml.singleton_begin("nb_special_register"); xml.attribut("value",toString(_nb_special_register)); xml.singleton_end(); |
---|
| 38 | xml.singleton_begin("nb_operation "); xml.attribut("value",toString(_nb_operation )); xml.singleton_end(); |
---|
| 39 | xml.singleton_begin("nb_type "); xml.attribut("value",toString(_nb_type )); xml.singleton_end(); |
---|
| 40 | xml.singleton_begin("nb_gpr_write "); xml.attribut("value",toString(_nb_gpr_write )); xml.singleton_end(); |
---|
| 41 | xml.singleton_begin("nb_spr_write "); xml.attribut("value",toString(_nb_spr_write )); xml.singleton_end(); |
---|
| 42 | xml.singleton_begin("nb_bypass_write "); xml.attribut("value",toString(_nb_bypass_write )); xml.singleton_end(); |
---|
| 43 | xml.singleton_begin("nb_bypass_memory "); xml.attribut("value",toString(_nb_bypass_memory )); xml.singleton_end(); |
---|
| 44 | xml.balise_close(); |
---|
| 45 | |
---|
| 46 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
| 47 | |
---|
| 48 | return xml.get_body(depth); |
---|
| 49 | }; |
---|
| 50 | |
---|
| 51 | #undef FUNCTION |
---|
| 52 | #define FUNCTION "Reservation_station::operator<<" |
---|
| 53 | ostream& operator<< (ostream& output_stream , |
---|
| 54 | morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x) |
---|
| 55 | { |
---|
| 56 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
| 57 | |
---|
| 58 | output_stream << x.print(0); |
---|
| 59 | |
---|
| 60 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
| 61 | |
---|
| 62 | return output_stream; |
---|
| 63 | }; |
---|
| 64 | |
---|
| 65 | }; // end namespace reservation_station |
---|
| 66 | }; // end namespace read_unit |
---|
| 67 | }; // end namespace multi_read_unit |
---|
| 68 | }; // end namespace execute_loop |
---|
| 69 | }; // end namespace multi_execute_loop |
---|
| 70 | }; // end namespace core |
---|
| 71 | |
---|
| 72 | }; // end namespace behavioural |
---|
| 73 | }; // end namespace morpheo |
---|