Last change
on this file since 42 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
|
File size:
1.3 KB
|
Rev | Line | |
---|
[2] | 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 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace stage_1_ifetch { |
---|
| 15 | namespace predictor { |
---|
| 16 | namespace meta_predictor { |
---|
| 17 | namespace 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 | |
---|
[3] | 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 | |
---|
[2] | 27 | string txt = _stat->print(depth, |
---|
[3] | 28 | stat_component_Branch_History_Table + |
---|
| 29 | stat_component_Pattern_History_Table + |
---|
[2] | 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.