1 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
2 | /* |
---|
3 | * $Id: Return_Address_Stack_end_cycle.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/include/Return_Address_Stack.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 return_address_stack { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Return_Address_Stack::end_cycle" |
---|
22 | void Return_Address_Stack::end_cycle () |
---|
23 | { |
---|
24 | log_printf(FUNC,Return_Address_Stack,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | #ifdef STATISTICS |
---|
27 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
28 | _stat->end_cycle(); |
---|
29 | #endif |
---|
30 | |
---|
31 | #ifdef VHDL_TESTBENCH |
---|
32 | // Evaluation before read the ouput signal |
---|
33 | // sc_start(0); |
---|
34 | if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) |
---|
35 | _interfaces->testbench(); |
---|
36 | #endif |
---|
37 | |
---|
38 | log_printf(FUNC,Return_Address_Stack,FUNCTION,"End"); |
---|
39 | }; |
---|
40 | |
---|
41 | }; // end namespace return_address_stack |
---|
42 | }; // end namespace prediction_unit |
---|
43 | }; // end namespace front_end |
---|
44 | }; // end namespace multi_front_end |
---|
45 | }; // end namespace core |
---|
46 | |
---|
47 | }; // end namespace behavioural |
---|
48 | }; // end namespace morpheo |
---|
49 | #endif |
---|