source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/src/Meta_Predictor_statistics.cpp @ 5

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

Ajout du composant Meta_Predictor

File size: 1.5 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/include/Meta_Predictor.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace stage_1_ifetch {
14namespace predictor {
15namespace meta_predictor {
16
17
18  string Meta_Predictor::statistics (uint32_t depth)
19  {
20    log_printf(FUNC,Meta_Predictor,"statistics","Begin");
21
22    string stat_component_Two_Level_Branch_Predictor_0 = (_param._have_meta_predictor==false)?"":component_Two_Level_Branch_Predictor_0->statistics(depth+1);
23    string stat_component_Two_Level_Branch_Predictor_1 = (_param._have_meta_predictor==false)?"":component_Two_Level_Branch_Predictor_1->statistics(depth+1);
24    string stat_component_Two_Level_Branch_Predictor_2 =                                         component_Two_Level_Branch_Predictor_2->statistics(depth+1);
25    string stat_component_Meta_Predictor_Glue          =                                         component_Meta_Predictor_Glue         ->statistics(depth+1);
26
27    string txt = _stat->print(depth,
28                              stat_component_Two_Level_Branch_Predictor_0 + 
29                              stat_component_Two_Level_Branch_Predictor_1 + 
30                              stat_component_Two_Level_Branch_Predictor_2 + 
31                              stat_component_Meta_Predictor_Glue          );
32   
33    log_printf(FUNC,Meta_Predictor,"statistics","End");
34
35    return txt;
36  };
37
38}; // end namespace meta_predictor
39}; // end namespace predictor
40}; // end namespace stage_1_ifetch
41
42}; // end namespace behavioural
43}; // end namespace morpheo             
44#endif
Note: See TracBrowser for help on using the repository browser.