[60] | 1 | /* |
---|
| 2 | * $Id: Register_unit_Glue_deallocation.cpp 112 2009-03-18 22:36:26Z 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 | |
---|
[88] | 26 | if (usage_is_set(_usage,USE_VHDL)) |
---|
| 27 | { |
---|
[60] | 28 | //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
[112] | 29 | delete in_CLOCK ; |
---|
[60] | 30 | //#endif |
---|
[112] | 31 | delete in_NRESET; |
---|
| 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 | |
---|
[112] | 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 ); |
---|
[60] | 73 | |
---|
[112] | 74 | DELETE1_SIGNAL( in_SPR_WRITE_VAL ,_param->_nb_spr_write,1 ); |
---|
| 75 | DELETE1_SIGNAL(out_SPR_WRITE_ACK ,_param->_nb_spr_write,1 ); |
---|
| 76 | DELETE1_SIGNAL( in_SPR_WRITE_OOO_ENGINE_ID,_param->_nb_spr_write,_param->_size_ooo_engine_id); |
---|
[60] | 77 | |
---|
[112] | 78 | DELETE2_SIGNAL(out_SPR_WRITE_REGISTERFILE_VAL,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
| 79 | DELETE2_SIGNAL( in_SPR_WRITE_REGISTERFILE_ACK,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
[60] | 80 | |
---|
[112] | 81 | DELETE2_SIGNAL(out_SPR_WRITE_STATUS_VAL,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
| 82 | DELETE2_SIGNAL( in_SPR_WRITE_STATUS_ACK,_param->_nb_ooo_engine,_param->_nb_spr_write,1 ); |
---|
[60] | 83 | |
---|
[112] | 84 | DELETE2_SIGNAL( in_INSERT_ROB_VAL ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 85 | DELETE2_SIGNAL(out_INSERT_ROB_ACK ,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 86 | DELETE2_SIGNAL( in_INSERT_ROB_RD_USE,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 87 | DELETE2_SIGNAL( in_INSERT_ROB_RE_USE,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
[60] | 88 | |
---|
[112] | 89 | DELETE2_SIGNAL(out_INSERT_ROB_GPR_STATUS_VAL,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 90 | DELETE2_SIGNAL( in_INSERT_ROB_GPR_STATUS_ACK,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
[60] | 91 | |
---|
[112] | 92 | DELETE2_SIGNAL(out_INSERT_ROB_SPR_STATUS_VAL,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
| 93 | DELETE2_SIGNAL( in_INSERT_ROB_SPR_STATUS_ACK,_param->_nb_ooo_engine,_param->_nb_inst_insert_rob [it1],1); |
---|
[88] | 94 | } |
---|
[60] | 95 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 96 | |
---|
| 97 | delete _component; |
---|
| 98 | |
---|
| 99 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"End"); |
---|
| 100 | }; |
---|
| 101 | |
---|
| 102 | }; // end namespace register_unit_glue |
---|
| 103 | }; // end namespace register_unit |
---|
| 104 | }; // end namespace execute_loop |
---|
| 105 | }; // end namespace multi_execute_loop |
---|
| 106 | }; // end namespace core |
---|
| 107 | |
---|
| 108 | }; // end namespace behavioural |
---|
| 109 | }; // end namespace morpheo |
---|