source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/src/Execution_unit_to_Write_unit.cpp @ 132

Last change on this file since 132 was 132, checked in by rosiere, 15 years ago

1) add constant method - compatibility with SystemC
2) add Script to test sensitive list
3) fix bug in sensitive list

  • Property svn:keywords set to Id
File size: 17.1 KB
Line 
1/*
2 * $Id: Execution_unit_to_Write_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/Execution_unit_to_Write_unit/include/Execution_unit_to_Write_unit.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace core {
13namespace multi_execute_loop {
14namespace execute_loop {
15namespace network {
16namespace execution_unit_to_write_unit {
17
18
19#undef  FUNCTION
20#define FUNCTION "Execution_unit_to_Write_unit::Execution_unit_to_Write_unit"
21  Execution_unit_to_Write_unit::Execution_unit_to_Write_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::execution_unit_to_write_unit::Parameters * param,
32   morpheo::behavioural::Tusage_t usage
33   ):
34    _name              (name)
35    ,_param            (param)
36    ,_usage            (usage)
37  {
38    log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"Begin");
39
40// #if DEBUG_Execution_unit_to_Write_unit == true
41//     log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());
42
43//     std::cout << *param << std::endl;
44// #endif   
45
46    log_printf(INFO,Execution_unit_to_Write_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,Execution_unit_to_Write_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,Execution_unit_to_Write_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,Execution_unit_to_Write_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,Execution_unit_to_Write_unit,FUNCTION,"Method - genMealy");
87
88        SC_METHOD (genMealy);
89        dont_initialize ();
90        sensitive << (*(in_CLOCK)).neg()
91                  << (*(in_NRESET));
92        for (uint32_t i=0; i<_param->_nb_execute_unit; i++)
93          for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++)
94            {
95              if (_param->_have_port_context_id)
96              sensitive << (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [i][j]));
97              if (_param->_have_port_front_end_id)
98              sensitive << (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [i][j]));
99              if (_param->_have_port_ooo_engine_id)
100              sensitive << (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [i][j]));
101              if (_param->_have_port_rob_ptr  )
102              sensitive << (*(in_EXECUTE_UNIT_OUT_PACKET_ID     [i][j]));
103             
104              sensitive << (*(in_EXECUTE_UNIT_OUT_VAL           [i][j]))
105                      //<< (*(in_EXECUTE_UNIT_OUT_OPERATION     [i][j]))
106                      //<< (*(in_EXECUTE_UNIT_OUT_TYPE          [i][j]))
107                        << (*(in_EXECUTE_UNIT_OUT_WRITE_RD      [i][j]))
108                        << (*(in_EXECUTE_UNIT_OUT_NUM_REG_RD    [i][j]))
109                        << (*(in_EXECUTE_UNIT_OUT_DATA_RD       [i][j]))
110                        << (*(in_EXECUTE_UNIT_OUT_WRITE_RE      [i][j]))
111                        << (*(in_EXECUTE_UNIT_OUT_NUM_REG_RE    [i][j]))
112                        << (*(in_EXECUTE_UNIT_OUT_DATA_RE       [i][j]))
113                        << (*(in_EXECUTE_UNIT_OUT_EXCEPTION     [i][j]))
114                        << (*(in_EXECUTE_UNIT_OUT_NO_SEQUENCE   [i][j]))
115                        << (*(in_EXECUTE_UNIT_OUT_ADDRESS       [i][j]));
116            }
117        for (uint32_t i=0; i<_param->_nb_write_unit; i++)
118          sensitive << (*(in_WRITE_UNIT_IN_ACK [i]));
119
120# ifdef SYSTEMCASS_SPECIFIC
121        // List dependency information
122        for (uint32_t i=0; i<_param->_nb_execute_unit; i++)
123          for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++)
124            {
125              (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_OUT_VAL           [i][j]));
126              if (_param->_have_port_context_id)
127              (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [i][j]));
128              if (_param->_have_port_front_end_id)
129              (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [i][j]));
130              if (_param->_have_port_ooo_engine_id)
131              (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [i][j]));
132
133              for (uint32_t x=0; x<_param->_nb_write_unit; x++)
134                (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_WRITE_UNIT_IN_ACK [x])); 
135            }
136
137        for (uint32_t i=0; i<_param->_nb_write_unit; i++)
138          {
139            (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
140            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
141              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
142              {
143                (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
144                if (_param->_have_port_context_id)
145                (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
146                if (_param->_have_port_front_end_id)
147                (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
148                if (_param->_have_port_ooo_engine_id)
149                (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
150              }
151
152            if (_param->_have_port_context_id)
153              {
154            (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
155            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
156              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
157              {
158                (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
159                if (_param->_have_port_context_id)
160                (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
161                if (_param->_have_port_front_end_id)
162                (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
163                if (_param->_have_port_ooo_engine_id)
164                (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
165              }
166              }
167            if (_param->_have_port_front_end_id)
168              {
169            (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
170            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
171              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
172              {
173                (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
174                if (_param->_have_port_context_id)
175                (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
176                if (_param->_have_port_front_end_id)
177                (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
178                if (_param->_have_port_ooo_engine_id)
179                (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
180              }
181              }
182            if (_param->_have_port_ooo_engine_id)
183              {
184            (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
185            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
186              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
187              {
188                (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
189                if (_param->_have_port_context_id)
190                (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
191                if (_param->_have_port_front_end_id)
192                (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
193                if (_param->_have_port_ooo_engine_id)
194                (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
195              }
196              }
197
198            if (_param->_have_port_rob_ptr  )
199              {
200            (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
201            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
202              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
203              {
204                (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_PACKET_ID [x][y]));
205                (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
206                if (_param->_have_port_context_id)
207                (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
208                if (_param->_have_port_front_end_id)
209                (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
210                if (_param->_have_port_ooo_engine_id)
211                (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
212              }
213              }
214
215//          (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_WRITE_UNIT_IN_ACK [i]));
216//          for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
217//            for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
218//            {
219//              (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_OPERATION [x][y]));
220//              (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
221//              if (_param->_have_port_context_id)
222//              (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
223//              if (_param->_have_port_front_end_id)
224//              (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
225//              if (_param->_have_port_ooo_engine_id)
226//              (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
227//            }
228
229//          (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_WRITE_UNIT_IN_ACK [i]));
230//          for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
231//            for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
232//            {
233//              (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_TYPE [x][y]));
234//              (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
235//              if (_param->_have_port_context_id)
236//              (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
237//              if (_param->_have_port_front_end_id)
238//              (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
239//              if (_param->_have_port_ooo_engine_id)
240//              (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
241//            }
242
243            (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
244            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
245              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
246              {
247                (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_WRITE_RD [x][y]));
248                (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
249                if (_param->_have_port_context_id)
250                (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
251                if (_param->_have_port_front_end_id)
252                (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
253                if (_param->_have_port_ooo_engine_id)
254                (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
255              }
256
257            (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
258            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
259              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
260              {
261                (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_NUM_REG_RD [x][y]));
262                (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
263                if (_param->_have_port_context_id)
264                (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
265                if (_param->_have_port_front_end_id)
266                (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
267                if (_param->_have_port_ooo_engine_id)
268                (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
269              }
270
271            (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
272            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
273              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
274              {
275                (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_DATA_RD [x][y]));
276                (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
277                if (_param->_have_port_context_id)
278                (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
279                if (_param->_have_port_front_end_id)
280                (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
281                if (_param->_have_port_ooo_engine_id)
282                (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
283              }
284
285            (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
286            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
287              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
288              {
289                (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_WRITE_RE [x][y]));
290                (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
291                if (_param->_have_port_context_id)
292                (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
293                if (_param->_have_port_front_end_id)
294                (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
295                if (_param->_have_port_ooo_engine_id)
296                (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
297              }
298
299            (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
300            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
301              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
302              {
303                (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_NUM_REG_RE [x][y]));
304                (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
305                if (_param->_have_port_context_id)
306                (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
307                if (_param->_have_port_front_end_id)
308                (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
309                if (_param->_have_port_ooo_engine_id)
310                (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
311              }
312
313            (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
314            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
315              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
316              {
317                (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_DATA_RE [x][y]));
318                (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
319                if (_param->_have_port_context_id)
320                (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
321                if (_param->_have_port_front_end_id)
322                (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
323                if (_param->_have_port_ooo_engine_id)
324                (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
325              }
326
327            (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
328            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
329              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
330              {
331                (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_EXCEPTION [x][y]));
332                (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
333                if (_param->_have_port_context_id)
334                (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
335                if (_param->_have_port_front_end_id)
336                (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
337                if (_param->_have_port_ooo_engine_id)
338                (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
339              }
340
341            (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
342            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
343              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
344              {
345                (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_NO_SEQUENCE [x][y]));
346                (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
347                if (_param->_have_port_context_id)
348                (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
349                if (_param->_have_port_front_end_id)
350                (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
351                if (_param->_have_port_ooo_engine_id)
352                (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
353              }
354
355            (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
356            for (uint32_t x=0; x<_param->_nb_execute_unit; x++)
357              for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++)
358              {
359                (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_ADDRESS [x][y]));
360                (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
361                if (_param->_have_port_context_id)
362                (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
363                if (_param->_have_port_front_end_id)
364                (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
365                if (_param->_have_port_ooo_engine_id)
366                (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
367              }
368          }
369# endif   
370       
371#endif
372      }
373    log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"End");
374  };
375   
376#undef  FUNCTION
377#define FUNCTION "Execution_unit_to_Write_unit::~Execution_unit_to_Write_unit"
378  Execution_unit_to_Write_unit::~Execution_unit_to_Write_unit (void)
379  {
380    log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"Begin");
381
382#ifdef STATISTICS
383    if (usage_is_set(_usage,USE_STATISTICS))
384      {
385        log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,"Generate Statistics file");
386       
387        delete _stat;
388      }
389#endif
390
391    log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,"Deallocation");
392    deallocation ();
393
394    log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"End");
395  };
396
397}; // end namespace execution_unit_to_write_unit
398}; // end namespace network
399}; // end namespace execute_loop
400}; // end namespace multi_execute_loop
401}; // end namespace core
402
403}; // end namespace behavioural
404}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.