source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/src/Pattern_History_Table_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/Pattern_History_Table/include/Pattern_History_Table.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace stage_1_ifetch {
14namespace predictor {
15namespace meta_predictor {
16namespace two_level_branch_predictor {
17namespace pattern_history_table {
18
19  string Pattern_History_Table::statistics (uint32_t depth)
20  {
21    log_printf(FUNC,Pattern_History_Table,"statistics","Begin");
22
23    string stat_print = _stat->print(depth,
24                                     component_Counter     ->statistics(depth+1) + 
25                                     component_RegisterFile->statistics(depth+1)
26                                     );
27
28    log_printf(FUNC,Pattern_History_Table,"statistics","End");
29
30    return stat_print;
31     
32  };
33
34}; // end namespace pattern_history_table
35}; // end namespace two_level_branch_predictor
36}; // end namespace meta_predictor
37}; // end namespace predictor
38}; // end namespace stage_1_ifetch
39}; // end namespace behavioural
40}; // end namespace morpheo             
41#endif
Note: See TracBrowser for help on using the repository browser.