source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Parameters_msg_error.cpp @ 44

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

Modification des classes d'encapsulation des interfaces.
Stable sur tous les composants actuels

File size: 1.8 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Parameters.h"
9#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Types.h"
10#include <sstream>
11using namespace std;
12
13namespace morpheo                    {
14namespace behavioural {
15namespace stage_1_ifetch {
16namespace predictor {
17namespace meta_predictor {
18namespace two_level_branch_predictor {
19namespace two_level_branch_predictor_glue {
20
21
22  string Parameters::msg_error(void)
23  {
24    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","Begin");
25
26    string msg = "";
27   
28    if ((_have_bht and _have_pht) and (_pht_size_address_share >= _pht_size_address))
29      {
30        msg += "  - You can't have higher pht_size_address_share >= pht_size_address\n";
31        msg += "    * pht_size_address                : " + toString(_pht_size_address      ) + "\n";
32        msg += "    * pht_size_address_share          : " + toString(_pht_size_address_share) + "\n";
33      }
34    if ((_have_bht and _have_pht) and (_bht_size_history > _pht_size_address))
35      {
36        msg += "  - You can't have higher bht_size_history > pht_size_address\n";
37        msg += "    * bht_size_history                : " + toString(_bht_size_history      ) + "\n";
38        msg += "    * pht_size_address                : " + toString(_pht_size_address      ) + "\n";
39      }
40
41    return msg;
42
43    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"msg_error","End");
44  };
45
46}; // end namespace two_level_branch_predictor_glue
47}; // end namespace two_level_branch_predictor
48}; // end namespace meta_predictor
49}; // end namespace predictor
50}; // end namespace stage_1_ifetch
51}; // end namespace behavioural
52}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.