[10] | 1 | /* |
---|
| 2 | * $Id: Select_Priority_Fixed_deallocation.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[15] | 8 | #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" |
---|
[112] | 9 | #include "Behavioural/include/Allocation.h" |
---|
[10] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace select { |
---|
[15] | 15 | namespace select_priority_fixed { |
---|
[10] | 16 | |
---|
| 17 | |
---|
[15] | 18 | void Select_Priority_Fixed::deallocation (void) |
---|
[10] | 19 | { |
---|
[15] | 20 | log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin"); |
---|
[10] | 21 | |
---|
[88] | 22 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[10] | 23 | { |
---|
[57] | 24 | delete in_CLOCK; |
---|
| 25 | delete in_NRESET; |
---|
| 26 | |
---|
[112] | 27 | DELETE1_SIGNAL( in_VAL ,_param->_nb_entity,1); |
---|
| 28 | if (_param->_encoding_one_hot) |
---|
| 29 | DELETE1_SIGNAL(out_ACK ,_param->_nb_entity,1); |
---|
| 30 | if (_param->_encoding_compact) |
---|
| 31 | { |
---|
| 32 | DELETE0_SIGNAL(out_ENTITY ,_param->_size_entity); |
---|
| 33 | DELETE0_SIGNAL(out_ENTITY_ACK,1); |
---|
| 34 | } |
---|
[10] | 35 | } |
---|
[112] | 36 | |
---|
[10] | 37 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
[57] | 38 | |
---|
[42] | 39 | delete _component; |
---|
| 40 | |
---|
[15] | 41 | log_printf(FUNC,Select_Priority_Fixed,"deallocation","End"); |
---|
[10] | 42 | }; |
---|
| 43 | |
---|
[15] | 44 | }; // end namespace select_priority_fixed |
---|
[10] | 45 | }; // end namespace select |
---|
| 46 | }; // end namespace generic |
---|
| 47 | |
---|
| 48 | }; // end namespace behavioural |
---|
| 49 | }; // end namespace morpheo |
---|