1 | /* |
---|
2 | * $Id: Load_Store_pointer_unit_deallocation.cpp 122 2009-06-03 08:15:51Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/include/Load_Store_pointer_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 load_store_pointer_unit { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Load_Store_pointer_unit::deallocation" |
---|
22 | void Load_Store_pointer_unit::deallocation (void) |
---|
23 | { |
---|
24 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
27 | { |
---|
28 | delete in_CLOCK ; |
---|
29 | delete in_NRESET; |
---|
30 | |
---|
31 | DELETE1_SIGNAL( in_INSERT_VAL ,_param->_nb_inst_insert,1); |
---|
32 | DELETE1_SIGNAL(out_INSERT_ACK ,_param->_nb_inst_insert,1); |
---|
33 | DELETE1_SIGNAL( in_INSERT_FRONT_END_ID ,_param->_nb_inst_insert,_param->_size_front_end_id ); |
---|
34 | DELETE1_SIGNAL( in_INSERT_CONTEXT_ID ,_param->_nb_inst_insert,_param->_size_context_id ); |
---|
35 | DELETE1_SIGNAL( in_INSERT_TYPE ,_param->_nb_inst_insert,_param->_size_type ); |
---|
36 | DELETE1_SIGNAL( in_INSERT_OPERATION ,_param->_nb_inst_insert,_param->_size_operation ); |
---|
37 | DELETE1_SIGNAL(out_INSERT_STORE_QUEUE_PTR_WRITE,_param->_nb_inst_insert,_param->_size_store_queue_ptr); |
---|
38 | DELETE1_SIGNAL(out_INSERT_STORE_QUEUE_PTR_READ ,_param->_nb_inst_insert,_param->_size_store_queue_ptr); |
---|
39 | DELETE1_SIGNAL(out_INSERT_STORE_QUEUE_EMPTY ,_param->_nb_inst_insert,1); |
---|
40 | DELETE1_SIGNAL(out_INSERT_LOAD_QUEUE_PTR_WRITE ,_param->_nb_inst_insert,_param->_size_load_queue_ptr ); |
---|
41 | |
---|
42 | DELETE1_SIGNAL( in_RETIRE_VAL ,_param->_nb_inst_retire,1); |
---|
43 | DELETE1_SIGNAL(out_RETIRE_ACK ,_param->_nb_inst_retire,1); |
---|
44 | DELETE1_SIGNAL( in_RETIRE_FRONT_END_ID ,_param->_nb_inst_retire,_param->_size_front_end_id ); |
---|
45 | DELETE1_SIGNAL( in_RETIRE_CONTEXT_ID ,_param->_nb_inst_retire,_param->_size_context_id ); |
---|
46 | // DELETE1_SIGNAL( in_RETIRE_TYPE ,_param->_nb_inst_retire,_param->_size_type ); |
---|
47 | // DELETE1_SIGNAL( in_RETIRE_OPERATION ,_param->_nb_inst_retire,_param->_size_operation ); |
---|
48 | DELETE1_SIGNAL( in_RETIRE_USE_STORE_QUEUE ,_param->_nb_inst_retire,1); |
---|
49 | DELETE1_SIGNAL( in_RETIRE_USE_LOAD_QUEUE ,_param->_nb_inst_retire,1); |
---|
50 | DELETE1_SIGNAL( in_RETIRE_STORE_QUEUE_PTR_WRITE,_param->_nb_inst_retire,_param->_size_store_queue_ptr); |
---|
51 | DELETE1_SIGNAL( in_RETIRE_LOAD_QUEUE_PTR_WRITE ,_param->_nb_inst_retire,_param->_size_load_queue_ptr ); |
---|
52 | |
---|
53 | DELETE2_SIGNAL( in_RETIRE_EVENT_VAL ,_param->_nb_front_end, _param->_nb_context[it1],1); |
---|
54 | DELETE2_SIGNAL(out_RETIRE_EVENT_ACK ,_param->_nb_front_end, _param->_nb_context[it1],1); |
---|
55 | DELETE2_SIGNAL( in_RETIRE_EVENT_STATE ,_param->_nb_front_end, _param->_nb_context[it1],_param->_size_event_state); |
---|
56 | |
---|
57 | DELETE1(reg_STORE_QUEUE_PTR_WRITE ,_param->_nb_load_store_queue); |
---|
58 | DELETE2(reg_STORE_QUEUE_PTR_READ ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
59 | DELETE2(reg_STORE_QUEUE_EMPTY ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
60 | DELETE2(reg_STORE_QUEUE_USE ,_param->_nb_load_store_queue,_param->_size_store_queue [it1]); |
---|
61 | DELETE1(reg_STORE_QUEUE_NB_USE ,_param->_nb_load_store_queue); |
---|
62 | DELETE1(reg_LOAD_QUEUE_PTR_WRITE ,_param->_nb_load_store_queue); |
---|
63 | DELETE2(reg_LOAD_QUEUE_USE ,_param->_nb_load_store_queue,_param->_size_load_queue [it1]); |
---|
64 | |
---|
65 | DELETE1(internal_INSERT_ACK ,_param->_nb_inst_insert); |
---|
66 | DELETE1(internal_INSERT_OPERATION_USE ,_param->_nb_inst_insert); |
---|
67 | DELETE1(internal_INSERT_LSQ ,_param->_nb_inst_insert); |
---|
68 | DELETE1(internal_INSERT_PTR ,_param->_nb_inst_insert); |
---|
69 | |
---|
70 | DELETE1(internal_RETIRE_ACK ,_param->_nb_inst_retire); |
---|
71 | DELETE1(internal_RETIRE_OPERATION_USE ,_param->_nb_inst_retire); |
---|
72 | DELETE1(internal_RETIRE_LSQ ,_param->_nb_inst_retire); |
---|
73 | DELETE1(internal_RETIRE_PTR ,_param->_nb_inst_retire); |
---|
74 | |
---|
75 | DELETE2(internal_RETIRE_EVENT_ACK ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
76 | } |
---|
77 | |
---|
78 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
79 | |
---|
80 | delete _component; |
---|
81 | |
---|
82 | log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End"); |
---|
83 | }; |
---|
84 | |
---|
85 | }; // end namespace load_store_pointer_unit |
---|
86 | }; // end namespace rename_unit |
---|
87 | }; // end namespace ooo_engine |
---|
88 | }; // end namespace multi_ooo_engine |
---|
89 | }; // end namespace core |
---|
90 | |
---|
91 | }; // end namespace behavioural |
---|
92 | }; // end namespace morpheo |
---|