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

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

1) Ajout d'un "printer" XML pour la configuration de paramètres

2) Fin du composant "Two_Level_Branch_Predictor"

validation * systemc

  • vhdl
File size: 1.3 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 stat_component_Branch_History_Table  = (_param._have_bht==false)?"":component_Branch_History_Table  ->statistics(depth+1);
25    string stat_component_Pattern_History_Table = (_param._have_pht==false)?"":component_Pattern_History_Table ->statistics(depth+1);
26
27    string txt = _stat->print(depth,
28                              stat_component_Branch_History_Table                            +
29                              stat_component_Pattern_History_Table                           +
30                              component_Two_Level_Branch_Predictor_Glue->statistics(depth+1)
31                              );
32
33    log_printf(FUNC,Two_Level_Branch_Predictor,"statistics","End");
34
35    return txt;
36  };
37
38}; // end namespace two_level_branch_predictor
39}; // end namespace meta_predictor
40}; // end namespace predictor
41}; // end namespace stage_1_ifetch
42
43}; // end namespace behavioural
44}; // end namespace morpheo             
45#endif
Note: See TracBrowser for help on using the repository browser.