1 | /* |
---|
2 | * $Id: Read_unit_to_Execution_unit_deallocation.cpp 136 2009-10-20 18:52:15Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/include/Read_unit_to_Execution_unit.h" |
---|
9 | #include "Behavioural/include/Allocation.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_execute_loop { |
---|
15 | namespace execute_loop { |
---|
16 | namespace network { |
---|
17 | namespace read_unit_to_execution_unit { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Read_unit_to_Execution_unit::deallocation" |
---|
22 | void Read_unit_to_Execution_unit::deallocation (void) |
---|
23 | { |
---|
24 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
27 | { |
---|
28 | delete in_CLOCK ; |
---|
29 | delete in_NRESET; |
---|
30 | |
---|
31 | DELETE2_SIGNAL( in_READ_UNIT_OUT_VAL , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],1 ); |
---|
32 | DELETE2_SIGNAL(out_READ_UNIT_OUT_ACK , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],1 ); |
---|
33 | DELETE2_SIGNAL( in_READ_UNIT_OUT_CONTEXT_ID , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_context_id ); |
---|
34 | DELETE2_SIGNAL( in_READ_UNIT_OUT_FRONT_END_ID , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_front_end_id ); |
---|
35 | DELETE2_SIGNAL( in_READ_UNIT_OUT_OOO_ENGINE_ID , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_ooo_engine_id ); |
---|
36 | DELETE2_SIGNAL( in_READ_UNIT_OUT_PACKET_ID , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_rob_ptr ); |
---|
37 | DELETE2_SIGNAL( in_READ_UNIT_OUT_OPERATION , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_operation ); |
---|
38 | DELETE2_SIGNAL( in_READ_UNIT_OUT_TYPE , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_type ); |
---|
39 | DELETE2_SIGNAL( in_READ_UNIT_OUT_CANCEL , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],1 ); |
---|
40 | DELETE2_SIGNAL( in_READ_UNIT_OUT_STORE_QUEUE_PTR_WRITE , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_store_queue_ptr ); |
---|
41 | DELETE2_SIGNAL( in_READ_UNIT_OUT_STORE_QUEUE_PTR_READ , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_store_queue_ptr ); |
---|
42 | DELETE2_SIGNAL( in_READ_UNIT_OUT_STORE_QUEUE_EMPTY , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],1 ); |
---|
43 | DELETE2_SIGNAL( in_READ_UNIT_OUT_LOAD_QUEUE_PTR_WRITE , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_load_queue_ptr ); |
---|
44 | DELETE2_SIGNAL( in_READ_UNIT_OUT_HAS_IMMEDIAT , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],1 ); |
---|
45 | DELETE2_SIGNAL( in_READ_UNIT_OUT_IMMEDIAT , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_general_data ); |
---|
46 | DELETE2_SIGNAL( in_READ_UNIT_OUT_DATA_RA , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_general_data ); |
---|
47 | DELETE2_SIGNAL( in_READ_UNIT_OUT_DATA_RB , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_general_data ); |
---|
48 | DELETE2_SIGNAL( in_READ_UNIT_OUT_DATA_RC , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_special_data ); |
---|
49 | DELETE2_SIGNAL( in_READ_UNIT_OUT_WRITE_RD , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],1 ); |
---|
50 | DELETE2_SIGNAL( in_READ_UNIT_OUT_NUM_REG_RD , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_general_register ); |
---|
51 | DELETE2_SIGNAL( in_READ_UNIT_OUT_WRITE_RE , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],1 ); |
---|
52 | DELETE2_SIGNAL( in_READ_UNIT_OUT_NUM_REG_RE , _param->_nb_read_unit, _param->_nb_read_unit_port [it1],_param->_size_special_register ); |
---|
53 | |
---|
54 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_VAL , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],1 ); |
---|
55 | DELETE2_SIGNAL( in_EXECUTE_UNIT_IN_ACK , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],1 ); |
---|
56 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_CONTEXT_ID , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_context_id ); |
---|
57 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_FRONT_END_ID , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_front_end_id ); |
---|
58 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_ooo_engine_id ); |
---|
59 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_PACKET_ID , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_rob_ptr ); |
---|
60 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_OPERATION , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_operation ); |
---|
61 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_TYPE , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_type ); |
---|
62 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_CANCEL , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],1 ); |
---|
63 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],1 ); |
---|
64 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_DATA_RC , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_special_data ); |
---|
65 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_WRITE_RD , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],1 ); |
---|
66 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_WRITE_RE , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],1 ); |
---|
67 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_NUM_REG_RE , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_special_register ); |
---|
68 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE, _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_store_queue_ptr ); |
---|
69 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_READ , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_store_queue_ptr ); |
---|
70 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_STORE_QUEUE_EMPTY , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],1 ); |
---|
71 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_load_queue_ptr ); |
---|
72 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_IMMEDIAT , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_general_data ); |
---|
73 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_DATA_RA , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_general_data ); |
---|
74 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_DATA_RB , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_general_data ); |
---|
75 | DELETE2_SIGNAL(out_EXECUTE_UNIT_IN_NUM_REG_RD , _param->_nb_execute_unit, _param->_nb_execute_unit_port [it1],_param->_size_general_register ); |
---|
76 | |
---|
77 | DELETE3(_destination,_param->_nb_read_unit,_param->_nb_thread,_param->_nb_type); |
---|
78 | } |
---|
79 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
80 | |
---|
81 | delete _component; |
---|
82 | |
---|
83 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"End"); |
---|
84 | }; |
---|
85 | |
---|
86 | }; // end namespace read_unit_to_execution_unit |
---|
87 | }; // end namespace network |
---|
88 | }; // end namespace execute_loop |
---|
89 | }; // end namespace multi_execute_loop |
---|
90 | }; // end namespace core |
---|
91 | |
---|
92 | }; // end namespace behavioural |
---|
93 | }; // end namespace morpheo |
---|