Last change
on this file since 141 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
807 bytes
|
Rev | Line | |
---|
[71] | 1 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
[2] | 2 | /* |
---|
| 3 | * $Id: Counter_end_cycle.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Generic/Counter/include/Counter.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace counter { |
---|
| 15 | |
---|
| 16 | |
---|
[71] | 17 | void Counter::end_cycle () |
---|
[2] | 18 | { |
---|
[71] | 19 | log_printf(FUNC,Counter,"end_cycle","Begin"); |
---|
[2] | 20 | |
---|
[71] | 21 | #ifdef STATISTICS |
---|
[88] | 22 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
| 23 | _stat->end_cycle(); |
---|
[71] | 24 | #endif |
---|
[2] | 25 | |
---|
[71] | 26 | #ifdef VHDL_TESTBENCH |
---|
| 27 | // Evaluation before read the ouput signal |
---|
| 28 | // sc_start(0); |
---|
[88] | 29 | if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) |
---|
| 30 | _interfaces->testbench(); |
---|
[71] | 31 | #endif |
---|
[2] | 32 | |
---|
[71] | 33 | log_printf(FUNC,Counter,"end_cycle","End"); |
---|
[2] | 34 | }; |
---|
| 35 | |
---|
| 36 | }; // end namespace counter |
---|
| 37 | }; // end namespace generic |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
| 40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.