source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Parameters_print.cpp @ 72

Last change on this file since 72 was 72, checked in by rosiere, 16 years ago
  • SystemC de l'unite fonctionnelle.
  • gestion des groupes / instructions custom
File size: 2.7 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace multi_execute_unit {
17namespace execute_unit {
18namespace functionnal_unit {
19
20#undef  FUNCTION
21#define FUNCTION "Functionnal_unit::print"
22  std::string Parameters::print (uint32_t depth)
23  {
24    log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin");
25
26    XML xml ("functionnal_unit");
27
28    xml.balise_open("functionnal_unit");
29    xml.singleton_begin("nb_context         "); xml.attribut("value",toString(_nb_context         )); xml.singleton_end();
30    xml.singleton_begin("nb_front_end       "); xml.attribut("value",toString(_nb_front_end       )); xml.singleton_end();
31    xml.singleton_begin("nb_ooo_engine      "); xml.attribut("value",toString(_nb_ooo_engine      )); xml.singleton_end();
32    xml.singleton_begin("nb_packet          "); xml.attribut("value",toString(_nb_packet          )); xml.singleton_end();
33    xml.singleton_begin("size_general_data  "); xml.attribut("value",toString(_size_general_data  )); xml.singleton_end();
34    xml.singleton_begin("nb_general_register"); xml.attribut("value",toString(_nb_general_register)); xml.singleton_end();
35    xml.singleton_begin("size_special_data  "); xml.attribut("value",toString(_size_special_data  )); xml.singleton_end();
36    xml.singleton_begin("nb_special_register"); xml.attribut("value",toString(_nb_special_register)); xml.singleton_end();
37    xml.singleton_begin("nb_operation       "); xml.attribut("value",toString(_nb_operation       )); xml.singleton_end();
38    xml.singleton_begin("nb_type            "); xml.attribut("value",toString(_nb_type            )); xml.singleton_end();
39    xml.balise_close();
40
41    log_printf(FUNC,Functionnal_unit,FUNCTION,"End");
42   
43    return xml.get_body(depth);
44  };
45
46#undef  FUNCTION
47#define FUNCTION "Functionnal_unit::operator<<"
48  std::ostream& operator<< (std::ostream& output_stream ,
49                            morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_execute_unit::execute_unit::functionnal_unit::Parameters & x)
50  {
51    log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin");
52
53    output_stream << x.print(0);
54   
55    log_printf(FUNC,Functionnal_unit,FUNCTION,"End");
56
57    return output_stream;
58  };
59
60}; // end namespace functionnal_unit
61}; // end namespace execute_unit
62}; // end namespace multi_execute_unit
63}; // end namespace execute_loop
64}; // end namespace multi_execute_loop
65}; // end namespace core
66}; // end namespace behavioural
67}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.