[78] | 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_Front_end/Front_end/Ifetch_unit/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 ifetch_unit { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Ifetch_unit::print" |
---|
| 21 | std::string Parameters::print (uint32_t depth) |
---|
| 22 | { |
---|
| 23 | log_printf(FUNC,Ifetch_unit,FUNCTION,"Begin"); |
---|
| 24 | |
---|
[88] | 25 | // XML xml ("ifetch_unit"); |
---|
[78] | 26 | |
---|
[88] | 27 | // xml.balise_open("ifetch_unit"); |
---|
| 28 | // xml.singleton_begin("size_queue "); xml.attribut("value",toString(_size_queue )); xml.singleton_end(); |
---|
| 29 | // xml.singleton_begin("nb_instruction "); xml.attribut("value",toString(_nb_instruction )); xml.singleton_end(); |
---|
| 30 | // // xml.singleton_begin("size_branch_update_prediction"); xml.attribut("value",toString(_size_branch_update_prediction)); xml.singleton_end(); |
---|
| 31 | // // xml.singleton_begin("size_address "); xml.attribut("value",toString(_size_address )); xml.singleton_end(); |
---|
| 32 | // xml.balise_close(); |
---|
[78] | 33 | |
---|
[88] | 34 | // return xml.get_body(depth); |
---|
| 35 | |
---|
| 36 | std::string str = ""; |
---|
| 37 | |
---|
[78] | 38 | log_printf(FUNC,Ifetch_unit,FUNCTION,"End"); |
---|
[88] | 39 | |
---|
| 40 | return str; |
---|
[78] | 41 | |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | #undef FUNCTION |
---|
| 45 | #define FUNCTION "Ifetch_unit::operator<<" |
---|
| 46 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 47 | morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::Parameters & x) |
---|
| 48 | { |
---|
| 49 | log_printf(FUNC,Ifetch_unit,FUNCTION,"Begin"); |
---|
| 50 | |
---|
| 51 | output_stream << x.print(0); |
---|
| 52 | |
---|
| 53 | log_printf(FUNC,Ifetch_unit,FUNCTION,"End"); |
---|
| 54 | |
---|
| 55 | return output_stream; |
---|
| 56 | }; |
---|
| 57 | |
---|
| 58 | }; // end namespace ifetch_unit |
---|
| 59 | }; // end namespace front_end |
---|
| 60 | }; // end namespace multi_front_end |
---|
| 61 | }; // end namespace core |
---|
| 62 | |
---|
| 63 | }; // end namespace behavioural |
---|
| 64 | }; // end namespace morpheo |
---|