[71] | 1 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
| 2 | /* |
---|
| 3 | * $Id: Load_store_unit_end_cycle.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Load_store_unit.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_execute_loop { |
---|
| 15 | namespace execute_loop { |
---|
| 16 | namespace multi_execute_unit { |
---|
| 17 | namespace execute_unit { |
---|
| 18 | namespace load_store_unit { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Load_store_unit::end_cycle" |
---|
| 23 | void Load_store_unit::end_cycle () |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | #ifdef STATISTICS |
---|
[88] | 28 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
| 29 | _stat->end_cycle(); |
---|
[71] | 30 | #endif |
---|
| 31 | |
---|
| 32 | #ifdef VHDL_TESTBENCH |
---|
| 33 | // Evaluation before read the ouput signal |
---|
| 34 | // sc_start(0); |
---|
[88] | 35 | if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) |
---|
| 36 | _interfaces->testbench(); |
---|
[71] | 37 | #endif |
---|
| 38 | |
---|
| 39 | log_printf(FUNC,Load_store_unit,FUNCTION,"End"); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | }; // end namespace load_store_unit |
---|
| 43 | }; // end namespace execute_unit |
---|
| 44 | }; // end namespace multi_execute_unit |
---|
| 45 | }; // end namespace execute_loop |
---|
| 46 | }; // end namespace multi_execute_loop |
---|
| 47 | }; // end namespace core |
---|
| 48 | |
---|
| 49 | }; // end namespace behavioural |
---|
| 50 | }; // end namespace morpheo |
---|
| 51 | #endif |
---|