source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/src/Parameters_print.cpp @ 82

Last change on this file since 82 was 82, checked in by rosiere, 16 years ago
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1/*
2 * $Id: Parameters_print.cpp 82 2008-05-01 16:48:45Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace decod_unit {
17namespace decod_queue {
18
19
20#undef  FUNCTION
21#define FUNCTION "Decod_queue::print"
22  std::string Parameters::print (uint32_t depth)
23  {
24    log_begin(Decod_queue,FUNCTION);
25
26    XML xml ("decod_queue");
27
28    xml.balise_open("decod_queue");
29    xml.singleton_begin("nb_context          "); xml.attribut("value",toString(_nb_context       )); xml.singleton_end();
30    xml.singleton_begin("nb_inst_decod       "); xml.attribut("value",toString(_nb_inst_decod    )); xml.singleton_end();
31    xml.singleton_begin("size_queue          "); xml.attribut("value",toString(_size_queue       )); xml.singleton_end();
32    xml.singleton_begin("size_general_data   "); xml.attribut("value",toString(_size_general_data)); xml.singleton_end();
33    for (uint32_t i=0;i<_nb_context; i++)
34      {
35        xml. balise_open_begin("component");
36        xml.  attribut("type","context");
37        xml.  attribut("id"  ,toString(i));
38        xml. balise_open_end();
39        xml.  singleton_begin("nb_branch_speculated"); xml.attribut("value",toString(_nb_branch_speculated [i])); xml.singleton_end();
40        xml. balise_close();
41      }
42    xml.balise_close();
43
44    log_end(Decod_queue,FUNCTION);
45   
46    return xml.get_body(depth);
47  };
48
49#undef  FUNCTION
50#define FUNCTION "Decod_queue::operator<<"
51  std::ostream& operator<< (std::ostream& output_stream ,
52                            morpheo::behavioural::core::multi_front_end::front_end::decod_unit::decod_queue::Parameters & x)
53  {
54    log_begin(Decod_queue,FUNCTION);
55
56    output_stream << x.print(0);
57   
58    log_end(Decod_queue,FUNCTION);
59
60    return output_stream;
61  };
62
63}; // end namespace decod_queue
64}; // end namespace decod_unit
65}; // end namespace front_end
66}; // end namespace multi_front_end
67}; // end namespace core
68
69}; // end namespace behavioural
70}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.