[78] | 1 | /* |
---|
| 2 | * $Id: Address_management_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/Address_management/include/Address_management.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 address_management { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Address_management::deallocation" |
---|
| 21 | void Address_management::deallocation (void) |
---|
| 22 | { |
---|
| 23 | log_printf(FUNC,Address_management,FUNCTION,"Begin"); |
---|
| 24 | |
---|
| 25 | if (_usage & USE_SYSTEMC) |
---|
| 26 | { |
---|
| 27 | delete in_CLOCK ; |
---|
| 28 | delete in_NRESET; |
---|
| 29 | |
---|
| 30 | delete out_ADDRESS_VAL ; |
---|
| 31 | delete in_ADDRESS_ACK ; |
---|
| 32 | delete out_ADDRESS_INSTRUCTION_ADDRESS ; |
---|
| 33 | delete [] out_ADDRESS_INSTRUCTION_ENABLE ; |
---|
| 34 | if (_param->_have_port_instruction_ptr) |
---|
| 35 | delete out_ADDRESS_INST_IFETCH_PTR ; |
---|
| 36 | delete out_ADDRESS_BRANCH_STATE ; |
---|
| 37 | if (_param->_have_port_branch_update_prediction_id) |
---|
| 38 | delete out_ADDRESS_BRANCH_UPDATE_PREDICTION_ID; |
---|
| 39 | delete out_PREDICT_VAL ; |
---|
| 40 | delete in_PREDICT_ACK ; |
---|
| 41 | delete out_PREDICT_PC_PREVIOUS ; |
---|
| 42 | delete out_PREDICT_PC_CURRENT ; |
---|
| 43 | delete out_PREDICT_PC_CURRENT_IS_DS_TAKE ; |
---|
| 44 | delete in_PREDICT_PC_NEXT ; |
---|
| 45 | delete in_PREDICT_PC_NEXT_IS_DS_TAKE ; |
---|
| 46 | delete [] in_PREDICT_INSTRUCTION_ENABLE ; |
---|
| 47 | if (_param->_have_port_instruction_ptr) |
---|
| 48 | delete in_PREDICT_INST_IFETCH_PTR ; |
---|
| 49 | delete in_PREDICT_BRANCH_STATE ; |
---|
| 50 | if (_param->_have_port_branch_update_prediction_id) |
---|
| 51 | delete in_PREDICT_BRANCH_UPDATE_PREDICTION_ID; |
---|
| 52 | delete in_EVENT_VAL ; |
---|
| 53 | delete out_EVENT_ACK ; |
---|
| 54 | delete in_EVENT_ADDRESS ; |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 58 | delete reg_PC_CURRENT_INSTRUCTION_ENABLE; |
---|
| 59 | delete reg_PC_NEXT_INSTRUCTION_ENABLE ; |
---|
| 60 | |
---|
| 61 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 62 | delete _component; |
---|
| 63 | |
---|
| 64 | log_printf(FUNC,Address_management,FUNCTION,"End"); |
---|
| 65 | }; |
---|
| 66 | |
---|
| 67 | }; // end namespace address_management |
---|
| 68 | }; // end namespace ifetch_unit |
---|
| 69 | }; // end namespace front_end |
---|
| 70 | }; // end namespace multi_front_end |
---|
| 71 | }; // end namespace core |
---|
| 72 | |
---|
| 73 | }; // end namespace behavioural |
---|
| 74 | }; // end namespace morpheo |
---|