source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Statistics_print.cpp @ 59

Last change on this file since 59 was 59, checked in by rosiere, 17 years ago

Add Load store queue -> but not terminated and tested
Add article to sympa 2007 -> but no started

File size: 1.6 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Statistics.h"
10
11#include <sstream>
12using namespace std;
13
14namespace morpheo {
15namespace behavioural {
16namespace core {
17namespace multi_execute_loop {
18namespace execute_loop {
19namespace multi_execute_unit {
20namespace execute_unit {
21namespace load_store_unit {
22
23
24#undef  FUNCTION
25#define FUNCTION "Load_store_unit::print"
26  string Statistics::print (uint32_t depth)
27  {
28    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
29
30    string        tab = string(depth,'\t');
31    ostringstream msg;
32
33    msg << tab << "<load_store_unit name=\"" << _name << "\" >" << endl
34        << print_body(depth+1) << endl
35        << tab << "</load_store_unit>" << endl;
36   
37    log_printf(FUNC,Load_store_unit,FUNCTION,"End");
38
39    return msg.str();
40  };
41
42#undef  FUNCTION
43#define FUNCTION "Load_store_unit::operator<<"
44  ostream& operator<< (ostream& output_stream ,
45                       morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_execute_unit::execute_unit::load_store_unit::Statistics & x)
46  {
47    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
48
49    output_stream << x.print(0);
50
51    log_printf(FUNC,Load_store_unit,FUNCTION,"End");
52
53    return output_stream;
54  };
55
56}; // end namespace load_store_unit
57}; // end namespace execute_unit
58}; // end namespace multi_execute_unit
59}; // end namespace execute_loop
60}; // end namespace multi_execute_loop
61}; // end namespace core
62
63}; // end namespace behavioural
64}; // end namespace morpheo             
65#endif
Note: See TracBrowser for help on using the repository browser.