[78] | 1 | /* |
---|
| 2 | * $Id: Register_Address_Translation_unit_deallocation.cpp 104 2009-01-21 21:53:13Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Register_Address_Translation_unit.h" |
---|
[104] | 9 | #include "Behavioural/include/Allocation.h" |
---|
[78] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace rename_unit { |
---|
| 17 | namespace register_translation_unit { |
---|
| 18 | namespace register_address_translation_unit { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Register_Address_Translation_unit::deallocation" |
---|
| 23 | void Register_Address_Translation_unit::deallocation (void) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin"); |
---|
| 26 | |
---|
[88] | 27 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[78] | 28 | { |
---|
| 29 | delete in_CLOCK ; |
---|
| 30 | delete in_NRESET; |
---|
| 31 | |
---|
| 32 | delete [] in_RENAME_VAL ; |
---|
| 33 | delete [] out_RENAME_ACK ; |
---|
| 34 | if (_param->_have_port_front_end_id) |
---|
| 35 | delete [] in_RENAME_FRONT_END_ID ; |
---|
| 36 | if (_param->_have_port_context_id) |
---|
| 37 | delete [] in_RENAME_CONTEXT_ID ; |
---|
| 38 | delete [] in_RENAME_NUM_REG_RA_LOG ; |
---|
| 39 | delete [] in_RENAME_NUM_REG_RB_LOG ; |
---|
| 40 | delete [] in_RENAME_NUM_REG_RC_LOG ; |
---|
| 41 | delete [] in_RENAME_NUM_REG_RD_LOG ; |
---|
| 42 | delete [] in_RENAME_NUM_REG_RE_LOG ; |
---|
| 43 | delete [] out_RENAME_NUM_REG_RA_PHY ; |
---|
| 44 | delete [] out_RENAME_NUM_REG_RB_PHY ; |
---|
| 45 | delete [] out_RENAME_NUM_REG_RC_PHY ; |
---|
| 46 | delete [] out_RENAME_NUM_REG_RD_PHY_OLD; |
---|
| 47 | delete [] out_RENAME_NUM_REG_RE_PHY_OLD; |
---|
| 48 | |
---|
| 49 | delete [] in_INSERT_VAL ; |
---|
| 50 | delete [] out_INSERT_ACK ; |
---|
| 51 | // if (_param->_have_port_front_end_id) |
---|
| 52 | // delete [] in_INSERT_FRONT_END_ID ; |
---|
| 53 | // if (_param->_have_port_context_id) |
---|
| 54 | // delete [] in_INSERT_CONTEXT_ID ; |
---|
| 55 | delete [] in_INSERT_WRITE_RD ; |
---|
| 56 | delete [] in_INSERT_WRITE_RE ; |
---|
| 57 | delete [] in_INSERT_NUM_REG_RD_LOG ; |
---|
| 58 | delete [] in_INSERT_NUM_REG_RE_LOG ; |
---|
| 59 | delete [] in_INSERT_NUM_REG_RD_PHY ; |
---|
| 60 | delete [] in_INSERT_NUM_REG_RE_PHY ; |
---|
| 61 | |
---|
| 62 | delete [] in_RETIRE_VAL ; |
---|
| 63 | delete [] out_RETIRE_ACK ; |
---|
| 64 | if (_param->_have_port_front_end_id) |
---|
| 65 | delete [] in_RETIRE_FRONT_END_ID ; |
---|
| 66 | if (_param->_have_port_context_id) |
---|
| 67 | delete [] in_RETIRE_CONTEXT_ID ; |
---|
| 68 | delete [] in_RETIRE_WRITE_RD ; |
---|
| 69 | delete [] in_RETIRE_WRITE_RE ; |
---|
| 70 | delete [] in_RETIRE_NUM_REG_RD_LOG ; |
---|
| 71 | delete [] in_RETIRE_NUM_REG_RE_LOG ; |
---|
| 72 | delete [] in_RETIRE_NUM_REG_RD_PHY_OLD; |
---|
| 73 | delete [] in_RETIRE_NUM_REG_RE_PHY_OLD; |
---|
[88] | 74 | delete [] out_RETIRE_RESTORE_RD_PHY_OLD; |
---|
| 75 | delete [] out_RETIRE_RESTORE_RE_PHY_OLD; |
---|
| 76 | |
---|
[104] | 77 | DELETE1(internal_RENAME_ACK ,_param->_nb_inst_insert); |
---|
| 78 | DELETE1(internal_INSERT_ACK ,_param->_nb_inst_insert); |
---|
| 79 | DELETE1(internal_RETIRE_ACK ,_param->_nb_inst_retire); |
---|
| 80 | DELETE2(internal_RETIRE_EVENT_ACK ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 81 | |
---|
| 82 | DELETE2_SIGNAL( in_RETIRE_EVENT_VAL ,_param->_nb_front_end, _param->_nb_context[it1],1); |
---|
| 83 | DELETE2_SIGNAL(out_RETIRE_EVENT_ACK ,_param->_nb_front_end, _param->_nb_context[it1],1); |
---|
| 84 | DELETE2_SIGNAL( in_RETIRE_EVENT_STATE ,_param->_nb_front_end, _param->_nb_context[it1],_param->_size_event_state); |
---|
[88] | 85 | |
---|
| 86 | delete [] rat_gpr ; |
---|
| 87 | delete [] rat_spr ; |
---|
| 88 | delete [] rat_gpr_update_table; |
---|
| 89 | delete [] rat_spr_update_table; |
---|
| 90 | delete [] internal_rat_gpr_update_table; |
---|
| 91 | delete [] internal_rat_spr_update_table; |
---|
[78] | 92 | } |
---|
[88] | 93 | |
---|
[78] | 94 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 95 | delete _component; |
---|
| 96 | |
---|
| 97 | log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End"); |
---|
| 98 | }; |
---|
| 99 | |
---|
| 100 | }; // end namespace register_address_translation_unit |
---|
| 101 | }; // end namespace register_translation_unit |
---|
| 102 | }; // end namespace rename_unit |
---|
| 103 | }; // end namespace ooo_engine |
---|
| 104 | }; // end namespace multi_ooo_engine |
---|
| 105 | }; // end namespace core |
---|
| 106 | |
---|
| 107 | }; // end namespace behavioural |
---|
| 108 | }; // end namespace morpheo |
---|