1 | /* |
---|
2 | * $Id: Read_unit_to_Execution_unit.cpp 132 2009-07-11 16:39:35Z 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 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace core { |
---|
13 | namespace multi_execute_loop { |
---|
14 | namespace execute_loop { |
---|
15 | namespace network { |
---|
16 | namespace read_unit_to_execution_unit { |
---|
17 | |
---|
18 | |
---|
19 | #undef FUNCTION |
---|
20 | #define FUNCTION "Read_unit_to_Execution_unit::Read_unit_to_Execution_unit" |
---|
21 | Read_unit_to_Execution_unit::Read_unit_to_Execution_unit |
---|
22 | ( |
---|
23 | #ifdef SYSTEMC |
---|
24 | sc_module_name name, |
---|
25 | #else |
---|
26 | string name, |
---|
27 | #endif |
---|
28 | #ifdef STATISTICS |
---|
29 | morpheo::behavioural::Parameters_Statistics * param_statistics, |
---|
30 | #endif |
---|
31 | morpheo::behavioural::core::multi_execute_loop::execute_loop::network::read_unit_to_execution_unit::Parameters * param, |
---|
32 | morpheo::behavioural::Tusage_t usage |
---|
33 | ): |
---|
34 | _name (name) |
---|
35 | ,_param (param) |
---|
36 | ,_usage (usage) |
---|
37 | { |
---|
38 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"Begin"); |
---|
39 | |
---|
40 | // #if DEBUG_Read_unit_to_Execution_unit == true |
---|
41 | // log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); |
---|
42 | |
---|
43 | // std::cout << *param << std::endl; |
---|
44 | // #endif |
---|
45 | |
---|
46 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Allocation"); |
---|
47 | |
---|
48 | allocation ( |
---|
49 | #ifdef STATISTICS |
---|
50 | param_statistics |
---|
51 | #endif |
---|
52 | ); |
---|
53 | |
---|
54 | #ifdef STATISTICS |
---|
55 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
56 | { |
---|
57 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Allocation of statistics"); |
---|
58 | |
---|
59 | statistics_declaration(param_statistics); |
---|
60 | } |
---|
61 | #endif |
---|
62 | |
---|
63 | #ifdef VHDL |
---|
64 | if (usage_is_set(_usage,USE_VHDL)) |
---|
65 | { |
---|
66 | // generate the vhdl |
---|
67 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Generate the vhdl"); |
---|
68 | |
---|
69 | vhdl(); |
---|
70 | } |
---|
71 | #endif |
---|
72 | |
---|
73 | #ifdef SYSTEMC |
---|
74 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
75 | { |
---|
76 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Method - transition"); |
---|
77 | |
---|
78 | SC_METHOD (transition); |
---|
79 | dont_initialize (); |
---|
80 | sensitive << (*(in_CLOCK)).pos(); |
---|
81 | |
---|
82 | # ifdef SYSTEMCASS_SPECIFIC |
---|
83 | // List dependency information |
---|
84 | # endif |
---|
85 | |
---|
86 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Method - genMealy"); |
---|
87 | |
---|
88 | SC_METHOD (genMealy); |
---|
89 | dont_initialize (); |
---|
90 | sensitive << (*(in_CLOCK)).neg() |
---|
91 | << (*(in_NRESET)); |
---|
92 | |
---|
93 | for (uint32_t i=0; i<_param->_nb_read_unit; i++) |
---|
94 | for (uint32_t j=0; j<_param->_nb_read_unit_port[i]; j++) |
---|
95 | { |
---|
96 | sensitive << (*(in_READ_UNIT_OUT_VAL [i][j])) |
---|
97 | << (*(in_READ_UNIT_OUT_OPERATION [i][j])) |
---|
98 | << (*(in_READ_UNIT_OUT_TYPE [i][j])) |
---|
99 | << (*(in_READ_UNIT_OUT_HAS_IMMEDIAT [i][j])) |
---|
100 | << (*(in_READ_UNIT_OUT_IMMEDIAT [i][j])) |
---|
101 | << (*(in_READ_UNIT_OUT_DATA_RA [i][j])) |
---|
102 | << (*(in_READ_UNIT_OUT_DATA_RB [i][j])) |
---|
103 | << (*(in_READ_UNIT_OUT_DATA_RC [i][j])) |
---|
104 | << (*(in_READ_UNIT_OUT_WRITE_RD [i][j])) |
---|
105 | << (*(in_READ_UNIT_OUT_NUM_REG_RD [i][j])) |
---|
106 | << (*(in_READ_UNIT_OUT_WRITE_RE [i][j])) |
---|
107 | << (*(in_READ_UNIT_OUT_NUM_REG_RE [i][j])) |
---|
108 | << (*(in_READ_UNIT_OUT_STORE_QUEUE_PTR_WRITE [i][j])) |
---|
109 | << (*(in_READ_UNIT_OUT_STORE_QUEUE_PTR_READ [i][j])) |
---|
110 | << (*(in_READ_UNIT_OUT_STORE_QUEUE_EMPTY [i][j])); |
---|
111 | |
---|
112 | if (_param->_have_port_load_queue_ptr) |
---|
113 | sensitive << (*(in_READ_UNIT_OUT_LOAD_QUEUE_PTR_WRITE [i][j])); |
---|
114 | if (_param->_have_port_context_id) |
---|
115 | sensitive << (*(in_READ_UNIT_OUT_CONTEXT_ID [i][j])); |
---|
116 | if (_param->_have_port_front_end_id) |
---|
117 | sensitive << (*(in_READ_UNIT_OUT_FRONT_END_ID [i][j])); |
---|
118 | if (_param->_have_port_ooo_engine_id) |
---|
119 | sensitive << (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [i][j])); |
---|
120 | if (_param->_have_port_rob_ptr ) |
---|
121 | sensitive << (*(in_READ_UNIT_OUT_PACKET_ID [i][j])); |
---|
122 | } |
---|
123 | |
---|
124 | for (uint32_t i=0; i<_param->_nb_execute_unit; i++) |
---|
125 | for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) |
---|
126 | sensitive << (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
127 | |
---|
128 | # ifdef SYSTEMCASS_SPECIFIC |
---|
129 | // List dependency information |
---|
130 | for (uint32_t i=0; i<_param->_nb_read_unit; i++) |
---|
131 | for (uint32_t j=0; j<_param->_nb_read_unit_port[i]; j++) |
---|
132 | { |
---|
133 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_VAL [i][j])); |
---|
134 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_TYPE [i][j])); |
---|
135 | if (_param->_have_port_context_id) |
---|
136 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [i][j])); |
---|
137 | if (_param->_have_port_front_end_id) |
---|
138 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [i][j])); |
---|
139 | if (_param->_have_port_ooo_engine_id) |
---|
140 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [i][j])); |
---|
141 | |
---|
142 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
143 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
144 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [x][y])); |
---|
145 | } |
---|
146 | |
---|
147 | for (uint32_t i=0; i<_param->_nb_execute_unit; i++) |
---|
148 | for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) |
---|
149 | { |
---|
150 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
151 | |
---|
152 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
153 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
154 | { |
---|
155 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
156 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
157 | if (_param->_have_port_context_id) |
---|
158 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
159 | if (_param->_have_port_front_end_id) |
---|
160 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
161 | if (_param->_have_port_ooo_engine_id) |
---|
162 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
163 | } |
---|
164 | |
---|
165 | if (_param->_have_port_context_id) |
---|
166 | { |
---|
167 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
168 | |
---|
169 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
170 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
171 | { |
---|
172 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
173 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
174 | if (_param->_have_port_context_id) |
---|
175 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
176 | if (_param->_have_port_front_end_id) |
---|
177 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
178 | if (_param->_have_port_ooo_engine_id) |
---|
179 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
180 | } |
---|
181 | } |
---|
182 | |
---|
183 | if (_param->_have_port_front_end_id) |
---|
184 | { |
---|
185 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
186 | |
---|
187 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
188 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
189 | { |
---|
190 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
191 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
192 | if (_param->_have_port_context_id) |
---|
193 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
194 | if (_param->_have_port_front_end_id) |
---|
195 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
196 | if (_param->_have_port_ooo_engine_id) |
---|
197 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
198 | } |
---|
199 | } |
---|
200 | |
---|
201 | if (_param->_have_port_ooo_engine_id) |
---|
202 | { |
---|
203 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
204 | |
---|
205 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
206 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
207 | { |
---|
208 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
209 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
210 | if (_param->_have_port_context_id) |
---|
211 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
212 | if (_param->_have_port_front_end_id) |
---|
213 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
214 | if (_param->_have_port_ooo_engine_id) |
---|
215 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
216 | } |
---|
217 | } |
---|
218 | |
---|
219 | if (_param->_have_port_rob_ptr ) |
---|
220 | { |
---|
221 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
222 | |
---|
223 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
224 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
225 | { |
---|
226 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_PACKET_ID [x][y])); |
---|
227 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
228 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
229 | if (_param->_have_port_context_id) |
---|
230 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
231 | if (_param->_have_port_front_end_id) |
---|
232 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
233 | if (_param->_have_port_ooo_engine_id) |
---|
234 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
235 | } |
---|
236 | } |
---|
237 | |
---|
238 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
239 | |
---|
240 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
241 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
242 | { |
---|
243 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_OPERATION [x][y])); |
---|
244 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
245 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
246 | if (_param->_have_port_context_id) |
---|
247 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
248 | if (_param->_have_port_front_end_id) |
---|
249 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
250 | if (_param->_have_port_ooo_engine_id) |
---|
251 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
252 | } |
---|
253 | |
---|
254 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
255 | |
---|
256 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
257 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
258 | { |
---|
259 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
260 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
261 | if (_param->_have_port_context_id) |
---|
262 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
263 | if (_param->_have_port_front_end_id) |
---|
264 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
265 | if (_param->_have_port_ooo_engine_id) |
---|
266 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
267 | } |
---|
268 | |
---|
269 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
270 | |
---|
271 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
272 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
273 | { |
---|
274 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_STORE_QUEUE_PTR_WRITE [x][y])); |
---|
275 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
276 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
277 | if (_param->_have_port_context_id) |
---|
278 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
279 | if (_param->_have_port_front_end_id) |
---|
280 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
281 | if (_param->_have_port_ooo_engine_id) |
---|
282 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
283 | } |
---|
284 | |
---|
285 | if (_param->_have_port_load_queue_ptr) |
---|
286 | { |
---|
287 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
288 | |
---|
289 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
290 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
291 | { |
---|
292 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_LOAD_QUEUE_PTR_WRITE [x][y])); |
---|
293 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
294 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
295 | if (_param->_have_port_context_id) |
---|
296 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
297 | if (_param->_have_port_front_end_id) |
---|
298 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
299 | if (_param->_have_port_ooo_engine_id) |
---|
300 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
301 | } |
---|
302 | } |
---|
303 | |
---|
304 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
305 | |
---|
306 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
307 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
308 | { |
---|
309 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_HAS_IMMEDIAT [x][y])); |
---|
310 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
311 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
312 | if (_param->_have_port_context_id) |
---|
313 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
314 | if (_param->_have_port_front_end_id) |
---|
315 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
316 | if (_param->_have_port_ooo_engine_id) |
---|
317 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
318 | } |
---|
319 | |
---|
320 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
321 | |
---|
322 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
323 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
324 | { |
---|
325 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_IMMEDIAT [x][y])); |
---|
326 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
327 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
328 | if (_param->_have_port_context_id) |
---|
329 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
330 | if (_param->_have_port_front_end_id) |
---|
331 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
332 | if (_param->_have_port_ooo_engine_id) |
---|
333 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
334 | } |
---|
335 | |
---|
336 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
337 | |
---|
338 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
339 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
340 | { |
---|
341 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_DATA_RA [x][y])); |
---|
342 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
343 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
344 | if (_param->_have_port_context_id) |
---|
345 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
346 | if (_param->_have_port_front_end_id) |
---|
347 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
348 | if (_param->_have_port_ooo_engine_id) |
---|
349 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
350 | } |
---|
351 | |
---|
352 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
353 | |
---|
354 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
355 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
356 | { |
---|
357 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_DATA_RB [x][y])); |
---|
358 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
359 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
360 | if (_param->_have_port_context_id) |
---|
361 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
362 | if (_param->_have_port_front_end_id) |
---|
363 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
364 | if (_param->_have_port_ooo_engine_id) |
---|
365 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
366 | } |
---|
367 | |
---|
368 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
369 | |
---|
370 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
371 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
372 | { |
---|
373 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_DATA_RC [x][y])); |
---|
374 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
375 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
376 | if (_param->_have_port_context_id) |
---|
377 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
378 | if (_param->_have_port_front_end_id) |
---|
379 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
380 | if (_param->_have_port_ooo_engine_id) |
---|
381 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
382 | } |
---|
383 | |
---|
384 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
385 | |
---|
386 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
387 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
388 | { |
---|
389 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_WRITE_RD [x][y])); |
---|
390 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
391 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
392 | if (_param->_have_port_context_id) |
---|
393 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
394 | if (_param->_have_port_front_end_id) |
---|
395 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
396 | if (_param->_have_port_ooo_engine_id) |
---|
397 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
398 | } |
---|
399 | |
---|
400 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
401 | |
---|
402 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
403 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
404 | { |
---|
405 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_NUM_REG_RD [x][y])); |
---|
406 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
407 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
408 | if (_param->_have_port_context_id) |
---|
409 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
410 | if (_param->_have_port_front_end_id) |
---|
411 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
412 | if (_param->_have_port_ooo_engine_id) |
---|
413 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
414 | } |
---|
415 | |
---|
416 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
417 | |
---|
418 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
419 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
420 | { |
---|
421 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_WRITE_RE [x][y])); |
---|
422 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
423 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
424 | if (_param->_have_port_context_id) |
---|
425 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
426 | if (_param->_have_port_front_end_id) |
---|
427 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
428 | if (_param->_have_port_ooo_engine_id) |
---|
429 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
430 | } |
---|
431 | |
---|
432 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
433 | |
---|
434 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
435 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
436 | { |
---|
437 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_NUM_REG_RE [x][y])); |
---|
438 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
439 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
440 | if (_param->_have_port_context_id) |
---|
441 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
442 | if (_param->_have_port_front_end_id) |
---|
443 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
444 | if (_param->_have_port_ooo_engine_id) |
---|
445 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
446 | } |
---|
447 | } |
---|
448 | # endif |
---|
449 | |
---|
450 | #endif |
---|
451 | } |
---|
452 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"End"); |
---|
453 | }; |
---|
454 | |
---|
455 | #undef FUNCTION |
---|
456 | #define FUNCTION "Read_unit_to_Execution_unit::~Read_unit_to_Execution_unit" |
---|
457 | Read_unit_to_Execution_unit::~Read_unit_to_Execution_unit (void) |
---|
458 | { |
---|
459 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"Begin"); |
---|
460 | |
---|
461 | #ifdef STATISTICS |
---|
462 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
463 | { |
---|
464 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Generate Statistics file"); |
---|
465 | |
---|
466 | delete _stat; |
---|
467 | } |
---|
468 | #endif |
---|
469 | |
---|
470 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Deallocation"); |
---|
471 | deallocation (); |
---|
472 | |
---|
473 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"End"); |
---|
474 | }; |
---|
475 | |
---|
476 | }; // end namespace read_unit_to_execution_unit |
---|
477 | }; // end namespace network |
---|
478 | }; // end namespace execute_loop |
---|
479 | }; // end namespace multi_execute_loop |
---|
480 | }; // end namespace core |
---|
481 | |
---|
482 | }; // end namespace behavioural |
---|
483 | }; // end namespace morpheo |
---|