[110] | 1 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
| 2 | /* |
---|
| 3 | * $Id: Two_Level_Branch_Predictor_end_cycle.cpp 110 2009-02-19 16:31:47Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Two_Level_Branch_Predictor.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace prediction_unit { |
---|
| 17 | namespace direction { |
---|
| 18 | namespace meta_predictor { |
---|
| 19 | namespace two_level_branch_predictor { |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #undef FUNCTION |
---|
| 23 | #define FUNCTION "Two_Level_Branch_Predictor::end_cycle" |
---|
| 24 | void Two_Level_Branch_Predictor::end_cycle () |
---|
| 25 | { |
---|
| 26 | log_begin(Two_Level_Branch_Predictor,FUNCTION); |
---|
| 27 | |
---|
| 28 | #ifdef STATISTICS |
---|
| 29 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
| 30 | _stat->end_cycle(); |
---|
| 31 | #endif |
---|
| 32 | |
---|
| 33 | #ifdef VHDL_TESTBENCH |
---|
| 34 | // Evaluation before read the ouput signal |
---|
| 35 | // sc_start(0); |
---|
| 36 | if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) |
---|
| 37 | _interfaces->testbench(); |
---|
| 38 | #endif |
---|
| 39 | |
---|
| 40 | log_end(Two_Level_Branch_Predictor,FUNCTION); |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | }; // end namespace two_level_branch_predictor |
---|
| 44 | }; // end namespace meta_predictor |
---|
| 45 | }; // end namespace direction |
---|
| 46 | }; // end namespace prediction_unit |
---|
| 47 | }; // end namespace front_end |
---|
| 48 | }; // end namespace multi_front_end |
---|
| 49 | }; // end namespace core |
---|
| 50 | |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|
| 53 | #endif |
---|