[78] | 1 | /* |
---|
| 2 | * $Id: Ifetch_unit_deallocation.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/include/Ifetch_unit.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 | |
---|
| 17 | |
---|
| 18 | #undef FUNCTION |
---|
| 19 | #define FUNCTION "Ifetch_unit::deallocation" |
---|
| 20 | void Ifetch_unit::deallocation (void) |
---|
| 21 | { |
---|
| 22 | log_printf(FUNC,Ifetch_unit,FUNCTION,"Begin"); |
---|
| 23 | |
---|
| 24 | if (_usage & USE_SYSTEMC) |
---|
| 25 | { |
---|
| 26 | delete in_CLOCK ; |
---|
| 27 | delete in_NRESET; |
---|
| 28 | |
---|
| 29 | delete out_ICACHE_REQ_VAL ; |
---|
| 30 | delete in_ICACHE_REQ_ACK ; |
---|
| 31 | //delete out_ICACHE_REQ_THREAD_ID ; |
---|
| 32 | if (_param->_have_port_queue_ptr) |
---|
| 33 | delete out_ICACHE_REQ_PACKET_ID ; |
---|
| 34 | delete out_ICACHE_REQ_ADDRESS ; |
---|
| 35 | delete out_ICACHE_REQ_TYPE ; |
---|
| 36 | |
---|
| 37 | delete in_ICACHE_RSP_VAL ; |
---|
| 38 | delete out_ICACHE_RSP_ACK ; |
---|
| 39 | //delete in_ICACHE_RSP_THREAD_ID ; |
---|
| 40 | if (_param->_have_port_queue_ptr) |
---|
| 41 | delete in_ICACHE_RSP_PACKET_ID ; |
---|
| 42 | delete [] in_ICACHE_RSP_INSTRUCTION ; |
---|
| 43 | delete in_ICACHE_RSP_ERROR ; |
---|
| 44 | |
---|
| 45 | delete out_PREDICT_VAL ; |
---|
| 46 | delete in_PREDICT_ACK ; |
---|
| 47 | delete out_PREDICT_PC_PREVIOUS ; |
---|
| 48 | delete out_PREDICT_PC_CURRENT ; |
---|
| 49 | delete out_PREDICT_PC_CURRENT_IS_DS_TAKE ; |
---|
| 50 | delete in_PREDICT_PC_NEXT ; |
---|
| 51 | delete in_PREDICT_PC_NEXT_IS_DS_TAKE ; |
---|
| 52 | delete [] in_PREDICT_INSTRUCTION_ENABLE ; |
---|
| 53 | if (_param->_have_port_instruction_ptr) |
---|
| 54 | delete in_PREDICT_INST_IFETCH_PTR ; |
---|
| 55 | delete in_PREDICT_BRANCH_STATE ; |
---|
| 56 | if (_param->_have_port_branch_update_prediction_id) |
---|
| 57 | delete in_PREDICT_BRANCH_UPDATE_PREDICTION_ID ; |
---|
| 58 | |
---|
| 59 | delete [] out_DECOD_VAL ; |
---|
| 60 | delete [] in_DECOD_ACK ; |
---|
| 61 | delete [] out_DECOD_INSTRUCTION ; |
---|
| 62 | //delete out_DECOD_CONTEXT_ID ; |
---|
| 63 | delete out_DECOD_ADDRESS ; |
---|
| 64 | if (_param->_have_port_instruction_ptr) |
---|
| 65 | delete out_DECOD_INST_IFETCH_PTR ; |
---|
| 66 | delete out_DECOD_BRANCH_STATE ; |
---|
| 67 | if (_param->_have_port_branch_update_prediction_id) |
---|
| 68 | delete out_DECOD_BRANCH_UPDATE_PREDICTION_ID ; |
---|
| 69 | delete out_DECOD_EXCEPTION ; |
---|
| 70 | |
---|
| 71 | delete in_EVENT_VAL ; |
---|
| 72 | delete out_EVENT_ACK ; |
---|
| 73 | delete in_EVENT_ADDRESS ; |
---|
| 74 | } |
---|
| 75 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 76 | delete _component_address_management; |
---|
| 77 | delete _component_ifetch_queue; |
---|
| 78 | delete _component_ifetch_unit_glue; |
---|
| 79 | delete _component; |
---|
| 80 | |
---|
| 81 | log_printf(FUNC,Ifetch_unit,FUNCTION,"End"); |
---|
| 82 | }; |
---|
| 83 | |
---|
| 84 | }; // end namespace ifetch_unit |
---|
| 85 | }; // end namespace front_end |
---|
| 86 | }; // end namespace multi_front_end |
---|
| 87 | }; // end namespace core |
---|
| 88 | |
---|
| 89 | }; // end namespace behavioural |
---|
| 90 | }; // end namespace morpheo |
---|