source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table/src/Statistics_print.cpp @ 48

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

Modification des Makefile : pas de creation inutile de shell

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