[78] | 1 | /* |
---|
| 2 | * $Id: Stat_List_unit_deallocation.cpp 123 2009-06-08 20:43:30Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Stat_List_unit.h" |
---|
[112] | 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 stat_list_unit { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Stat_List_unit::deallocation" |
---|
| 23 | void Stat_List_unit::deallocation (void) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Stat_List_unit,FUNCTION,"Begin"); |
---|
| 26 | |
---|
[88] | 27 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[78] | 28 | { |
---|
| 29 | delete in_CLOCK ; |
---|
| 30 | delete in_NRESET; |
---|
| 31 | |
---|
[112] | 32 | DELETE1_SIGNAL( in_INSERT_VAL ,_param->_nb_inst_insert,1); |
---|
| 33 | DELETE1_SIGNAL(out_INSERT_ACK ,_param->_nb_inst_insert,1); |
---|
| 34 | DELETE1_SIGNAL( in_INSERT_READ_RA ,_param->_nb_inst_insert,1 ); |
---|
| 35 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RA_PHY ,_param->_nb_inst_insert,_param->_size_general_register); |
---|
| 36 | DELETE1_SIGNAL( in_INSERT_READ_RB ,_param->_nb_inst_insert,1 ); |
---|
| 37 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RB_PHY ,_param->_nb_inst_insert,_param->_size_general_register); |
---|
| 38 | DELETE1_SIGNAL( in_INSERT_READ_RC ,_param->_nb_inst_insert,1 ); |
---|
| 39 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RC_PHY ,_param->_nb_inst_insert,_param->_size_special_register); |
---|
| 40 | DELETE1_SIGNAL( in_INSERT_WRITE_RD ,_param->_nb_inst_insert,1 ); |
---|
[117] | 41 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RD_PHY_OLD,_param->_nb_inst_insert,_param->_size_general_register); |
---|
[112] | 42 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RD_PHY_NEW,_param->_nb_inst_insert,_param->_size_general_register); |
---|
| 43 | DELETE1_SIGNAL( in_INSERT_WRITE_RE ,_param->_nb_inst_insert,1 ); |
---|
[117] | 44 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RE_PHY_OLD,_param->_nb_inst_insert,_param->_size_special_register); |
---|
[112] | 45 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RE_PHY_NEW,_param->_nb_inst_insert,_param->_size_special_register); |
---|
[117] | 46 | |
---|
[112] | 47 | DELETE1_SIGNAL( in_RETIRE_VAL ,_param->_nb_inst_retire,1); |
---|
| 48 | DELETE1_SIGNAL(out_RETIRE_ACK ,_param->_nb_inst_retire,1); |
---|
| 49 | DELETE1_SIGNAL( in_RETIRE_RESTORE ,_param->_nb_inst_retire,1 ); |
---|
[121] | 50 | // DELETE1_SIGNAL( in_RETIRE_READ_RA ,_param->_nb_inst_retire,1 ); |
---|
| 51 | // DELETE1_SIGNAL( in_RETIRE_NUM_REG_RA_PHY ,_param->_nb_inst_retire,_param->_size_general_register); |
---|
| 52 | // DELETE1_SIGNAL( in_RETIRE_READ_RB ,_param->_nb_inst_retire,1 ); |
---|
| 53 | // DELETE1_SIGNAL( in_RETIRE_NUM_REG_RB_PHY ,_param->_nb_inst_retire,_param->_size_general_register); |
---|
| 54 | // DELETE1_SIGNAL( in_RETIRE_READ_RC ,_param->_nb_inst_retire,1 ); |
---|
| 55 | // DELETE1_SIGNAL( in_RETIRE_NUM_REG_RC_PHY ,_param->_nb_inst_retire,_param->_size_special_register); |
---|
[112] | 56 | DELETE1_SIGNAL( in_RETIRE_WRITE_RD ,_param->_nb_inst_retire,1 ); |
---|
| 57 | DELETE1_SIGNAL( in_RETIRE_RESTORE_RD_PHY_OLD,_param->_nb_inst_retire,1 ); |
---|
| 58 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RD_PHY_OLD,_param->_nb_inst_retire,_param->_size_general_register); |
---|
| 59 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RD_PHY_NEW,_param->_nb_inst_retire,_param->_size_general_register); |
---|
| 60 | DELETE1_SIGNAL( in_RETIRE_WRITE_RE ,_param->_nb_inst_retire,1 ); |
---|
| 61 | DELETE1_SIGNAL( in_RETIRE_RESTORE_RE_PHY_OLD,_param->_nb_inst_retire,1 ); |
---|
| 62 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RE_PHY_OLD,_param->_nb_inst_retire,_param->_size_special_register); |
---|
| 63 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RE_PHY_NEW,_param->_nb_inst_retire,_param->_size_special_register); |
---|
[78] | 64 | |
---|
[112] | 65 | DELETE1_SIGNAL(out_PUSH_GPR_VAL ,_param->_nb_reg_free,1); |
---|
| 66 | DELETE1_SIGNAL( in_PUSH_GPR_ACK ,_param->_nb_reg_free,1); |
---|
| 67 | DELETE1_SIGNAL(out_PUSH_GPR_NUM_REG,_param->_nb_reg_free,_param->_size_general_register); |
---|
[78] | 68 | |
---|
[112] | 69 | DELETE1_SIGNAL(out_PUSH_SPR_VAL ,_param->_nb_reg_free,1); |
---|
| 70 | DELETE1_SIGNAL( in_PUSH_SPR_ACK ,_param->_nb_reg_free,1); |
---|
| 71 | DELETE1_SIGNAL(out_PUSH_SPR_NUM_REG,_param->_nb_reg_free,_param->_size_special_register); |
---|
| 72 | |
---|
[123] | 73 | #ifdef DEBUG_TEST |
---|
| 74 | DELETE0_SIGNAL( in_INFO_ROB_EMPTY ,1); |
---|
| 75 | DELETE0_SIGNAL( in_INFO_NB_GPR_FREE,_param->_size_general_register+1); |
---|
| 76 | DELETE0_SIGNAL( in_INFO_NB_SPR_FREE,_param->_size_special_register+1); |
---|
| 77 | #endif |
---|
| 78 | |
---|
[112] | 79 | DELETE2(gpr_stat_list ,_param->_nb_bank,_param->_nb_general_register_by_bank); |
---|
| 80 | DELETE2(spr_stat_list ,_param->_nb_bank,_param->_nb_special_register_by_bank); |
---|
| 81 | DELETE1(internal_INSERT_ACK ,_param->_nb_inst_insert); |
---|
| 82 | DELETE1(internal_RETIRE_ACK ,_param->_nb_inst_retire); |
---|
| 83 | DELETE1(internal_PUSH_GPR_VAL ,_param->_nb_reg_free); |
---|
| 84 | DELETE1(internal_PUSH_GPR_NUM_BANK,_param->_nb_reg_free); |
---|
[118] | 85 | DELETE1(internal_PUSH_GPR_NUM_REG ,_param->_nb_reg_free); |
---|
[112] | 86 | DELETE1(internal_PUSH_SPR_VAL ,_param->_nb_reg_free); |
---|
| 87 | DELETE1(internal_PUSH_SPR_NUM_BANK,_param->_nb_reg_free); |
---|
[118] | 88 | DELETE1(internal_PUSH_SPR_NUM_REG ,_param->_nb_reg_free); |
---|
[78] | 89 | } |
---|
[88] | 90 | |
---|
[78] | 91 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 92 | |
---|
| 93 | delete _component; |
---|
| 94 | |
---|
| 95 | log_printf(FUNC,Stat_List_unit,FUNCTION,"End"); |
---|
| 96 | }; |
---|
| 97 | |
---|
| 98 | }; // end namespace stat_list_unit |
---|
| 99 | }; // end namespace register_translation_unit |
---|
| 100 | }; // end namespace rename_unit |
---|
| 101 | }; // end namespace ooo_engine |
---|
| 102 | }; // end namespace multi_ooo_engine |
---|
| 103 | }; // end namespace core |
---|
| 104 | |
---|
| 105 | }; // end namespace behavioural |
---|
| 106 | }; // end namespace morpheo |
---|