1 | /* |
---|
2 | * $Id: Queue_deallocation.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Queue/include/Queue.h" |
---|
9 | #include "Behavioural/include/Allocation.h" |
---|
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 | |
---|
23 | // if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
24 | { |
---|
25 | DELETE0_SIGNAL( in_CLOCK ,1); |
---|
26 | DELETE0_SIGNAL( in_NRESET,1); |
---|
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); |
---|
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); |
---|
43 | } |
---|
44 | |
---|
45 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
46 | { |
---|
47 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
48 | delete _queue_control; |
---|
49 | delete _queue_data; |
---|
50 | } |
---|
51 | |
---|
52 | delete _component; |
---|
53 | |
---|
54 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
55 | }; |
---|
56 | |
---|
57 | }; // end namespace queue |
---|
58 | }; // end namespace generic |
---|
59 | |
---|
60 | }; // end namespace behavioural |
---|
61 | }; // end namespace morpheo |
---|