1 | /* |
---|
2 | * $Id: Sort_deallocation.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Sort/include/Sort.h" |
---|
9 | #include "Behavioural/include/Allocation.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace sort { |
---|
15 | |
---|
16 | |
---|
17 | #undef FUNCTION |
---|
18 | #define FUNCTION "Sort::deallocation" |
---|
19 | void Sort::deallocation (void) |
---|
20 | { |
---|
21 | log_printf(FUNC,Sort,FUNCTION,"Begin"); |
---|
22 | |
---|
23 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
24 | { |
---|
25 | delete in_CLOCK ; |
---|
26 | delete in_NRESET; |
---|
27 | |
---|
28 | DELETE1_SIGNAL(in_INPUT_VAL ,_param->_nb_input, 1); |
---|
29 | DELETE1_SIGNAL(in_INPUT_DATA,_param->_nb_input, _param->_size_data); |
---|
30 | |
---|
31 | DELETE1_SIGNAL(out_OUTPUT_VAL ,_param->_nb_output,1); |
---|
32 | if (_param->_have_port_index_out) |
---|
33 | DELETE1_SIGNAL(out_OUTPUT_INDEX,_param->_nb_output,_param->_size_address); |
---|
34 | if (_param->_have_port_data_out) |
---|
35 | DELETE1_SIGNAL(out_OUTPUT_DATA ,_param->_nb_output,_param->_size_data ); |
---|
36 | } |
---|
37 | |
---|
38 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
39 | |
---|
40 | delete _component; |
---|
41 | |
---|
42 | log_printf(FUNC,Sort,FUNCTION,"End"); |
---|
43 | }; |
---|
44 | |
---|
45 | }; // end namespace sort |
---|
46 | }; // end namespace generic |
---|
47 | |
---|
48 | }; // end namespace behavioural |
---|
49 | }; // end namespace morpheo |
---|