Rev | Line | |
---|
[2] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 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 | |
---|
| 17 | void Counter::deallocation (void) |
---|
| 18 | { |
---|
| 19 | log_printf(FUNC,Counter,"deallocation","Begin"); |
---|
| 20 | |
---|
| 21 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
| 22 | delete in_CLOCK; |
---|
| 23 | #endif |
---|
| 24 | |
---|
| 25 | for (uint32_t i=0; i<_param._nb_port; i++) |
---|
| 26 | { |
---|
| 27 | delete in_COUNTER_DATA [i]; |
---|
| 28 | delete in_COUNTER_ADDSUB[i]; |
---|
| 29 | delete out_COUNTER_DATA [i]; |
---|
| 30 | } |
---|
| 31 | delete in_COUNTER_DATA ; |
---|
| 32 | delete in_COUNTER_ADDSUB; |
---|
| 33 | delete out_COUNTER_DATA ; |
---|
| 34 | |
---|
| 35 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 36 | |
---|
| 37 | log_printf(FUNC,Counter,"deallocation","End"); |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace counter |
---|
| 41 | }; // end namespace generic |
---|
| 42 | |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.