[78] | 1 | /* |
---|
| 2 | * $Id: Ifetch_queue_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Ifetch_queue.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace core { |
---|
| 13 | namespace multi_front_end { |
---|
| 14 | namespace front_end { |
---|
| 15 | namespace ifetch_unit { |
---|
| 16 | namespace ifetch_queue { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Ifetch_queue::deallocation" |
---|
| 21 | void Ifetch_queue::deallocation (void) |
---|
| 22 | { |
---|
| 23 | log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin"); |
---|
| 24 | |
---|
[88] | 25 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[78] | 26 | { |
---|
| 27 | delete in_CLOCK ; |
---|
| 28 | delete in_NRESET; |
---|
| 29 | |
---|
| 30 | delete in_ADDRESS_VAL ; |
---|
| 31 | delete out_ADDRESS_ACK ; |
---|
[88] | 32 | if (_param->_have_port_ifetch_queue_ptr) |
---|
[78] | 33 | delete out_ADDRESS_IFETCH_QUEUE_ID ; |
---|
| 34 | delete [] in_ADDRESS_INSTRUCTION_ENABLE ; |
---|
| 35 | delete in_ADDRESS_INSTRUCTION_ADDRESS ; |
---|
[88] | 36 | if (_param->_have_port_inst_ifetch_ptr) |
---|
[78] | 37 | delete in_ADDRESS_INST_IFETCH_PTR ; |
---|
| 38 | delete in_ADDRESS_BRANCH_STATE ; |
---|
[88] | 39 | if (_param->_have_port_depth) |
---|
[78] | 40 | delete in_ADDRESS_BRANCH_UPDATE_PREDICTION_ID; |
---|
| 41 | delete [] out_DECOD_VAL ; |
---|
| 42 | delete [] in_DECOD_ACK ; |
---|
| 43 | delete [] out_DECOD_INSTRUCTION ; |
---|
| 44 | delete out_DECOD_ADDRESS ; |
---|
[88] | 45 | if (_param->_have_port_inst_ifetch_ptr) |
---|
[78] | 46 | delete out_DECOD_INST_IFETCH_PTR ; |
---|
| 47 | delete out_DECOD_BRANCH_STATE ; |
---|
[88] | 48 | if (_param->_have_port_depth) |
---|
[78] | 49 | delete out_DECOD_BRANCH_UPDATE_PREDICTION_ID ; |
---|
| 50 | delete out_DECOD_EXCEPTION ; |
---|
| 51 | delete in_ICACHE_RSP_VAL ; |
---|
| 52 | delete out_ICACHE_RSP_ACK ; |
---|
[88] | 53 | if (_param->_have_port_ifetch_queue_ptr) |
---|
[78] | 54 | delete in_ICACHE_RSP_PACKET_ID ; |
---|
| 55 | delete [] in_ICACHE_RSP_INSTRUCTION ; |
---|
| 56 | delete in_ICACHE_RSP_ERROR ; |
---|
| 57 | delete in_EVENT_RESET_VAL ; |
---|
| 58 | delete out_EVENT_RESET_ACK ; |
---|
| 59 | } |
---|
[88] | 60 | |
---|
| 61 | // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 62 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
| 63 | { |
---|
| 64 | delete internal_DECOD_VAL; |
---|
| 65 | delete [] _queue; |
---|
| 66 | } |
---|
| 67 | |
---|
[78] | 68 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 69 | delete _component; |
---|
| 70 | |
---|
| 71 | log_printf(FUNC,Ifetch_queue,FUNCTION,"End"); |
---|
| 72 | }; |
---|
| 73 | |
---|
| 74 | }; // end namespace ifetch_queue |
---|
| 75 | }; // end namespace ifetch_unit |
---|
| 76 | }; // end namespace front_end |
---|
| 77 | }; // end namespace multi_front_end |
---|
| 78 | }; // end namespace core |
---|
| 79 | |
---|
| 80 | }; // end namespace behavioural |
---|
| 81 | }; // end namespace morpheo |
---|