source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Parameters_print.cpp @ 60

Last change on this file since 60 was 60, checked in by rosiere, 17 years ago
File size: 2.7 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10using namespace std;
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_execute_loop {
16namespace execute_loop {
17namespace register_unit {
18namespace register_unit_glue {
19
20
21#undef  FUNCTION
22#define FUNCTION "Register_unit_Glue::print"
23  string Parameters::print (uint32_t depth)
24  {
25    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
26
27    XML xml ("register_unit_glue");
28
29    xml.balise_open("register_unit_glue");
30    xml.singleton_begin("nb_ooo_engine    "); xml.attribut("value",toString(_nb_ooo_engine    )); xml.singleton_end();
31    xml.singleton_begin("size_general_data"); xml.attribut("value",toString(_size_general_data)); xml.singleton_end();
32    xml.singleton_begin("size_special_data"); xml.attribut("value",toString(_size_special_data)); xml.singleton_end();
33    xml.singleton_begin("nb_gpr_read      "); xml.attribut("value",toString(_nb_gpr_read      )); xml.singleton_end();
34    xml.singleton_begin("nb_spr_read      "); xml.attribut("value",toString(_nb_spr_read      )); xml.singleton_end();
35    xml.singleton_begin("nb_gpr_write     "); xml.attribut("value",toString(_nb_gpr_write     )); xml.singleton_end();
36    xml.singleton_begin("nb_spr_write     "); xml.attribut("value",toString(_nb_spr_write     )); xml.singleton_end();
37
38    xml. balise_open("multi_ooo_engine");
39    for (uint32_t i=0; i<_nb_ooo_engine; i++)
40      {
41        xml.  balise_open_begin("ooo_engine");
42        xml.   attribut("id", toString(i));
43        xml.  balise_open_end();
44        xml.   singleton_begin("nb_inst_insert_rob "); xml.attribut("value",toString(_nb_inst_insert_rob  [i])); xml.singleton_end();
45        xml.   singleton_begin("nb_inst_retire_rob "); xml.attribut("value",toString(_nb_inst_retire_rob  [i])); xml.singleton_end();
46        xml.  balise_close();
47      }
48    xml. balise_close();
49    xml.balise_close();
50
51    log_printf(FUNC,Register_unit_Glue,FUNCTION,"End");
52   
53    return xml.get_body(depth);
54  };
55
56#undef  FUNCTION
57#define FUNCTION "Register_unit_Glue::operator<<"
58  ostream& operator<< (ostream& output_stream ,
59                       morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Parameters & x)
60  {
61    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
62
63    output_stream << x.print(0);
64   
65    log_printf(FUNC,Register_unit_Glue,FUNCTION,"End");
66
67    return output_stream;
68  };
69
70}; // end namespace register_unit_glue
71}; // end namespace register_unit
72}; // end namespace execute_loop
73}; // end namespace multi_execute_loop
74}; // end namespace core
75}; // end namespace behavioural
76}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.