source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/src/Parameters_print.cpp @ 88

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1/*
2 * $Id: Parameters_print.cpp 88 2008-12-10 18:31:39Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_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_read_unit {
17namespace read_unit {
18
19
20#undef  FUNCTION
21#define FUNCTION "Read_unit::print"
22  std::string Parameters::print (uint32_t depth)
23  {
24    log_printf(FUNC,Read_unit,FUNCTION,"Begin");
25
26    XML xml ("read_unit");
27
28    xml.balise_open("read_unit");
29    xml.singleton_begin("size_read_queue         "); xml.attribut("value",toString(_size_read_queue         )); xml.singleton_end();
30    xml.singleton_begin("size_reservation_station"); xml.attribut("value",toString(_size_reservation_station)); xml.singleton_end();
31    xml.singleton_begin("nb_context              "); xml.attribut("value",toString(_nb_context              )); xml.singleton_end();
32    xml.singleton_begin("nb_front_end            "); xml.attribut("value",toString(_nb_front_end            )); xml.singleton_end();
33    xml.singleton_begin("nb_ooo_engine           "); xml.attribut("value",toString(_nb_ooo_engine           )); xml.singleton_end();
34    xml.singleton_begin("nb_packet               "); xml.attribut("value",toString(_nb_packet               )); xml.singleton_end();
35    xml.singleton_begin("size_general_data       "); xml.attribut("value",toString(_size_general_data       )); xml.singleton_end();
36    xml.singleton_begin("size_special_data       "); xml.attribut("value",toString(_size_special_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_gpr_write            "); xml.attribut("value",toString(_nb_gpr_write            )); xml.singleton_end();
40    xml.singleton_begin("nb_spr_write            "); xml.attribut("value",toString(_nb_spr_write            )); xml.singleton_end();
41//  xml.singleton_begin("size_store_queue        "); xml.attribut("value",toString(_size_store_queue        )); xml.singleton_end();
42//  xml.singleton_begin("size_load_queue         "); xml.attribut("value",toString(_size_load_queue         )); xml.singleton_end();
43    xml.singleton_begin("nb_inst_retire          "); xml.attribut("value",toString(_nb_inst_retire          )); xml.singleton_end();
44    xml.singleton_begin("nb_bypass_write         "); xml.attribut("value",toString(_nb_bypass_write         )); xml.singleton_end();
45    xml.singleton_begin("nb_bypass_memory        "); xml.attribut("value",toString(_nb_bypass_memory        )); xml.singleton_end();
46    xml.balise_close();
47
48    log_printf(FUNC,Read_unit,FUNCTION,"End");
49   
50    return xml.get_body(depth);
51  };
52
53#undef  FUNCTION
54#define FUNCTION "Read_unit::operator<<"
55  std::ostream& operator<< (std::ostream& output_stream ,
56                            morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::Parameters & x)
57  {
58    log_printf(FUNC,Read_unit,FUNCTION,"Begin");
59
60    output_stream << x.print(0);
61   
62    log_printf(FUNC,Read_unit,FUNCTION,"End");
63
64    return output_stream;
65  };
66
67}; // end namespace read_unit
68}; // end namespace multi_read_unit
69}; // end namespace execute_loop
70}; // end namespace multi_execute_loop
71}; // end namespace core
72
73}; // end namespace behavioural
74}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.