source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Parameters_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: 2.5 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Parameters.h"
9#include <sstream>
10using namespace std;
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace prediction_unit {
18namespace direction {
19
20namespace meta_predictor {
21namespace two_level_branch_predictor {
22namespace two_level_branch_predictor_glue {
23
24
25  string Parameters::print (uint32_t depth)
26  {
27    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"print","Begin");
28
29    string tab = string(depth,'\t');
30    ostringstream msg;
31    msg << tab << "<two_level_branch_predictor_glue>" << endl
32        << tab << "\t<have_bht               value=\"" << _have_bht               << "\" />" << endl
33        << tab << "\t<bht_size_history       value=\"" << _bht_size_history       << "\" />" << endl
34        << tab << "\t<bht_size_address       value=\"" << _bht_size_address       << "\" />" << endl
35        << tab << "\t<have_pht               value=\"" << _have_pht               << "\" />" << endl
36        << tab << "\t<pht_size_address       value=\"" << _pht_size_address       << "\" />" << endl
37        << tab << "\t<pht_size_address_share value=\"" << _pht_size_address_share << "\" /> <!-- Need " << _pht_size_address_shift << " bits to shift -->" << endl
38        << tab << "\t<size_address           value=\"" << _size_address           << "\" />" << endl
39        << tab << "\t<nb_prediction          value=\"" << _nb_prediction          << "\" />" << endl
40        << tab << "\t<nb_branch_complete     value=\"" << _nb_branch_complete     << "\" />" << endl
41        << tab << "</two_level_branch_predictor_glue>" << endl;
42
43    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"print","End");
44   
45    return msg.str();
46  };
47
48  ostream& operator<< (ostream& output_stream ,
49                       morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::two_level_branch_predictor_glue::Parameters & x)
50  {
51    output_stream << x.print(0);
52   
53    return output_stream;
54  };
55
56}; // end namespace two_level_branch_predictor_glue
57}; // end namespace two_level_branch_predictor
58}; // end namespace meta_predictor
59
60}; // end namespace core
61}; // end namespace multi_front_end
62}; // end namespace front_end
63}; // end namespace prediction_unit
64}; // end namespace direction
65
66
67}; // end namespace behavioural
68}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.