[78] | 1 | /* |
---|
| 2 | * $Id: Register_translation_unit_deallocation.cpp 121 2009-05-27 10:13:56Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/include/Register_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 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Register_translation_unit::deallocation" |
---|
| 22 | void Register_translation_unit::deallocation (void) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Register_translation_unit,FUNCTION,"Begin"); |
---|
| 25 | |
---|
[88] | 26 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[78] | 27 | { |
---|
| 28 | delete in_CLOCK ; |
---|
| 29 | delete in_NRESET; |
---|
| 30 | |
---|
[112] | 31 | DELETE1_SIGNAL( in_RENAME_VAL ,_param->_nb_inst_insert,1); |
---|
| 32 | DELETE1_SIGNAL(out_RENAME_ACK ,_param->_nb_inst_insert,1); |
---|
| 33 | DELETE1_SIGNAL( in_RENAME_FRONT_END_ID ,_param->_nb_inst_insert,_param->_size_front_end_id ); |
---|
| 34 | DELETE1_SIGNAL( in_RENAME_CONTEXT_ID ,_param->_nb_inst_insert,_param->_size_context_id ); |
---|
| 35 | DELETE1_SIGNAL( in_RENAME_READ_RA ,_param->_nb_inst_insert,1 ); |
---|
| 36 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RA_LOG,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
| 37 | DELETE1_SIGNAL( in_RENAME_READ_RB ,_param->_nb_inst_insert,1 ); |
---|
| 38 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RB_LOG,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
| 39 | DELETE1_SIGNAL( in_RENAME_READ_RC ,_param->_nb_inst_insert,1 ); |
---|
| 40 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RC_LOG,_param->_nb_inst_insert,_param->_size_special_register_logic); |
---|
| 41 | DELETE1_SIGNAL( in_RENAME_WRITE_RD ,_param->_nb_inst_insert,1 ); |
---|
| 42 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RD_LOG,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
| 43 | DELETE1_SIGNAL( in_RENAME_WRITE_RE ,_param->_nb_inst_insert,1 ); |
---|
| 44 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RE_LOG,_param->_nb_inst_insert,_param->_size_special_register_logic); |
---|
[78] | 45 | |
---|
[112] | 46 | DELETE1_SIGNAL(out_INSERT_VAL ,_param->_nb_inst_insert,1); |
---|
| 47 | DELETE1_SIGNAL( in_INSERT_ACK ,_param->_nb_inst_insert,1); |
---|
| 48 | DELETE1_SIGNAL(out_INSERT_FRONT_END_ID ,_param->_nb_inst_insert,_param->_size_front_end_id ); |
---|
| 49 | DELETE1_SIGNAL(out_INSERT_CONTEXT_ID ,_param->_nb_inst_insert,_param->_size_context_id ); |
---|
| 50 | DELETE1_SIGNAL(out_INSERT_READ_RA ,_param->_nb_inst_insert,1 ); |
---|
[121] | 51 | #ifdef DEBUG |
---|
[112] | 52 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RA_LOG ,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
[121] | 53 | #endif |
---|
[112] | 54 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RA_PHY ,_param->_nb_inst_insert,_param->_size_general_register ); |
---|
| 55 | DELETE1_SIGNAL(out_INSERT_READ_RB ,_param->_nb_inst_insert,1 ); |
---|
[121] | 56 | #ifdef DEBUG |
---|
[112] | 57 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RB_LOG ,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
[121] | 58 | #endif |
---|
[112] | 59 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RB_PHY ,_param->_nb_inst_insert,_param->_size_general_register ); |
---|
| 60 | DELETE1_SIGNAL(out_INSERT_READ_RC ,_param->_nb_inst_insert,1 ); |
---|
[121] | 61 | #ifdef DEBUG |
---|
[112] | 62 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RC_LOG ,_param->_nb_inst_insert,_param->_size_special_register_logic); |
---|
[121] | 63 | #endif |
---|
[112] | 64 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RC_PHY ,_param->_nb_inst_insert,_param->_size_special_register ); |
---|
| 65 | DELETE1_SIGNAL(out_INSERT_WRITE_RD ,_param->_nb_inst_insert,1 ); |
---|
| 66 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RD_LOG ,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
| 67 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RD_PHY_OLD,_param->_nb_inst_insert,_param->_size_general_register ); |
---|
| 68 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RD_PHY_NEW,_param->_nb_inst_insert,_param->_size_general_register ); |
---|
| 69 | DELETE1_SIGNAL(out_INSERT_WRITE_RE ,_param->_nb_inst_insert,1 ); |
---|
| 70 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RE_LOG ,_param->_nb_inst_insert,_param->_size_special_register_logic); |
---|
| 71 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RE_PHY_OLD,_param->_nb_inst_insert,_param->_size_special_register ); |
---|
| 72 | DELETE1_SIGNAL(out_INSERT_NUM_REG_RE_PHY_NEW,_param->_nb_inst_insert,_param->_size_special_register ); |
---|
[78] | 73 | |
---|
[112] | 74 | DELETE1_SIGNAL( in_RETIRE_VAL ,_param->_nb_inst_retire,1); |
---|
| 75 | DELETE1_SIGNAL(out_RETIRE_ACK ,_param->_nb_inst_retire,1); |
---|
| 76 | DELETE1_SIGNAL( in_RETIRE_FRONT_END_ID ,_param->_nb_inst_retire,_param->_size_front_end_id ); |
---|
| 77 | DELETE1_SIGNAL( in_RETIRE_CONTEXT_ID ,_param->_nb_inst_retire,_param->_size_context_id ); |
---|
[121] | 78 | // DELETE1_SIGNAL( in_RETIRE_READ_RA ,_param->_nb_inst_retire,1 ); |
---|
| 79 | // DELETE1_SIGNAL( in_RETIRE_NUM_REG_RA_PHY ,_param->_nb_inst_retire,_param->_size_general_register ); |
---|
| 80 | // DELETE1_SIGNAL( in_RETIRE_READ_RB ,_param->_nb_inst_retire,1 ); |
---|
| 81 | // DELETE1_SIGNAL( in_RETIRE_NUM_REG_RB_PHY ,_param->_nb_inst_retire,_param->_size_general_register ); |
---|
| 82 | // DELETE1_SIGNAL( in_RETIRE_READ_RC ,_param->_nb_inst_retire,1 ); |
---|
| 83 | // DELETE1_SIGNAL( in_RETIRE_NUM_REG_RC_PHY ,_param->_nb_inst_retire,_param->_size_special_register ); |
---|
[112] | 84 | DELETE1_SIGNAL( in_RETIRE_WRITE_RD ,_param->_nb_inst_retire,1 ); |
---|
| 85 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RD_LOG ,_param->_nb_inst_retire,_param->_size_general_register_logic); |
---|
| 86 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RD_PHY_OLD,_param->_nb_inst_retire,_param->_size_general_register ); |
---|
| 87 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RD_PHY_NEW,_param->_nb_inst_retire,_param->_size_general_register ); |
---|
| 88 | DELETE1_SIGNAL( in_RETIRE_WRITE_RE ,_param->_nb_inst_retire,1 ); |
---|
| 89 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RE_LOG ,_param->_nb_inst_retire,_param->_size_special_register_logic); |
---|
| 90 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RE_PHY_OLD,_param->_nb_inst_retire,_param->_size_special_register ); |
---|
| 91 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RE_PHY_NEW,_param->_nb_inst_retire,_param->_size_special_register ); |
---|
[104] | 92 | |
---|
| 93 | DELETE2_SIGNAL( in_RETIRE_EVENT_VAL ,_param->_nb_front_end, _param->_nb_context[it1],1); |
---|
| 94 | DELETE2_SIGNAL(out_RETIRE_EVENT_ACK ,_param->_nb_front_end, _param->_nb_context[it1],1); |
---|
| 95 | DELETE2_SIGNAL( in_RETIRE_EVENT_STATE ,_param->_nb_front_end, _param->_nb_context[it1],_param->_size_event_state); |
---|
[78] | 96 | } |
---|
[104] | 97 | |
---|
[78] | 98 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 99 | |
---|
| 100 | delete _component_dependency_checking_unit ; |
---|
| 101 | delete _component_free_list_unit ; |
---|
| 102 | delete _component_register_address_translation_unit; |
---|
| 103 | delete _component_stat_list_unit ; |
---|
| 104 | delete _component_register_translation_unit_glue ; |
---|
| 105 | |
---|
| 106 | delete _component; |
---|
| 107 | |
---|
| 108 | log_printf(FUNC,Register_translation_unit,FUNCTION,"End"); |
---|
| 109 | }; |
---|
| 110 | |
---|
| 111 | }; // end namespace register_translation_unit |
---|
| 112 | }; // end namespace rename_unit |
---|
| 113 | }; // end namespace ooo_engine |
---|
| 114 | }; // end namespace multi_ooo_engine |
---|
| 115 | }; // end namespace core |
---|
| 116 | |
---|
| 117 | }; // end namespace behavioural |
---|
| 118 | }; // end namespace morpheo |
---|