source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/src/Parameters_print.cpp @ 136

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

1) Add new algo in ifetch queue
2) Add Cancel bit
3) new config

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1/*
2 * $Id: Parameters_print.cpp 136 2009-10-20 18:52:15Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_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 ifetch_unit {
17namespace ifetch_queue {
18
19
20#undef  FUNCTION
21#define FUNCTION "Ifetch_queue::print"
22  std::string Parameters::print (uint32_t depth)
23  {
24    log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin");
25
26    XML xml ("ifetch_queue");
27
28    xml.balise_open("ifetch_queue");
29    xml.singleton_begin("size_queue                   "); xml.attribut("value",toString(_size_queue                   )); xml.singleton_end();
30    xml.singleton_begin("queue_scheme                 "); xml.attribut("value",toString(_queue_scheme                 )); xml.singleton_end();
31    xml.singleton_begin("nb_instruction               "); xml.attribut("value",toString(_nb_instruction               )); xml.singleton_end();
32//  xml.singleton_begin("size_branch_update_prediction"); xml.attribut("value",toString(_size_branch_update_prediction)); xml.singleton_end();
33//  xml.singleton_begin("size_general_data            "); xml.attribut("value",toString(_size_general_data            )); xml.singleton_end();
34    xml.balise_close();
35
36    log_printf(FUNC,Ifetch_queue,FUNCTION,"End");
37   
38    return xml.get_body(depth);
39  };
40
41#undef  FUNCTION
42#define FUNCTION "Ifetch_queue::operator<<"
43  std::ostream& operator<< (std::ostream& output_stream ,
44                            morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::ifetch_queue::Parameters & x)
45  {
46    log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin");
47
48    output_stream << x.print(0);
49   
50    log_printf(FUNC,Ifetch_queue,FUNCTION,"End");
51
52    return output_stream;
53  };
54
55}; // end namespace ifetch_queue
56}; // end namespace ifetch_unit
57}; // end namespace front_end
58}; // end namespace multi_front_end
59}; // end namespace core
60
61}; // end namespace behavioural
62}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.