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
RevLine 
[77]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
[123]40// #if DEBUG_Execution_unit_to_Write_unit == true
41//     log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());
[88]42
[123]43//     std::cout << *param << std::endl;
44// #endif   
[88]45
[77]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
[88]55    if (usage_is_set(_usage,USE_STATISTICS))
[77]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
[88]64    if (usage_is_set(_usage,USE_VHDL))
[77]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
[88]74    if (usage_is_set(_usage,USE_SYSTEMC))
[77]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 ();
[132]90        sensitive << (*(in_CLOCK)).neg()
91                  << (*(in_NRESET));
[77]92        for (uint32_t i=0; i<_param->_nb_execute_unit; i++)
[88]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            }
[77]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++)
[88]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]));
[77]132
[88]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            }
[77]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])); 
[88]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++)
[77]142              {
[88]143                (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
[77]144                if (_param->_have_port_context_id)
[88]145                (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]146                if (_param->_have_port_front_end_id)
[88]147                (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]148                if (_param->_have_port_ooo_engine_id)
[88]149                (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]150              }
151
152            if (_param->_have_port_context_id)
153              {
154            (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]157              {
[88]158                (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
[77]159                if (_param->_have_port_context_id)
[88]160                (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]161                if (_param->_have_port_front_end_id)
[88]162                (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]163                if (_param->_have_port_ooo_engine_id)
[88]164                (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]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])); 
[88]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++)
[77]172              {
[88]173                (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
[77]174                if (_param->_have_port_context_id)
[88]175                (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]176                if (_param->_have_port_front_end_id)
[88]177                (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]178                if (_param->_have_port_ooo_engine_id)
[88]179                (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]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])); 
[88]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++)
[77]187              {
[88]188                (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL           [x][y]));
[77]189                if (_param->_have_port_context_id)
[88]190                (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]191                if (_param->_have_port_front_end_id)
[88]192                (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]193                if (_param->_have_port_ooo_engine_id)
[88]194                (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]195              }
196              }
197
[88]198            if (_param->_have_port_rob_ptr  )
[77]199              {
200            (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]203              {
[88]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]));
[77]206                if (_param->_have_port_context_id)
[88]207                (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]208                if (_param->_have_port_front_end_id)
[88]209                (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]210                if (_param->_have_port_ooo_engine_id)
[88]211                (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]212              }
213              }
214
215//          (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_WRITE_UNIT_IN_ACK [i]));
[88]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++)
[77]218//            {
[88]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]));
[77]221//              if (_param->_have_port_context_id)
[88]222//              (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]223//              if (_param->_have_port_front_end_id)
[88]224//              (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]225//              if (_param->_have_port_ooo_engine_id)
[88]226//              (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]227//            }
228
229//          (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_WRITE_UNIT_IN_ACK [i]));
[88]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++)
[77]232//            {
[88]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]));
[77]235//              if (_param->_have_port_context_id)
[88]236//              (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]237//              if (_param->_have_port_front_end_id)
[88]238//              (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]239//              if (_param->_have_port_ooo_engine_id)
[88]240//              (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]241//            }
242
243            (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]246              {
[88]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]));
[77]249                if (_param->_have_port_context_id)
[88]250                (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]251                if (_param->_have_port_front_end_id)
[88]252                (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]253                if (_param->_have_port_ooo_engine_id)
[88]254                (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]255              }
256
257            (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]260              {
[88]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]));
[77]263                if (_param->_have_port_context_id)
[88]264                (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]265                if (_param->_have_port_front_end_id)
[88]266                (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]267                if (_param->_have_port_ooo_engine_id)
[88]268                (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]269              }
270
271            (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]274              {
[88]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]));
[77]277                if (_param->_have_port_context_id)
[88]278                (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]279                if (_param->_have_port_front_end_id)
[88]280                (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]281                if (_param->_have_port_ooo_engine_id)
[88]282                (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]283              }
284
285            (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]288              {
[88]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]));
[77]291                if (_param->_have_port_context_id)
[88]292                (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]293                if (_param->_have_port_front_end_id)
[88]294                (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]295                if (_param->_have_port_ooo_engine_id)
[88]296                (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]297              }
298
299            (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]302              {
[88]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]));
[77]305                if (_param->_have_port_context_id)
[88]306                (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]307                if (_param->_have_port_front_end_id)
[88]308                (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]309                if (_param->_have_port_ooo_engine_id)
[88]310                (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]311              }
312
313            (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]316              {
[88]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]));
[77]319                if (_param->_have_port_context_id)
[88]320                (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]321                if (_param->_have_port_front_end_id)
[88]322                (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]323                if (_param->_have_port_ooo_engine_id)
[88]324                (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]325              }
326
327            (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]330              {
[88]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]));
[77]333                if (_param->_have_port_context_id)
[88]334                (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]335                if (_param->_have_port_front_end_id)
[88]336                (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]337                if (_param->_have_port_ooo_engine_id)
[88]338                (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]339              }
340
341            (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]344              {
[88]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]));
[77]347                if (_param->_have_port_context_id)
[88]348                (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]349                if (_param->_have_port_front_end_id)
[88]350                (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]351                if (_param->_have_port_ooo_engine_id)
[88]352                (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]353              }
354
355            (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_WRITE_UNIT_IN_ACK [i])); 
[88]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++)
[77]358              {
[88]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]));
[77]361                if (_param->_have_port_context_id)
[88]362                (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID    [x][y]));
[77]363                if (_param->_have_port_front_end_id)
[88]364                (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID  [x][y]));
[77]365                if (_param->_have_port_ooo_engine_id)
[88]366                (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y]));
[77]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
[88]383    if (usage_is_set(_usage,USE_STATISTICS))
[77]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.