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

Last change on this file since 146 was 139, checked in by rosiere, 14 years ago
  • Add test for all configuration
  • RAT : add rat scheme (depth_save)
  • Property svn:keywords set to Id
File size: 5.0 KB
Line 
1/*
2 * $Id: Parameters_print.cpp 139 2010-07-30 14:47:27Z 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
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace 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();
41//     xml.singleton_begin("size_read_counter                "); xml.attribut("value",toString(_size_read_counter                )); xml.singleton_end();
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            xml.singleton_begin("nb_branch_speculated             "); xml.attribut("value",toString(_nb_branch_speculated             [i][j])); xml.singleton_end();
61           
62            xml. balise_close();
63          }
64
65        xml. balise_close();
66      }
67
68    for (uint32_t i=0;i<_nb_load_store_queue; i++)
69      {
70        xml. balise_open_begin("component");
71        xml.  attribut("type","load_store_queue");
72        xml.  attribut("id"  ,toString(i));
73        xml. balise_open_end();
74       
75        xml.singleton_begin("size_store_queue                 "); xml.attribut("value",toString(_size_store_queue                 [i])); xml.singleton_end();
76        xml.singleton_begin("size_load_queue                  "); xml.attribut("value",toString(_size_load_queue                  [i])); xml.singleton_end();
77
78        xml. balise_close();
79      }
80
81    xml.balise_close();
82
83    log_end(Rename_unit,FUNCTION);
84   
85    return xml.get_body(depth);
86  };
87
88#undef  FUNCTION
89#define FUNCTION "Rename_unit::operator<<"
90  std::ostream& operator<< (std::ostream& output_stream ,
91                            morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::Parameters & x)
92  {
93    log_begin(Rename_unit,FUNCTION);
94
95    output_stream << x.print(0);
96   
97    log_end(Rename_unit,FUNCTION);
98
99    return output_stream;
100  };
101
102}; // end namespace rename_unit
103}; // end namespace ooo_engine
104}; // end namespace multi_ooo_engine
105}; // end namespace core
106
107}; // end namespace behavioural
108}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.