[60] | 1 | /* |
---|
| 2 | * $Id: Register_unit_Glue_deallocation.cpp 136 2009-10-20 18:52:15Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Register_unit_Glue.h" |
---|
[112] | 9 | #include "Behavioural/include/Allocation.h" |
---|
[60] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_execute_loop { |
---|
| 15 | namespace execute_loop { |
---|
| 16 | namespace register_unit { |
---|
| 17 | namespace register_unit_glue { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Register_unit_Glue::deallocation" |
---|
| 22 | void Register_unit_Glue::deallocation (void) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); |
---|
| 25 | |
---|
[128] | 26 | // if (usage_is_set(_usage,USE_VHDL)) |
---|
[88] | 27 | { |
---|
[60] | 28 | //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
[112] | 29 | delete in_CLOCK ; |
---|
[60] | 30 | //#endif |
---|
[112] | 31 | delete in_NRESET; |
---|
[128] | 32 | // delete out_CONST_0; |
---|
| 33 | // delete out_CONST_1; |
---|
[60] | 34 | |
---|
[112] | 35 | DELETE1_SIGNAL( in_GPR_READ_VAL ,_param->_nb_gpr_read,1 ); |
---|
| 36 | DELETE1_SIGNAL(out_GPR_READ_ACK ,_param->_nb_gpr_read,1 ); |
---|
| 37 | DELETE1_SIGNAL( in_GPR_READ_OOO_ENGINE_ID ,_param->_nb_gpr_read,_param->_size_ooo_engine_id); |
---|
| 38 | DELETE1_SIGNAL(out_GPR_READ_DATA ,_param->_nb_gpr_read,_param->_size_general_data); |
---|
| 39 | DELETE1_SIGNAL(out_GPR_READ_DATA_VAL ,_param->_nb_gpr_read,1); |
---|
| 40 | |
---|
| 41 | DELETE2_SIGNAL(out_GPR_READ_REGISTERFILE_VAL ,_param->_nb_ooo_engine,_param->_nb_gpr_read,1 ); |
---|
| 42 | DELETE2_SIGNAL( in_GPR_READ_REGISTERFILE_ACK ,_param->_nb_ooo_engine,_param->_nb_gpr_read,1 ); |
---|
| 43 | DELETE2_SIGNAL( in_GPR_READ_REGISTERFILE_DATA,_param->_nb_ooo_engine,_param->_nb_gpr_read,_param->_size_general_data); |
---|
[60] | 44 | |
---|
[112] | 45 | DELETE2_SIGNAL(out_GPR_READ_STATUS_VAL ,_param->_nb_ooo_engine,_param->_nb_gpr_read,1 ); |
---|
| 46 | DELETE2_SIGNAL( in_GPR_READ_STATUS_ACK ,_param->_nb_ooo_engine,_param->_nb_gpr_read,1 ); |
---|
| 47 | DELETE2_SIGNAL( in_GPR_READ_STATUS_DATA_VAL,_param->_nb_ooo_engine,_param->_nb_gpr_read,1); |
---|
[60] | 48 | |
---|
[112] | 49 | DELETE1_SIGNAL( in_SPR_READ_VAL ,_param->_nb_spr_read,1 ); |
---|
| 50 | DELETE1_SIGNAL(out_SPR_READ_ACK ,_param->_nb_spr_read,1 ); |
---|
| 51 | DELETE1_SIGNAL( in_SPR_READ_OOO_ENGINE_ID ,_param->_nb_spr_read,_param->_size_ooo_engine_id); |
---|
| 52 | DELETE1_SIGNAL(out_SPR_READ_DATA ,_param->_nb_spr_read,_param->_size_special_data); |
---|
| 53 | DELETE1_SIGNAL(out_SPR_READ_DATA_VAL ,_param->_nb_spr_read,1); |
---|
| 54 | |
---|
| 55 | DELETE2_SIGNAL(out_SPR_READ_REGISTERFILE_VAL ,_param->_nb_ooo_engine,_param->_nb_spr_read,1 ); |
---|
| 56 | DELETE2_SIGNAL( in_SPR_READ_REGISTERFILE_ACK ,_param->_nb_ooo_engine,_param->_nb_spr_read,1 ); |
---|
| 57 | DELETE2_SIGNAL( in_SPR_READ_REGISTERFILE_DATA,_param->_nb_ooo_engine,_param->_nb_spr_read,_param->_size_special_data); |
---|
| 58 | |
---|
| 59 | DELETE2_SIGNAL(out_SPR_READ_STATUS_VAL ,_param->_nb_ooo_engine,_param->_nb_spr_read,1 ); |
---|
| 60 | DELETE2_SIGNAL( in_SPR_READ_STATUS_ACK ,_param->_nb_ooo_engine,_param->_nb_spr_read,1 ); |
---|
| 61 | DELETE2_SIGNAL( in_SPR_READ_STATUS_DATA_VAL,_param->_nb_ooo_engine,_param->_nb_spr_read,1); |
---|
| 62 | |
---|
| 63 | DELETE1_SIGNAL( in_GPR_WRITE_VAL ,_param->_nb_gpr_write,1 ); |
---|
| 64 | DELETE1_SIGNAL(out_GPR_WRITE_ACK ,_param->_nb_gpr_write,1 ); |
---|
| 65 | DELETE1_SIGNAL( in_GPR_WRITE_OOO_ENGINE_ID,_param->_nb_gpr_write,_param->_size_ooo_engine_id); |
---|
[60] | 66 | |
---|
[112] | 67 | |
---|
| 68 | DELETE2_SIGNAL(out_GPR_WRITE_REGISTERFILE_VAL,_param->_nb_ooo_engine,_param->_nb_gpr_write,1 ); |
---|
| 69 | DELETE2_SIGNAL( in_GPR_WRITE_REGISTERFILE_ACK,_param->_nb_ooo_engine,_param->_nb_gpr_write,1 ); |
---|
[60] | 70 | |
---|
[128] | 71 | DELETE2_SIGNAL(out_GPR_WRITE_STATUS_VAL ,_param->_nb_ooo_engine,_param->_nb_gpr_write,1 ); |
---|
| 72 | DELETE2_SIGNAL( in_GPR_WRITE_STATUS_ACK ,_param->_nb_ooo_engine,_param->_nb_gpr_write,1 ); |
---|
| 73 | DELETE2_SIGNAL(out_GPR_WRITE_STATUS_DATA ,_param->_nb_ooo_engine,_param->_nb_gpr_write,1 ); |
---|
[60] | 74 | |
---|
[128] | 75 | DELETE1_SIGNAL( in_SPR_WRITE_VAL ,_param->_nb_spr_write,1 ); |
---|
| 76 | DELETE1_SIGNAL(out_SPR_WRITE_ACK ,_param->_nb_spr_write,1 ); |
---|
| 77 | DELETE1_SIGNAL( in_SPR_WRITE_OOO_ENGINE_ID ,_param->_nb_spr_write,_param->_size_ooo_engine_id); |
---|
[60] | 78 | |
---|
[112] | 79 | DELETE2_SIGNAL(out_SPR_WRITE_REGISTERFILE_VAL,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
| 80 | DELETE2_SIGNAL( in_SPR_WRITE_REGISTERFILE_ACK,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
[60] | 81 | |
---|
[128] | 82 | DELETE2_SIGNAL(out_SPR_WRITE_STATUS_VAL ,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
| 83 | DELETE2_SIGNAL( in_SPR_WRITE_STATUS_ACK ,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
| 84 | DELETE2_SIGNAL(out_SPR_WRITE_STATUS_DATA ,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
[60] | 85 | |
---|
[136] | 86 | DELETE1_SIGNAL( in_ISSUE_VAL ,_param->_nb_inst_issue,1); |
---|
| 87 | DELETE1_SIGNAL(out_ISSUE_ACK ,_param->_nb_inst_issue,1); |
---|
| 88 | DELETE1_SIGNAL( in_ISSUE_OOO_ENGINE_ID ,_param->_nb_inst_issue,_param->_size_ooo_engine_id); |
---|
| 89 | DELETE1_SIGNAL( in_ISSUE_RD_USE ,_param->_nb_inst_issue,1); |
---|
| 90 | DELETE1_SIGNAL( in_ISSUE_RE_USE ,_param->_nb_inst_issue,1); |
---|
[60] | 91 | |
---|
[136] | 92 | DELETE2_SIGNAL(out_ISSUE_GPR_STATUS_VAL ,_param->_nb_ooo_engine,_param->_nb_inst_issue,1); |
---|
| 93 | DELETE2_SIGNAL( in_ISSUE_GPR_STATUS_ACK ,_param->_nb_ooo_engine,_param->_nb_inst_issue,1); |
---|
| 94 | DELETE2_SIGNAL(out_ISSUE_GPR_STATUS_DATA ,_param->_nb_ooo_engine,_param->_nb_inst_issue,1); |
---|
[60] | 95 | |
---|
[136] | 96 | DELETE2_SIGNAL(out_ISSUE_SPR_STATUS_VAL ,_param->_nb_ooo_engine,_param->_nb_inst_issue,1); |
---|
| 97 | DELETE2_SIGNAL( in_ISSUE_SPR_STATUS_ACK ,_param->_nb_ooo_engine,_param->_nb_inst_issue,1); |
---|
| 98 | DELETE2_SIGNAL(out_ISSUE_SPR_STATUS_DATA ,_param->_nb_ooo_engine,_param->_nb_inst_issue,1); |
---|
| 99 | |
---|
| 100 | // DELETE2_SIGNAL( in_INSERT_ROB_VAL ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 101 | // DELETE2_SIGNAL(out_INSERT_ROB_ACK ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 102 | // DELETE2_SIGNAL( in_INSERT_ROB_RD_USE ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 103 | // DELETE2_SIGNAL( in_INSERT_ROB_RE_USE ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 104 | |
---|
| 105 | // DELETE2_SIGNAL(out_INSERT_ROB_GPR_STATUS_VAL ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 106 | // DELETE2_SIGNAL( in_INSERT_ROB_GPR_STATUS_ACK ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 107 | // DELETE2_SIGNAL(out_INSERT_ROB_GPR_STATUS_DATA,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 108 | |
---|
| 109 | // DELETE2_SIGNAL(out_INSERT_ROB_SPR_STATUS_VAL ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 110 | // DELETE2_SIGNAL( in_INSERT_ROB_SPR_STATUS_ACK ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 111 | // DELETE2_SIGNAL(out_INSERT_ROB_SPR_STATUS_DATA,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
[88] | 112 | } |
---|
[60] | 113 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 114 | |
---|
| 115 | delete _component; |
---|
| 116 | |
---|
| 117 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"End"); |
---|
| 118 | }; |
---|
| 119 | |
---|
| 120 | }; // end namespace register_unit_glue |
---|
| 121 | }; // end namespace register_unit |
---|
| 122 | }; // end namespace execute_loop |
---|
| 123 | }; // end namespace multi_execute_loop |
---|
| 124 | }; // end namespace core |
---|
| 125 | |
---|
| 126 | }; // end namespace behavioural |
---|
| 127 | }; // end namespace morpheo |
---|