source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/src/Parameters_print.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
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/Register_translation_unit/Stat_List_unit/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace rename_unit {
17namespace register_translation_unit {
18namespace stat_list_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Stat_List_unit::print"
23  std::string Parameters::print (uint32_t depth)
24  {
25    log_printf(FUNC,Stat_List_unit,FUNCTION,"Begin");
26
27    XML xml ("stat_list_unit");
28
29    xml.balise_open("stat_list_unit");
30    xml.singleton_begin("nb_front_end       "); xml.attribut("value",toString(_nb_front_end       )); xml.singleton_end();
31    xml.singleton_begin("nb_general_register"); xml.attribut("value",toString(_nb_general_register)); xml.singleton_end();
32    xml.singleton_begin("nb_special_register"); xml.attribut("value",toString(_nb_special_register)); xml.singleton_end();
33    xml.singleton_begin("nb_inst_insert     "); xml.attribut("value",toString(_nb_inst_insert     )); xml.singleton_end();
34    xml.singleton_begin("nb_inst_retire     "); xml.attribut("value",toString(_nb_inst_retire     )); xml.singleton_end();
35    xml.singleton_begin("nb_reg_free        "); xml.attribut("value",toString(_nb_reg_free        )); xml.singleton_end();
36    xml.singleton_begin("nb_bank            "); xml.attribut("value",toString(_nb_bank            )); xml.singleton_end();
37    xml.singleton_begin("size_counter       "); xml.attribut("value",toString(_size_counter       )); xml.singleton_end();
38
39    for (uint32_t i=0;i<_nb_front_end; i++)
40      {
41        xml. balise_open_begin("component");
42        xml.  attribut("type","front_end");
43        xml.  attribut("id"  ,toString(i));
44        xml. balise_open_end();
45        xml.  singleton_begin("nb_context         "); xml.attribut("value",toString(_nb_context [i]     )); xml.singleton_end();
46        xml. balise_close();
47      }
48    xml.balise_close();
49
50    log_printf(FUNC,Stat_List_unit,FUNCTION,"End");
51   
52    return xml.get_body(depth);
53  };
54
55#undef  FUNCTION
56#define FUNCTION "Stat_List_unit::operator<<"
57  std::ostream& operator<< (std::ostream& output_stream ,
58                            morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::stat_list_unit::Parameters & x)
59  {
60    log_printf(FUNC,Stat_List_unit,FUNCTION,"Begin");
61
62    output_stream << x.print(0);
63   
64    log_printf(FUNC,Stat_List_unit,FUNCTION,"End");
65
66    return output_stream;
67  };
68
69}; // end namespace stat_list_unit
70}; // end namespace register_translation_unit
71}; // end namespace rename_unit
72}; // end namespace ooo_engine
73}; // end namespace multi_ooo_engine
74}; // end namespace core
75
76}; // end namespace behavioural
77}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.