Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/src/Execution_unit_to_Write_unit_deallocation.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/src/Execution_unit_to_Write_unit_deallocation.cpp
r81 r88 7 7 8 8 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/include/Execution_unit_to_Write_unit.h" 9 #include "Behavioural/include/Allocation.h" 9 10 10 11 namespace morpheo { … … 23 24 log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"Begin"); 24 25 25 if ( _usage & USE_SYSTEMC)26 if (usage_is_set(_usage,USE_SYSTEMC)) 26 27 { 27 28 delete in_CLOCK ; 28 29 delete in_NRESET; 29 30 30 delete [] in_EXECUTE_UNIT_OUT_VAL; 31 delete [] out_EXECUTE_UNIT_OUT_ACK; 32 if (_param->_have_port_context_id) 33 delete [] in_EXECUTE_UNIT_OUT_CONTEXT_ID ; 34 if (_param->_have_port_front_end_id) 35 delete [] in_EXECUTE_UNIT_OUT_FRONT_END_ID ; 36 if (_param->_have_port_ooo_engine_id) 37 delete [] in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID; 38 if (_param->_have_port_packet_id) 39 delete [] in_EXECUTE_UNIT_OUT_PACKET_ID ; 40 //delete [] in_EXECUTE_UNIT_OUT_OPERATION ; 41 delete [] in_EXECUTE_UNIT_OUT_TYPE ; 42 delete [] in_EXECUTE_UNIT_OUT_WRITE_RD ; 43 delete [] in_EXECUTE_UNIT_OUT_NUM_REG_RD ; 44 delete [] in_EXECUTE_UNIT_OUT_DATA_RD ; 45 delete [] in_EXECUTE_UNIT_OUT_WRITE_RE ; 46 delete [] in_EXECUTE_UNIT_OUT_NUM_REG_RE ; 47 delete [] in_EXECUTE_UNIT_OUT_DATA_RE ; 48 delete [] in_EXECUTE_UNIT_OUT_EXCEPTION ; 49 delete [] in_EXECUTE_UNIT_OUT_NO_SEQUENCE ; 50 delete [] in_EXECUTE_UNIT_OUT_ADDRESS ; 31 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_VAL , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],1); 32 DELETE2_SIGNAL(out_EXECUTE_UNIT_OUT_ACK , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],1); 33 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_CONTEXT_ID , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_context_id ); 34 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_FRONT_END_ID , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_front_end_id ); 35 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID, _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_ooo_engine_id ); 36 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_PACKET_ID , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_rob_ptr ); 37 // DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_OPERATION , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_operation ); 38 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_TYPE , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_type ); 39 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_WRITE_RD , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],1 ); 40 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_NUM_REG_RD , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_general_register); 41 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_DATA_RD , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_general_data ); 42 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_WRITE_RE , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],1 ); 43 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_NUM_REG_RE , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_special_register); 44 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_DATA_RE , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_special_data ); 45 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_EXCEPTION , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_exception ); 46 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_NO_SEQUENCE , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],1 ); 47 DELETE2_SIGNAL( in_EXECUTE_UNIT_OUT_ADDRESS , _param->_nb_execute_unit, _param->_nb_execute_unit_port[it1],_param->_size_general_data ); 51 48 52 delete [] out_WRITE_UNIT_IN_VAL; 53 delete [] in_WRITE_UNIT_IN_ACK; 54 if (_param->_have_port_context_id) 55 delete [] out_WRITE_UNIT_IN_CONTEXT_ID ; 56 if (_param->_have_port_front_end_id) 57 delete [] out_WRITE_UNIT_IN_FRONT_END_ID ; 58 if (_param->_have_port_ooo_engine_id) 59 delete [] out_WRITE_UNIT_IN_OOO_ENGINE_ID; 60 if (_param->_have_port_packet_id) 61 delete [] out_WRITE_UNIT_IN_PACKET_ID ; 62 //delete [] out_WRITE_UNIT_IN_OPERATION ; 63 delete [] out_WRITE_UNIT_IN_TYPE ; 64 delete [] out_WRITE_UNIT_IN_WRITE_RD ; 65 delete [] out_WRITE_UNIT_IN_NUM_REG_RD ; 66 delete [] out_WRITE_UNIT_IN_DATA_RD ; 67 delete [] out_WRITE_UNIT_IN_WRITE_RE ; 68 delete [] out_WRITE_UNIT_IN_NUM_REG_RE ; 69 delete [] out_WRITE_UNIT_IN_DATA_RE ; 70 delete [] out_WRITE_UNIT_IN_EXCEPTION ; 71 delete [] out_WRITE_UNIT_IN_NO_SEQUENCE ; 72 delete [] out_WRITE_UNIT_IN_ADDRESS ; 49 DELETE1_SIGNAL(out_WRITE_UNIT_IN_VAL , _param->_nb_write_unit,1); 50 DELETE1_SIGNAL( in_WRITE_UNIT_IN_ACK , _param->_nb_write_unit,1); 51 DELETE1_SIGNAL(out_WRITE_UNIT_IN_CONTEXT_ID , _param->_nb_write_unit,_param->_size_context_id ); 52 DELETE1_SIGNAL(out_WRITE_UNIT_IN_FRONT_END_ID , _param->_nb_write_unit,_param->_size_front_end_id ); 53 DELETE1_SIGNAL(out_WRITE_UNIT_IN_OOO_ENGINE_ID, _param->_nb_write_unit,_param->_size_ooo_engine_id ); 54 DELETE1_SIGNAL(out_WRITE_UNIT_IN_PACKET_ID , _param->_nb_write_unit,_param->_size_rob_ptr ); 55 // DELETE1_SIGNAL(out_WRITE_UNIT_IN_OPERATION , _param->_nb_write_unit,_param->_size_operation ); 56 DELETE1_SIGNAL(out_WRITE_UNIT_IN_TYPE , _param->_nb_write_unit,_param->_size_type ); 57 DELETE1_SIGNAL(out_WRITE_UNIT_IN_WRITE_RD , _param->_nb_write_unit,1 ); 58 DELETE1_SIGNAL(out_WRITE_UNIT_IN_NUM_REG_RD , _param->_nb_write_unit,_param->_size_general_register); 59 DELETE1_SIGNAL(out_WRITE_UNIT_IN_DATA_RD , _param->_nb_write_unit,_param->_size_general_data ); 60 DELETE1_SIGNAL(out_WRITE_UNIT_IN_WRITE_RE , _param->_nb_write_unit,1 ); 61 DELETE1_SIGNAL(out_WRITE_UNIT_IN_NUM_REG_RE , _param->_nb_write_unit,_param->_size_special_register); 62 DELETE1_SIGNAL(out_WRITE_UNIT_IN_DATA_RE , _param->_nb_write_unit,_param->_size_special_data ); 63 DELETE1_SIGNAL(out_WRITE_UNIT_IN_EXCEPTION , _param->_nb_write_unit,_param->_size_exception ); 64 DELETE1_SIGNAL(out_WRITE_UNIT_IN_NO_SEQUENCE , _param->_nb_write_unit,1 ); 65 DELETE1_SIGNAL(out_WRITE_UNIT_IN_ADDRESS , _param->_nb_write_unit,_param->_size_general_data ); 66 67 delete [] _destination; 73 68 } 74 69 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 75 70 76 delete [] _destination;77 71 delete _component; 78 72
Note: See TracChangeset
for help on using the changeset viewer.