source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/src/Two_Level_Branch_Predictor_statistics.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

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