1 | /* |
---|
2 | * $Id: Register_Address_Translation_unit_deallocation.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Register_Address_Translation_unit.h" |
---|
9 | #include "Behavioural/include/Allocation.h" |
---|
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 register_address_translation_unit { |
---|
19 | |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "Register_Address_Translation_unit::deallocation" |
---|
23 | void Register_Address_Translation_unit::deallocation (void) |
---|
24 | { |
---|
25 | log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
28 | { |
---|
29 | delete in_CLOCK ; |
---|
30 | delete in_NRESET; |
---|
31 | |
---|
32 | DELETE1_SIGNAL( in_RENAME_VAL ,_param->_nb_inst_insert,1); |
---|
33 | DELETE1_SIGNAL(out_RENAME_ACK ,_param->_nb_inst_insert,1); |
---|
34 | DELETE1_SIGNAL( in_RENAME_FRONT_END_ID ,_param->_nb_inst_insert,_param->_size_front_end_id); |
---|
35 | DELETE1_SIGNAL( in_RENAME_CONTEXT_ID ,_param->_nb_inst_insert,_param->_size_context_id ); |
---|
36 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RA_LOG ,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
37 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RB_LOG ,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
38 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RC_LOG ,_param->_nb_inst_insert,_param->_size_special_register_logic); |
---|
39 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RD_LOG ,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
40 | DELETE1_SIGNAL( in_RENAME_NUM_REG_RE_LOG ,_param->_nb_inst_insert,_param->_size_special_register_logic); |
---|
41 | DELETE1_SIGNAL(out_RENAME_NUM_REG_RA_PHY ,_param->_nb_inst_insert,_param->_size_general_register); |
---|
42 | DELETE1_SIGNAL(out_RENAME_NUM_REG_RB_PHY ,_param->_nb_inst_insert,_param->_size_general_register); |
---|
43 | DELETE1_SIGNAL(out_RENAME_NUM_REG_RC_PHY ,_param->_nb_inst_insert,_param->_size_special_register); |
---|
44 | DELETE1_SIGNAL(out_RENAME_NUM_REG_RD_PHY_OLD,_param->_nb_inst_insert,_param->_size_general_register); |
---|
45 | DELETE1_SIGNAL(out_RENAME_NUM_REG_RE_PHY_OLD,_param->_nb_inst_insert,_param->_size_special_register); |
---|
46 | |
---|
47 | DELETE1_SIGNAL( in_INSERT_VAL ,_param->_nb_inst_insert,1); |
---|
48 | DELETE1_SIGNAL(out_INSERT_ACK ,_param->_nb_inst_insert,1); |
---|
49 | // DELETE1_SIGNAL( in_INSERT_FRONT_END_ID ,_param->_nb_inst_insert,_param->_size_front_end_id); |
---|
50 | // DELETE1_SIGNAL( in_INSERT_CONTEXT_ID ,_param->_nb_inst_insert,_param->_size_context_id ); |
---|
51 | DELETE1_SIGNAL( in_INSERT_WRITE_RD ,_param->_nb_inst_insert,1); |
---|
52 | DELETE1_SIGNAL( in_INSERT_WRITE_RE ,_param->_nb_inst_insert,1); |
---|
53 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RD_LOG,_param->_nb_inst_insert,_param->_size_general_register_logic); |
---|
54 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RE_LOG,_param->_nb_inst_insert,_param->_size_special_register_logic); |
---|
55 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RD_PHY,_param->_nb_inst_insert,_param->_size_general_register); |
---|
56 | DELETE1_SIGNAL( in_INSERT_NUM_REG_RE_PHY,_param->_nb_inst_insert,_param->_size_special_register); |
---|
57 | |
---|
58 | DELETE1_SIGNAL( in_RETIRE_VAL ,_param->_nb_inst_retire,1); |
---|
59 | DELETE1_SIGNAL(out_RETIRE_ACK ,_param->_nb_inst_retire,1); |
---|
60 | DELETE1_SIGNAL( in_RETIRE_FRONT_END_ID ,_param->_nb_inst_retire,_param->_size_front_end_id); |
---|
61 | DELETE1_SIGNAL( in_RETIRE_CONTEXT_ID ,_param->_nb_inst_retire,_param->_size_context_id ); |
---|
62 | DELETE1_SIGNAL( in_RETIRE_WRITE_RD ,_param->_nb_inst_retire,1); |
---|
63 | DELETE1_SIGNAL( in_RETIRE_WRITE_RE ,_param->_nb_inst_retire,1); |
---|
64 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RD_LOG ,_param->_nb_inst_retire,_param->_size_general_register_logic); |
---|
65 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RE_LOG ,_param->_nb_inst_retire,_param->_size_special_register_logic); |
---|
66 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RD_PHY_OLD,_param->_nb_inst_retire,_param->_size_general_register); |
---|
67 | DELETE1_SIGNAL( in_RETIRE_NUM_REG_RE_PHY_OLD,_param->_nb_inst_retire,_param->_size_special_register); |
---|
68 | DELETE1_SIGNAL(out_RETIRE_RESTORE_RD_PHY_OLD,_param->_nb_inst_retire,1); |
---|
69 | DELETE1_SIGNAL(out_RETIRE_RESTORE_RE_PHY_OLD,_param->_nb_inst_retire,1); |
---|
70 | DELETE1_SIGNAL(out_RETIRE_RESTORE ,_param->_nb_inst_retire,1); |
---|
71 | |
---|
72 | DELETE2_SIGNAL( in_RETIRE_EVENT_VAL ,_param->_nb_front_end, _param->_nb_context[it1],1); |
---|
73 | DELETE2_SIGNAL(out_RETIRE_EVENT_ACK ,_param->_nb_front_end, _param->_nb_context[it1],1); |
---|
74 | DELETE2_SIGNAL( in_RETIRE_EVENT_STATE ,_param->_nb_front_end, _param->_nb_context[it1],_param->_size_event_state); |
---|
75 | |
---|
76 | DELETE1(internal_RENAME_ACK ,_param->_nb_inst_insert); |
---|
77 | DELETE1(internal_INSERT_ACK ,_param->_nb_inst_insert); |
---|
78 | DELETE1(internal_RETIRE_ACK ,_param->_nb_inst_retire); |
---|
79 | DELETE2(internal_RETIRE_EVENT_ACK ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
80 | |
---|
81 | DELETE3(rat_gpr ,_param->_nb_front_end,_param->_nb_context[it1],_param->_nb_general_register_logic); |
---|
82 | DELETE3(rat_spr ,_param->_nb_front_end,_param->_nb_context[it1],_param->_nb_special_register_logic); |
---|
83 | DELETE3(rat_gpr_update_table ,_param->_nb_front_end,_param->_nb_context[it1],_param->_nb_general_register_logic); |
---|
84 | DELETE3(rat_spr_update_table ,_param->_nb_front_end,_param->_nb_context[it1],_param->_nb_special_register_logic); |
---|
85 | DELETE3(internal_rat_gpr_update_table,_param->_nb_front_end,_param->_nb_context[it1],_param->_nb_general_register_logic); |
---|
86 | DELETE3(internal_rat_spr_update_table,_param->_nb_front_end,_param->_nb_context[it1],_param->_nb_special_register_logic); |
---|
87 | |
---|
88 | DELETE1(internal_RETIRE_RESTORE_RD_PHY_OLD,_param->_nb_inst_retire); |
---|
89 | DELETE1(internal_RETIRE_RESTORE_RE_PHY_OLD,_param->_nb_inst_retire); |
---|
90 | } |
---|
91 | |
---|
92 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
93 | delete _component; |
---|
94 | |
---|
95 | log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End"); |
---|
96 | }; |
---|
97 | |
---|
98 | }; // end namespace register_address_translation_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 |
---|