source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Statistics_print.cpp @ 55

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

Ajout SystemC read_queue et reservation_station
Ajout port au bloc registerfile_monolithic (à ajouter également au bloc registerfile et registerfile_multi_banked)
Modif param : passage de pointeur (attention, tous les composants n'ont pas été tous modifier)

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_Read_unit/Read_unit/Reservation_station/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_read_unit {
20namespace read_unit {
21namespace reservation_station {
22
23
24#undef  FUNCTION
25#define FUNCTION "Reservation_station::print"
26  string Statistics::print (uint32_t depth)
27  {
28    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
29
30    string        tab = string(depth,'\t');
31    ostringstream msg;
32
33    msg << tab << "<reservation_station name=\"" << _name << "\" >" << endl
34        << print_body(depth+1) << endl
35        << tab << "</reservation_station>" << endl;
36   
37    log_printf(FUNC,Reservation_station,FUNCTION,"End");
38
39    return msg.str();
40  };
41
42#undef  FUNCTION
43#define FUNCTION "Reservation_station::operator<<"
44  ostream& operator<< (ostream& output_stream ,
45                       morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Statistics & x)
46  {
47    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
48
49    output_stream << x.print(0);
50
51    log_printf(FUNC,Reservation_station,FUNCTION,"End");
52
53    return output_stream;
54  };
55
56}; // end namespace reservation_station
57}; // end namespace read_unit
58}; // end namespace multi_read_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.