[88] | 1 | /* |
---|
| 2 | * $Id: Front_end_Glue_deallocation.cpp 97 2008-12-19 15:34:00Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Front_end_Glue/include/Front_end_Glue.h" |
---|
| 9 | #include "Behavioural/include/Allocation.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace front_end_glue { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Front_end_Glue::deallocation" |
---|
| 21 | void Front_end_Glue::deallocation (void) |
---|
| 22 | { |
---|
| 23 | log_begin(Front_end_Glue,FUNCTION); |
---|
| 24 | |
---|
| 25 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
| 26 | { |
---|
| 27 | delete in_CLOCK ; |
---|
| 28 | delete in_NRESET; |
---|
| 29 | |
---|
| 30 | DELETE2_SIGNAL(out_IFETCH_DECOD_UNIT_CONTEXT_ID ,_param->_nb_decod_unit,_param->_decod_unit_nb_context [it1],_param->_size_context_id); |
---|
| 31 | |
---|
| 32 | DELETE2_SIGNAL(out_DECOD_CONTEXT_ID ,_param->_nb_decod_unit,_param->_nb_inst_decod[it1],_param->_size_context_id); |
---|
| 33 | DELETE2_SIGNAL( in_DECOD_DECOD_UNIT_CONTEXT_ID ,_param->_nb_decod_unit,_param->_nb_inst_decod[it1],_param->_size_context_id); |
---|
| 34 | |
---|
| 35 | DELETE1_SIGNAL( in_BRANCH_COMPLETE_VAL ,_param->_nb_inst_branch_complete,1); |
---|
| 36 | DELETE1_SIGNAL(out_BRANCH_COMPLETE_ACK ,_param->_nb_inst_branch_complete,1); |
---|
| 37 | DELETE1_SIGNAL(out_BRANCH_COMPLETE_MISS_PREDICTION ,_param->_nb_inst_branch_complete,1); |
---|
| 38 | DELETE1_SIGNAL(out_BRANCH_COMPLETE_PREDICTION_UNIT_VAL ,_param->_nb_inst_branch_complete,1); |
---|
| 39 | DELETE1_SIGNAL( in_BRANCH_COMPLETE_PREDICTION_UNIT_ACK ,_param->_nb_inst_branch_complete,1); |
---|
| 40 | DELETE1_SIGNAL( in_BRANCH_COMPLETE_PREDICTION_UNIT_MISS_PREDICTION ,_param->_nb_inst_branch_complete,1); |
---|
| 41 | DELETE1_SIGNAL(out_BRANCH_COMPLETE_CONTEXT_STATE_VAL ,_param->_nb_inst_branch_complete,1); |
---|
| 42 | DELETE1_SIGNAL( in_BRANCH_COMPLETE_CONTEXT_STATE_ACK ,_param->_nb_inst_branch_complete,1); |
---|
| 43 | DELETE1_SIGNAL(out_BRANCH_COMPLETE_CONTEXT_STATE_MISS_PREDICTION ,_param->_nb_inst_branch_complete,1); |
---|
| 44 | |
---|
| 45 | DELETE1_SIGNAL(out_EVENT_VAL ,_param->_nb_context,1); |
---|
| 46 | DELETE1_SIGNAL( in_EVENT_ACK ,_param->_nb_context,1); |
---|
| 47 | DELETE1_SIGNAL(out_EVENT_ADDRESS ,_param->_nb_context,_param->_size_instruction_address); |
---|
| 48 | DELETE1_SIGNAL(out_EVENT_ADDRESS_NEXT ,_param->_nb_context,_param->_size_instruction_address); |
---|
| 49 | DELETE1_SIGNAL(out_EVENT_ADDRESS_NEXT_VAL ,_param->_nb_context,1); |
---|
| 50 | DELETE1_SIGNAL(out_EVENT_IS_DS_TAKE ,_param->_nb_context,1); |
---|
| 51 | DELETE1_SIGNAL(out_EVENT_IFETCH_UNIT_VAL ,_param->_nb_context,1); |
---|
| 52 | DELETE1_SIGNAL( in_EVENT_IFETCH_UNIT_ACK ,_param->_nb_context,1); |
---|
| 53 | DELETE1_SIGNAL(out_EVENT_IFETCH_UNIT_ADDRESS ,_param->_nb_context,_param->_size_instruction_address); |
---|
| 54 | DELETE1_SIGNAL(out_EVENT_IFETCH_UNIT_ADDRESS_NEXT ,_param->_nb_context,_param->_size_instruction_address); |
---|
| 55 | DELETE1_SIGNAL(out_EVENT_IFETCH_UNIT_ADDRESS_NEXT_VAL ,_param->_nb_context,1); |
---|
| 56 | DELETE1_SIGNAL(out_EVENT_IFETCH_UNIT_IS_DS_TAKE ,_param->_nb_context,1); |
---|
[97] | 57 | |
---|
| 58 | DELETE1_SIGNAL(out_EVENT_PREDICTION_UNIT_VAL ,_param->_nb_context,1); |
---|
| 59 | DELETE1_SIGNAL( in_EVENT_PREDICTION_UNIT_ACK ,_param->_nb_context,1); |
---|
| 60 | DELETE1_SIGNAL(out_EVENT_PREDICTION_UNIT_TYPE ,_param->_nb_context,_param->_size_event_type); |
---|
| 61 | DELETE1_SIGNAL(out_EVENT_PREDICTION_UNIT_DEPTH ,_param->_nb_context,_param->_size_depth); |
---|
| 62 | |
---|
[88] | 63 | DELETE1_SIGNAL( in_EVENT_CONTEXT_STATE_VAL ,_param->_nb_context,1); |
---|
| 64 | DELETE1_SIGNAL(out_EVENT_CONTEXT_STATE_ACK ,_param->_nb_context,1); |
---|
| 65 | DELETE1_SIGNAL( in_EVENT_CONTEXT_STATE_ADDRESS ,_param->_nb_context,_param->_size_instruction_address); |
---|
| 66 | DELETE1_SIGNAL( in_EVENT_CONTEXT_STATE_ADDRESS_NEXT ,_param->_nb_context,_param->_size_instruction_address); |
---|
| 67 | DELETE1_SIGNAL( in_EVENT_CONTEXT_STATE_ADDRESS_NEXT_VAL ,_param->_nb_context,1); |
---|
| 68 | DELETE1_SIGNAL( in_EVENT_CONTEXT_STATE_IS_DS_TAKE ,_param->_nb_context,1); |
---|
[97] | 69 | DELETE1_SIGNAL( in_EVENT_CONTEXT_STATE_TYPE ,_param->_nb_context,_param->_size_event_type); |
---|
| 70 | DELETE1_SIGNAL( in_EVENT_CONTEXT_STATE_DEPTH ,_param->_nb_context,_param->_size_depth); |
---|
[88] | 71 | |
---|
| 72 | DELETE1_SIGNAL(out_DEPTH_MIN ,_param->_nb_context,_param->_size_depth ); |
---|
| 73 | DELETE1_SIGNAL(out_DEPTH_MAX ,_param->_nb_context,_param->_size_depth+1); |
---|
| 74 | DELETE1_SIGNAL( in_DEPTH_PREDICTION_UNIT_CURRENT ,_param->_nb_context,_param->_size_depth ); |
---|
| 75 | DELETE1_SIGNAL( in_DEPTH_PREDICTION_UNIT_MIN ,_param->_nb_context,_param->_size_depth ); |
---|
| 76 | DELETE1_SIGNAL( in_DEPTH_PREDICTION_UNIT_MAX ,_param->_nb_context,_param->_size_depth+1); |
---|
| 77 | DELETE1_SIGNAL(out_DEPTH_CONTEXT_STATE_MIN ,_param->_nb_context,_param->_size_depth ); |
---|
| 78 | |
---|
| 79 | // DELETE2_SIGNAL(out_DEPTH_DECOD_UNIT_CURRENT ,_param->_nb_decod_unit,_param->_decod_unit_nb_context [it1],_param->_size_depth ); |
---|
| 80 | DELETE2_SIGNAL(out_DEPTH_DECOD_UNIT_MIN ,_param->_nb_decod_unit,_param->_decod_unit_nb_context [it1],_param->_size_depth ); |
---|
| 81 | DELETE2_SIGNAL(out_DEPTH_DECOD_UNIT_MAX ,_param->_nb_decod_unit,_param->_decod_unit_nb_context [it1],_param->_size_depth+1); |
---|
| 82 | |
---|
| 83 | DELETE2_SIGNAL(out_CONTEXT_DECOD_UNIT_DEPTH ,_param->_nb_decod_unit,_param->_decod_unit_nb_context [it1],_param->_size_depth); |
---|
| 84 | } |
---|
| 85 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 86 | |
---|
| 87 | delete _component; |
---|
| 88 | |
---|
| 89 | log_end(Front_end_Glue,FUNCTION); |
---|
| 90 | }; |
---|
| 91 | |
---|
| 92 | }; // end namespace front_end_glue |
---|
| 93 | }; // end namespace front_end |
---|
| 94 | }; // end namespace multi_front_end |
---|
| 95 | }; // end namespace core |
---|
| 96 | |
---|
| 97 | }; // end namespace behavioural |
---|
| 98 | }; // end namespace morpheo |
---|