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

Last change on this file since 139 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: 3.3 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/Register_translation_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 {
18
19
20#undef  FUNCTION
21#define FUNCTION "Register_translation_unit::print"
22  std::string Parameters::print (uint32_t depth)
23  {
24    log_printf(FUNC,Register_translation_unit,FUNCTION,"Begin");
25
26    XML xml ("register_translation_unit");
27
28    xml.balise_open("register_translation_unit");
29    xml.singleton_begin("nb_front_end        "); xml.attribut("value",toString(_nb_front_end       )); xml.singleton_end();
30    xml.singleton_begin("nb_general_register "); xml.attribut("value",toString(_nb_general_register)); xml.singleton_end();
31    xml.singleton_begin("nb_special_register "); xml.attribut("value",toString(_nb_special_register)); xml.singleton_end();
32    xml.singleton_begin("rat_scheme          "); xml.attribut("value",toString(_rat_scheme         )); 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_read_counter   "); xml.attribut("value",toString(_size_read_counter  )); xml.singleton_end();
38    for (uint32_t i=0;i<_nb_front_end; i++)
39      {
40        xml. balise_open_begin("component");
41        xml.  attribut("type","front_end");
42        xml.  attribut("id"  ,toString(i));
43        xml. balise_open_end();
44        xml.  singleton_begin("nb_context          "); xml.attribut("value",toString(_nb_context [i]     )); xml.singleton_end();
45
46        for (uint32_t j=0;j<_nb_context[i]; j++)
47          {
48            xml. balise_open_begin("component");
49            xml.  attribut("type","context");
50            xml.  attribut("id"  ,toString(j));
51            xml. balise_open_end();
52            xml.  singleton_begin("nb_branch_speculated"); xml.attribut("value",toString(_nb_branch_speculated[i][j])); xml.singleton_end();
53            xml. balise_close();
54          }
55
56        xml. balise_close();
57      }
58    xml.balise_close();
59
60    log_printf(FUNC,Register_translation_unit,FUNCTION,"End");
61   
62    return xml.get_body(depth);
63  };
64
65#undef  FUNCTION
66#define FUNCTION "Register_translation_unit::operator<<"
67  std::ostream& operator<< (std::ostream& output_stream ,
68                            morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::Parameters & x)
69  {
70    log_printf(FUNC,Register_translation_unit,FUNCTION,"Begin");
71
72    output_stream << x.print(0);
73   
74    log_printf(FUNC,Register_translation_unit,FUNCTION,"End");
75
76    return output_stream;
77  };
78
79}; // end namespace register_translation_unit
80}; // end namespace rename_unit
81}; // end namespace ooo_engine
82}; // end namespace multi_ooo_engine
83}; // end namespace core
84
85}; // end namespace behavioural
86}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.