[67] | 1 | /* |
---|
| 2 | * $Id: Queue_deallocation.cpp 101 2009-01-15 17:19:08Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Queue/include/Queue.h" |
---|
[100] | 9 | #include "Behavioural/include/Allocation.h" |
---|
[67] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace queue { |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Queue::deallocation" |
---|
| 19 | void Queue::deallocation (void) |
---|
| 20 | { |
---|
| 21 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 22 | |
---|
[88] | 23 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[68] | 24 | { |
---|
| 25 | delete in_CLOCK ; |
---|
| 26 | delete in_NRESET; |
---|
[100] | 27 | |
---|
| 28 | DELETE0_SIGNAL( in_INSERT_VAL ,1); |
---|
| 29 | DELETE0_SIGNAL(out_INSERT_ACK ,1); |
---|
| 30 | DELETE0_SIGNAL( in_INSERT_DATA ,_param->_size_data); |
---|
| 31 | |
---|
| 32 | DELETE0_SIGNAL(out_RETIRE_VAL ,1); |
---|
| 33 | DELETE0_SIGNAL( in_RETIRE_ACK ,1); |
---|
| 34 | DELETE0_SIGNAL(out_RETIRE_DATA ,_param->_size_data); |
---|
| 35 | |
---|
| 36 | DELETE1_SIGNAL(out_SLOT_VAL ,_param->_nb_port_slot,1); |
---|
| 37 | DELETE1_SIGNAL(out_SLOT_DATA ,_param->_nb_port_slot,_param->_size_data); |
---|
[101] | 38 | |
---|
| 39 | if (_param->_have_port_ptr_write) |
---|
| 40 | DELETE0_SIGNAL(out_PTR_WRITE ,_param->_size_ptr); |
---|
| 41 | if (_param->_have_port_ptr_read ) |
---|
| 42 | DELETE0_SIGNAL(out_PTR_READ ,_param->_size_ptr); |
---|
[68] | 43 | |
---|
[88] | 44 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 45 | delete _queue_control; |
---|
| 46 | delete _queue_data; |
---|
[68] | 47 | } |
---|
[88] | 48 | |
---|
[67] | 49 | delete _component; |
---|
| 50 | |
---|
| 51 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 52 | }; |
---|
| 53 | |
---|
| 54 | }; // end namespace queue |
---|
| 55 | }; // end namespace generic |
---|
| 56 | |
---|
| 57 | }; // end namespace behavioural |
---|
| 58 | }; // end namespace morpheo |
---|