source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/src/OOO_Engine_allocation.cpp @ 121

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

1) Commit_unit : remove read information of ROB

  • Property svn:keywords set to Id
File size: 119.4 KB
Line 
1/*
2 * $Id: OOO_Engine_allocation.cpp 121 2009-05-27 10:13:56Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/include/OOO_Engine.h"
9#include "Behavioural/include/Allocation.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16
17#undef  FUNCTION
18#define FUNCTION "OOO_Engine::allocation"
19  void OOO_Engine::allocation
20  (
21#ifdef STATISTICS
22   morpheo::behavioural::Parameters_Statistics * param_statistics
23#else
24   void
25#endif
26   )
27  {
28    log_begin(OOO_Engine,FUNCTION);
29
30    _component   = new Component (_usage);
31
32    Entity * entity = _component->set_entity (_name       
33                                              ,"OOO_Engine"
34#ifdef POSITION
35                                              ,COMBINATORY
36#endif
37                                              );
38
39    _interfaces = entity->set_interfaces();
40   
41    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42    {
43      Interface * interface = _interfaces->set_interface(""
44#ifdef POSITION
45                                                         ,IN
46                                                         ,SOUTH,
47                                                         "Generalist interface"
48#endif
49                                                         );
50     
51      in_CLOCK        = interface->set_signal_clk              ("clock" ,1, CLOCK_VHDL_YES);
52      in_NRESET       = interface->set_signal_in  <Tcontrol_t> ("nreset",1, RESET_VHDL_YES);
53    }
54
55    // ~~~~~[ Interface : "rename" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56    {
57      ALLOC2_INTERFACE_BEGIN("rename",IN,WEST,_("Instruction from front_end."),_param->_nb_front_end,_param->_nb_inst_decod[it1]);
58
59      _ALLOC2_VALACK_IN ( in_RENAME_VAL                       , VAL                                                                                 ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
60      _ALLOC2_VALACK_OUT(out_RENAME_ACK                       , ACK                                                                                 ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
61      _ALLOC2_SIGNAL_IN ( in_RENAME_FRONT_END_ID              ,"FRONT_END_ID"              ,Tcontext_t        ,_param->_size_front_end_id           ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
62      _ALLOC2_SIGNAL_IN ( in_RENAME_CONTEXT_ID                ,"CONTEXT_ID"                ,Tcontext_t        ,_param->_size_context_id             ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
63      _ALLOC2_SIGNAL_IN ( in_RENAME_DEPTH                     ,"DEPTH"                     ,Tdepth_t          ,_param->_size_depth                  ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
64      _ALLOC2_SIGNAL_IN ( in_RENAME_TYPE                      ,"TYPE"                      ,Ttype_t           ,_param->_size_type                   ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
65      _ALLOC2_SIGNAL_IN ( in_RENAME_OPERATION                 ,"OPERATION"                 ,Toperation_t      ,_param->_size_operation              ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
66      _ALLOC2_SIGNAL_IN ( in_RENAME_NO_EXECUTE                ,"NO_EXECUTE"                ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
67      _ALLOC2_SIGNAL_IN ( in_RENAME_IS_DELAY_SLOT             ,"IS_DELAY_SLOT"             ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
68#ifdef DEBUG
69      _ALLOC2_SIGNAL_IN ( in_RENAME_ADDRESS                   ,"ADDRESS"                   ,Taddress_t        ,_param->_size_instruction_address    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
70#endif
71      _ALLOC2_SIGNAL_IN ( in_RENAME_ADDRESS_NEXT              ,"ADDRESS_NEXT"              ,Taddress_t        ,_param->_size_instruction_address    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
72      _ALLOC2_SIGNAL_IN ( in_RENAME_HAS_IMMEDIAT              ,"HAS_IMMEDIAT"              ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
73      _ALLOC2_SIGNAL_IN ( in_RENAME_IMMEDIAT                  ,"IMMEDIAT"                  ,Tgeneral_data_t   ,_param->_size_general_data           ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
74      _ALLOC2_SIGNAL_IN ( in_RENAME_READ_RA                   ,"READ_RA"                   ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
75      _ALLOC2_SIGNAL_IN ( in_RENAME_NUM_REG_RA                ,"NUM_REG_RA"                ,Tgeneral_address_t,_param->_size_general_register_logic ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
76      _ALLOC2_SIGNAL_IN ( in_RENAME_READ_RB                   ,"READ_RB"                   ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
77      _ALLOC2_SIGNAL_IN ( in_RENAME_NUM_REG_RB                ,"NUM_REG_RB"                ,Tgeneral_address_t,_param->_size_general_register_logic ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
78      _ALLOC2_SIGNAL_IN ( in_RENAME_READ_RC                   ,"READ_RC"                   ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
79      _ALLOC2_SIGNAL_IN ( in_RENAME_NUM_REG_RC                ,"NUM_REG_RC"                ,Tspecial_address_t,_param->_size_special_register_logic ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
80      _ALLOC2_SIGNAL_IN ( in_RENAME_WRITE_RD                  ,"WRITE_RD"                  ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
81      _ALLOC2_SIGNAL_IN ( in_RENAME_NUM_REG_RD                ,"NUM_REG_RD"                ,Tgeneral_address_t,_param->_size_general_register_logic ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
82      _ALLOC2_SIGNAL_IN ( in_RENAME_WRITE_RE                  ,"WRITE_RE"                  ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
83      _ALLOC2_SIGNAL_IN ( in_RENAME_NUM_REG_RE                ,"NUM_REG_RE"                ,Tspecial_address_t,_param->_size_special_register_logic ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
84      _ALLOC2_SIGNAL_IN ( in_RENAME_EXCEPTION_USE             ,"EXCEPTION_USE"             ,Texception_t      ,_param->_size_exception_use          ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
85      _ALLOC2_SIGNAL_IN ( in_RENAME_EXCEPTION                 ,"EXCEPTION"                 ,Texception_t      ,_param->_size_exception              ,_param->_nb_front_end,_param->_nb_inst_decod[it1]);
86
87      ALLOC2_INTERFACE_END(_param->_nb_front_end,_param->_nb_inst_decod[it1]);
88    }
89
90    // ~~~~~[ Interface : "issue" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91    {
92      ALLOC1_INTERFACE_BEGIN("issue",OUT,EAST,_("Instruction to execute_loop"),_param->_nb_inst_issue);
93
94      ALLOC1_VALACK_OUT (out_ISSUE_VAL                        , VAL                                                                                 );
95      ALLOC1_VALACK_IN  ( in_ISSUE_ACK                        , ACK                                                                                 );
96      ALLOC1_SIGNAL_OUT (out_ISSUE_FRONT_END_ID               ,"FRONT_END_ID"              ,Tcontext_t        ,_param->_size_front_end_id           );
97      ALLOC1_SIGNAL_OUT (out_ISSUE_CONTEXT_ID                 ,"CONTEXT_ID"                ,Tcontext_t        ,_param->_size_context_id             );
98      ALLOC1_SIGNAL_OUT (out_ISSUE_PACKET_ID                  ,"PACKET_ID"                 ,Tpacket_t         ,_param->_size_rob_ptr                );
99      ALLOC1_SIGNAL_OUT (out_ISSUE_TYPE                       ,"TYPE"                      ,Ttype_t           ,_param->_size_type                   );
100      ALLOC1_SIGNAL_OUT (out_ISSUE_OPERATION                  ,"OPERATION"                 ,Toperation_t      ,_param->_size_operation              );
101      ALLOC1_SIGNAL_OUT (out_ISSUE_STORE_QUEUE_PTR_WRITE      ,"STORE_QUEUE_PTR_WRITE"     ,Tlsq_ptr_t        ,_param->_size_store_queue_ptr        );
102      ALLOC1_SIGNAL_OUT (out_ISSUE_LOAD_QUEUE_PTR_WRITE       ,"LOAD_QUEUE_PTR_WRITE"      ,Tlsq_ptr_t        ,_param->_size_load_queue_ptr         );
103      ALLOC1_SIGNAL_OUT (out_ISSUE_HAS_IMMEDIAT               ,"HAS_IMMEDIAT"              ,Tcontrol_t        ,1                                    );
104      ALLOC1_SIGNAL_OUT (out_ISSUE_IMMEDIAT                   ,"IMMEDIAT"                  ,Tgeneral_data_t   ,_param->_size_general_data           );
105      ALLOC1_SIGNAL_OUT (out_ISSUE_READ_RA                    ,"READ_RA"                   ,Tcontrol_t        ,1                                    );
106      ALLOC1_SIGNAL_OUT (out_ISSUE_NUM_REG_RA                 ,"NUM_REG_RA"                ,Tgeneral_address_t,_param->_size_general_register       );
107      ALLOC1_SIGNAL_OUT (out_ISSUE_READ_RB                    ,"READ_RB"                   ,Tcontrol_t        ,1                                    );
108      ALLOC1_SIGNAL_OUT (out_ISSUE_NUM_REG_RB                 ,"NUM_REG_RB"                ,Tgeneral_address_t,_param->_size_general_register       );
109      ALLOC1_SIGNAL_OUT (out_ISSUE_READ_RC                    ,"READ_RC"                   ,Tcontrol_t        ,1                                    );
110      ALLOC1_SIGNAL_OUT (out_ISSUE_NUM_REG_RC                 ,"NUM_REG_RC"                ,Tspecial_address_t,_param->_size_special_register       );
111      ALLOC1_SIGNAL_OUT (out_ISSUE_WRITE_RD                   ,"WRITE_RD"                  ,Tcontrol_t        ,1                                    );
112      ALLOC1_SIGNAL_OUT (out_ISSUE_NUM_REG_RD                 ,"NUM_REG_RD"                ,Tgeneral_address_t,_param->_size_general_register       );
113      ALLOC1_SIGNAL_OUT (out_ISSUE_WRITE_RE                   ,"WRITE_RE"                  ,Tcontrol_t        ,1                                    );
114      ALLOC1_SIGNAL_OUT (out_ISSUE_NUM_REG_RE                 ,"NUM_REG_RE"                ,Tspecial_address_t,_param->_size_special_register       );
115
116      ALLOC1_INTERFACE_END(_param->_nb_inst_issue);
117    }
118
119    // ~~~~~[ Interface "execute_loop" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120    {
121      ALLOC2_INTERFACE_BEGIN("execute_loop",IN,EAST,_("Instruction executed, from execute_loop."),_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
122
123      _ALLOC2_VALACK_IN ( in_EXECUTE_LOOP_VAL                 , VAL                                                                                 ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
124      _ALLOC2_VALACK_OUT(out_EXECUTE_LOOP_ACK                 , ACK                                                                                 ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
125      _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_FRONT_END_ID        ,"FRONT_END_ID"              ,Tcontext_t        ,_param->_size_front_end_id           ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
126      _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_CONTEXT_ID          ,"CONTEXT_ID"                ,Tcontext_t        ,_param->_size_context_id             ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
127      _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_PACKET_ID           ,"PACKET_ID"                 ,Tpacket_t         ,_param->_size_rob_ptr                ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
128//    _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_TYPE                ,"TYPE"                      ,Ttype_t           ,_param->_size_type                   ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
129//    _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_OPERATION           ,"OPERATION"                 ,Toperation_t      ,_param->_size_operation              ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
130      _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_FLAGS               ,"FLAGS"                     ,Tspecial_data_t   ,_param->_size_special_data           ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
131      _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_EXCEPTION           ,"EXCEPTION"                 ,Texception_t      ,_param->_size_exception              ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
132      _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_NO_SEQUENCE         ,"NO_SEQUENCE"               ,Tcontrol_t        ,1                                    ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
133      _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_ADDRESS             ,"ADDRESS"                   ,Taddress_t        ,_param->_size_instruction_address    ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
134      _ALLOC2_SIGNAL_IN ( in_EXECUTE_LOOP_DATA                ,"DATA"                      ,Tgeneral_data_t   ,_param->_size_general_data           ,_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
135
136      ALLOC2_INTERFACE_END(_param->_nb_execute_loop,_param->_nb_inst_execute[it1]);
137    }
138
139    // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140    {
141      ALLOC1_INTERFACE_BEGIN("insert",OUT,EAST,_("Interface with RegisterFile's stat-list (insert Re-Order-Buffer)."),_param->_sum_inst_insert);
142
143      ALLOC1_VALACK_OUT (out_INSERT_VAL                       , VAL);
144      ALLOC1_VALACK_IN  ( in_INSERT_ACK                       , ACK);
145      ALLOC1_SIGNAL_OUT (out_INSERT_RD_USE                    ,"RD_USE"                    ,Tcontrol_t        ,1                                    );
146      ALLOC1_SIGNAL_OUT (out_INSERT_RD_NUM_REG                ,"RD_NUM_REG"                ,Tgeneral_address_t,_param->_size_general_register       );
147      ALLOC1_SIGNAL_OUT (out_INSERT_RE_USE                    ,"RE_USE"                    ,Tcontrol_t        ,1                                    );
148      ALLOC1_SIGNAL_OUT (out_INSERT_RE_NUM_REG                ,"RE_NUM_REG"                ,Tspecial_address_t,_param->_size_special_register       );
149
150      ALLOC1_INTERFACE_END(_param->_sum_inst_insert);
151    }
152
153//     // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
154//     {
155//       ALLOC1_INTERFACE_BEGIN("retire",OUT,EAST,_("Interface with RegisterFile's stat-list (retire Re-Order-Buffer)."),_param->_sum_inst_retire);
156
157//       ALLOC1_VALACK_OUT (out_RETIRE_VAL                       , VAL);
158//       ALLOC1_VALACK_IN  ( in_RETIRE_ACK                       , ACK);
159//       ALLOC1_SIGNAL_OUT (out_RETIRE_RD_OLD_USE                ,"RD_OLD_USE"                ,Tcontrol_t        ,1                                    );
160//       ALLOC1_SIGNAL_OUT (out_RETIRE_RD_OLD_NUM_REG            ,"RD_OLD_NUM_REG"            ,Tgeneral_address_t,_param->_size_general_register       );
161//       ALLOC1_SIGNAL_OUT (out_RETIRE_RD_NEW_USE                ,"RD_NEW_USE"                ,Tcontrol_t        ,1                                    );
162//       ALLOC1_SIGNAL_OUT (out_RETIRE_RD_NEW_NUM_REG            ,"RD_NEW_NUM_REG"            ,Tgeneral_address_t,_param->_size_general_register       );
163//       ALLOC1_SIGNAL_OUT (out_RETIRE_RE_OLD_USE                ,"RE_OLD_USE"                ,Tcontrol_t        ,1                                    );
164//       ALLOC1_SIGNAL_OUT (out_RETIRE_RE_OLD_NUM_REG            ,"RE_OLD_NUM_REG"            ,Tspecial_address_t,_param->_size_special_register       );
165//       ALLOC1_SIGNAL_OUT (out_RETIRE_RE_NEW_USE                ,"RE_NEW_USE"                ,Tcontrol_t        ,1                                    );
166//       ALLOC1_SIGNAL_OUT (out_RETIRE_RE_NEW_NUM_REG            ,"RE_NEW_NUM_REG"            ,Tspecial_address_t,_param->_size_special_register       );
167
168//       ALLOC1_INTERFACE_END(_param->_sum_inst_retire);
169//     }
170
171    // ~~~~~[ Interface : "branch_complete" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~         
172    {
173      ALLOC1_INTERFACE_BEGIN("branch_complete",OUT,WEST,_("Instruction to execute_loop"),_param->_nb_inst_branch_complete);
174
175      ALLOC1_VALACK_OUT (out_BRANCH_COMPLETE_VAL              , VAL);
176      ALLOC1_VALACK_IN  ( in_BRANCH_COMPLETE_ACK              , ACK);
177      ALLOC1_SIGNAL_OUT (out_BRANCH_COMPLETE_FRONT_END_ID     ,"FRONT_END_ID"              ,Tcontext_t        ,_param->_size_front_end_id           );
178      ALLOC1_SIGNAL_OUT (out_BRANCH_COMPLETE_CONTEXT_ID       ,"CONTEXT_ID"                ,Tcontext_t        ,_param->_size_context_id             );
179      ALLOC1_SIGNAL_OUT (out_BRANCH_COMPLETE_DEPTH            ,"DEPTH"                     ,Tdepth_t          ,_param->_size_depth                  );
180      ALLOC1_SIGNAL_OUT (out_BRANCH_COMPLETE_ADDRESS          ,"ADDRESS"                   ,Taddress_t        ,_param->_size_instruction_address    );
181      ALLOC1_SIGNAL_OUT (out_BRANCH_COMPLETE_NO_SEQUENCE      ,"NO_SEQUENCE"               ,Tcontrol_t        ,1                                    );
182      ALLOC1_SIGNAL_IN  ( in_BRANCH_COMPLETE_MISS_PREDICTION  ,"MISS_PREDICTION"           ,Tcontrol_t        ,1                                    );
183
184      ALLOC1_INTERFACE_END(_param->_nb_inst_branch_complete);
185    }
186                                                                             
187    // ~~~~~[ Interface : "commit_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188    {
189      ALLOC0_INTERFACE_BEGIN("commit_event",OUT,WEST,_("Commit an event (exception)."));
190
191      ALLOC0_VALACK_OUT(out_COMMIT_EVENT_VAL                 , VAL);
192      ALLOC0_VALACK_IN ( in_COMMIT_EVENT_ACK                 , ACK);
193      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_FRONT_END_ID        ,"FRONT_END_ID"              ,Tcontext_t        ,_param->_size_front_end_id           );
194      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_CONTEXT_ID          ,"CONTEXT_ID"                ,Tcontext_t        ,_param->_size_context_id             );
195      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_DEPTH               ,"DEPTH"                     ,Tdepth_t          ,_param->_size_depth                  );
196      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_TYPE                ,"TYPE"                      ,Tevent_type_t     ,_param->_size_event_type             );
197      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_IS_DELAY_SLOT       ,"IS_DELAY_SLOT"             ,Tcontrol_t        ,1                                    );
198      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_ADDRESS             ,"ADDRESS"                   ,Taddress_t        ,_param->_size_instruction_address    );
199      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_ADDRESS_EPCR_VAL    ,"ADDRESS_EPCR_VAL"          ,Tcontrol_t        ,1                                    );
200      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_ADDRESS_EPCR        ,"ADDRESS_EPCR"              ,Taddress_t        ,_param->_size_instruction_address    );
201      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_ADDRESS_EEAR_VAL    ,"ADDRESS_EEAR_VAL"          ,Tcontrol_t        ,1                                    );
202      ALLOC0_SIGNAL_OUT(out_COMMIT_EVENT_ADDRESS_EEAR        ,"ADDRESS_EEAR"              ,Tgeneral_data_t   ,_param->_size_general_data           );
203
204      ALLOC0_INTERFACE_END();
205    }
206
207    // ~~~~~[ Interface "event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
208    {
209      ALLOC2_INTERFACE_BEGIN("event",IN,WEST,_("Event from context_state."),_param->_nb_front_end,_param->_nb_context[it1]);
210
211      _ALLOC2_VALACK_IN ( in_EVENT_VAL                        , VAL                                                                                 ,_param->_nb_front_end,_param->_nb_context[it1]);
212      _ALLOC2_VALACK_OUT(out_EVENT_ACK                        , ACK                                                                                 ,_param->_nb_front_end,_param->_nb_context[it1]);
213      _ALLOC2_SIGNAL_IN ( in_EVENT_ADDRESS                    ,"ADDRESS"                   ,Taddress_t        ,_param->_size_instruction_address    ,_param->_nb_front_end,_param->_nb_context[it1]);
214      _ALLOC2_SIGNAL_IN ( in_EVENT_ADDRESS_NEXT               ,"ADDRESS_NEXT"              ,Taddress_t        ,_param->_size_instruction_address    ,_param->_nb_front_end,_param->_nb_context[it1]); 
215      _ALLOC2_SIGNAL_IN ( in_EVENT_ADDRESS_NEXT_VAL           ,"ADDRESS_NEXT_VAL"          ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_context[it1]);
216      _ALLOC2_SIGNAL_IN ( in_EVENT_IS_DS_TAKE                 ,"IS_DS_TAKE"                ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_context[it1]);
217
218      ALLOC2_INTERFACE_END(_param->_nb_front_end,_param->_nb_context[it1]);
219    }
220
221    // ~~~~~[ Interface "spr_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
222    {
223      ALLOC2_INTERFACE_BEGIN("spr_event",IN,WEST,_("Exception : save spr and set a lot of special register."),_param->_nb_front_end,_param->_nb_context[it1]);
224
225      _ALLOC2_VALACK_IN ( in_SPR_EVENT_VAL                    , VAL                                                                                 ,_param->_nb_front_end,_param->_nb_context[it1]);
226      _ALLOC2_VALACK_OUT(out_SPR_EVENT_ACK                    , ACK                                                                                 ,_param->_nb_front_end,_param->_nb_context[it1]);
227      _ALLOC2_SIGNAL_IN ( in_SPR_EVENT_EPCR                   ,"EPCR"                      ,Tspr_t            ,_param->_size_spr                    ,_param->_nb_front_end,_param->_nb_context[it1]);
228      _ALLOC2_SIGNAL_IN ( in_SPR_EVENT_EEAR_WEN               ,"EEAR_WEN"                  ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_context[it1]);
229      _ALLOC2_SIGNAL_IN ( in_SPR_EVENT_EEAR                   ,"EEAR"                      ,Tspr_t            ,_param->_size_spr                    ,_param->_nb_front_end,_param->_nb_context[it1]);
230      _ALLOC2_SIGNAL_IN ( in_SPR_EVENT_SR_DSX                 ,"SR_DSX"                    ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_context[it1]);
231      _ALLOC2_SIGNAL_IN ( in_SPR_EVENT_SR_TO_ESR              ,"SR_TO_ESR"                 ,Tcontrol_t        ,1                                    ,_param->_nb_front_end,_param->_nb_context[it1]);
232
233      ALLOC2_INTERFACE_END(_param->_nb_front_end,_param->_nb_context[it1]);
234    }
235                                                                                 
236    // ~~~~~[ Interface : "nb_inst" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237    {
238      ALLOC2_INTERFACE_BEGIN("nb_inst",OUT,WEST,_("Internal number instruction."),_param->_nb_front_end,_param->_nb_context[it1]);
239
240      _ALLOC2_SIGNAL_OUT(out_NB_INST_COMMIT_ALL               ,"COMMIT_ALL"                 ,Tcounter_t       ,_param->_size_nb_inst_commit         ,_param->_nb_front_end,_param->_nb_context[it1]);
241      _ALLOC2_SIGNAL_OUT(out_NB_INST_COMMIT_MEM               ,"COMMIT_MEM"                 ,Tcounter_t       ,_param->_size_nb_inst_commit         ,_param->_nb_front_end,_param->_nb_context[it1]);
242      _ALLOC2_SIGNAL_IN ( in_NB_INST_DECOD_ALL                ,"DECOD_ALL"                  ,Tcounter_t       ,_param->_size_nb_inst_decod          ,_param->_nb_front_end,_param->_nb_context[it1]);
243
244      ALLOC2_INTERFACE_END(_param->_nb_front_end,_param->_nb_context[it1]);
245    }
246
247    // ~~~~~[ Interface : "depth" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
248    {
249      ALLOC2_INTERFACE_BEGIN("depth",IN,WEST,_("Interface with Prediction unit."),_param->_nb_front_end, _param->_nb_context[it1]);
250
251      _ALLOC2_SIGNAL_IN ( in_DEPTH_MIN                        ,"MIN"                        ,Tdepth_t         ,_param->_size_depth                  ,_param->_nb_front_end, _param->_nb_context[it1]);
252      _ALLOC2_SIGNAL_IN ( in_DEPTH_MAX                        ,"MAX"                        ,Tdepth_t         ,_param->_size_depth                  ,_param->_nb_front_end, _param->_nb_context[it1]); 
253      _ALLOC2_SIGNAL_IN ( in_DEPTH_FULL                       ,"FULL"                       ,Tcontrol_t       ,1                                    ,_param->_nb_front_end, _param->_nb_context[it1]); 
254
255      ALLOC2_INTERFACE_END(_param->_nb_front_end,_param->_nb_context[it1]);
256    }
257
258    // ~~~~~[ Interface : "spr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
259    {
260      ALLOC2_INTERFACE_BEGIN("spr",OUT,WEST,_("SPR"),_param->_nb_front_end,_param->_nb_context[it1]);
261
262      _ALLOC2_SIGNAL_OUT(out_SPR_SR_IEE                       ,"SR_IEE"                     ,Tcontrol_t       ,1                                    ,_param->_nb_front_end,_param->_nb_context[it1]);
263      _ALLOC2_SIGNAL_OUT(out_SPR_SR_EPH                       ,"SR_EPH"                     ,Tcontrol_t       ,1                                    ,_param->_nb_front_end,_param->_nb_context[it1]);
264
265      ALLOC2_INTERFACE_END(_param->_nb_front_end,_param->_nb_context[it1]);
266    }
267
268    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
269    std::string name;
270
271    _component_rename_unit = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::Rename_unit * [_param->_nb_rename_unit];
272    for (uint32_t i=0; i<_param->_nb_rename_unit; ++i)
273      {
274        name = _name+"_rename_unit_"+toString(i);
275        log_printf(TRACE,OOO_Engine,FUNCTION,_("Create   : %s"),name.c_str());
276       
277        _component_rename_unit [i] = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::Rename_unit
278          (name.c_str()
279#ifdef STATISTICS
280           ,param_statistics
281#endif
282           ,_param->_param_rename_unit [i]
283           ,_usage);
284
285        _component->set_component (_component_rename_unit [i]->_component
286#ifdef POSITION
287                                   , 50, 50, 10, 10
288#endif
289                                   );
290      }
291
292    {
293      name = _name+"_commit_unit";
294      log_printf(TRACE,OOO_Engine,FUNCTION,_("Create   : %s"),name.c_str());
295     
296      _component_commit_unit = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::Commit_unit
297        (name.c_str()
298#ifdef STATISTICS
299         ,param_statistics
300#endif
301         ,_param->_param_commit_unit
302         ,_usage);
303     
304      _component->set_component (_component_commit_unit->_component
305#ifdef POSITION
306                                 , 50, 50, 10, 10
307#endif
308                                 );
309    }
310
311    {
312      name = _name+"_issue_queue";
313      log_printf(TRACE,OOO_Engine,FUNCTION,_("Create   : %s"),name.c_str());
314     
315      _component_issue_queue = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::issue_queue::Issue_queue
316        (name.c_str()
317#ifdef STATISTICS
318         ,param_statistics
319#endif
320         ,_param->_param_issue_queue
321         ,_usage);
322     
323      _component->set_component (_component_issue_queue->_component
324#ifdef POSITION
325                                 , 50, 50, 10, 10
326#endif
327                                 );
328    }
329
330    {
331      name = _name+"_reexecute_unit";
332      log_printf(TRACE,OOO_Engine,FUNCTION,_("Create   : %s"),name.c_str());
333     
334      _component_reexecute_unit = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::reexecute_unit::Reexecute_unit
335        (name.c_str()
336#ifdef STATISTICS
337         ,param_statistics
338#endif
339         ,_param->_param_reexecute_unit
340         ,_usage);
341     
342      _component->set_component (_component_reexecute_unit->_component
343#ifdef POSITION
344                                 , 50, 50, 10, 10
345#endif
346                                 );
347    }
348
349    {
350      name = _name+"_special_register_unit";
351      log_printf(TRACE,OOO_Engine,FUNCTION,_("Create   : %s"),name.c_str());
352     
353      _component_special_register_unit = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::special_register_unit::Special_Register_unit
354        (name.c_str()
355#ifdef STATISTICS
356         ,param_statistics
357#endif
358         ,_param->_param_special_register_unit
359         ,_usage);
360     
361      _component->set_component (_component_special_register_unit->_component
362#ifdef POSITION
363                                 , 50, 50, 10, 10
364#endif
365                                 );
366    }
367
368    {
369      name = _name+"_glue";
370      log_printf(TRACE,OOO_Engine,FUNCTION,_("Create   : %s"),name.c_str());
371     
372      _component_glue = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::ooo_engine_glue::OOO_Engine_Glue
373        (name.c_str()
374#ifdef STATISTICS
375         ,param_statistics
376#endif
377         ,_param->_param_glue
378         ,_usage);
379     
380      _component->set_component (_component_glue->_component
381#ifdef POSITION
382                                 , 50, 50, 10, 10
383#endif
384                                 );
385    }
386       
387    // ~~~~~[ Instanciation ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
388    std::string src,dest;
389
390    // ===================================================================
391    // =====[ rename_unit ]===============================================
392    // ===================================================================
393    for (uint32_t i=0; i<_param->_nb_rename_unit; ++i)
394      {
395        src = _name+"_rename_unit_"+toString(i);
396        log_printf(TRACE,OOO_Engine,FUNCTION,_("Instance : %s"),name.c_str());
397       
398        {
399          dest = _name;
400#ifdef POSITION
401          _component->interface_map (src ,"",
402                                     dest,"");
403#endif
404          PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK");
405          PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET");
406        }
407
408        // ~~~~~[ Interface : "rename_in" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
409        {
410          std::vector<uint32_t>::iterator it = _param->_link_front_end_with_rename_unit[i].begin();
411          uint32_t x = 0;
412          for (uint32_t j=0; j<_param->_nb_front_end; j++)
413            if (j == *it)
414              {
415                // this front end is link with this rename_unit
416                for (uint32_t k=0; k<_param->_nb_inst_decod [j]; k++)
417                  {
418                    dest = _name;
419
420#ifdef POSITION
421                    _component->interface_map (src ,"rename_in_"+toString(x)+"_"+toString(k),
422                                               dest,"rename_"   +toString(j)+"_"+toString(k));
423#endif
424
425                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_VAL"          ,
426                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_VAL"          );
427                    PORT_MAP(_component,src ,"out_RENAME_IN_"+toString(x)+"_"+toString(k)+"_ACK"          ,
428                                        dest,"out_RENAME_"   +toString(j)+"_"+toString(k)+"_ACK"          );
429                    if (_param->_have_port_context_id)
430                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_CONTEXT_ID"   ,
431                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_CONTEXT_ID"   );
432                    if (_param->_have_port_depth)
433                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_DEPTH"        ,
434                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_DEPTH"        );
435                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_TYPE"         ,
436                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_TYPE"         );
437                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_OPERATION"    ,
438                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_OPERATION"    );
439                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_NO_EXECUTE"   ,
440                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_NO_EXECUTE"   );
441                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_IS_DELAY_SLOT",
442                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_IS_DELAY_SLOT");
443#ifdef DEBUG
444                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_ADDRESS"      ,
445                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_ADDRESS"      );
446#endif
447                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_ADDRESS_NEXT" ,
448                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_ADDRESS_NEXT" );
449                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_HAS_IMMEDIAT" ,
450                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_HAS_IMMEDIAT" );
451                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_IMMEDIAT"     ,
452                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_IMMEDIAT"     );
453                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_READ_RA"      ,
454                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_READ_RA"      );
455                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_NUM_REG_RA"   ,
456                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_NUM_REG_RA"   );
457                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_READ_RB"      ,
458                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_READ_RB"      );
459                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_NUM_REG_RB"   ,
460                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_NUM_REG_RB"   );
461                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_READ_RC"      ,
462                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_READ_RC"      );
463                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_NUM_REG_RC"   ,
464                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_NUM_REG_RC"   );
465                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_WRITE_RD"     ,
466                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_WRITE_RD"     );
467                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_NUM_REG_RD"   ,
468                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_NUM_REG_RD"   );
469                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_WRITE_RE"     ,
470                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_WRITE_RE"     );
471                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_NUM_REG_RE"   ,
472                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_NUM_REG_RE"   );
473                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_EXCEPTION_USE",
474                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_EXCEPTION_USE");
475                    PORT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+"_EXCEPTION"    ,
476                                        dest, "in_RENAME_"   +toString(j)+"_"+toString(k)+"_EXCEPTION"    );
477
478                    // glue
479                    dest = _name+"_glue";
480
481#ifdef POSITION
482                    _component->interface_map (src ,"rename_in_"+toString(x)+"_"+toString(k),
483                                               dest,"rename_"   +toString(j)+"_"+toString(k));
484#endif
485
486                    if (_param->_have_port_front_end_id)
487                    COMPONENT_MAP(_component,src , "in_RENAME_IN_"+toString(x)+"_"+toString(k)+            "_FRONT_END_ID" ,
488                                             dest,"out_RENAME_"   +toString(j)+"_"+toString(k)+"_RENAME_UNIT_FRONT_END_ID" );
489                  }
490
491                x ++; 
492                it++;
493              }
494        }
495       
496        // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
497        for (uint32_t j=0; j<_param->_nb_inst_insert[i]; j++)
498          {
499            dest = _name+"_commit_unit";
500           
501#ifdef POSITION
502            _component->interface_map (src ,"insert_"+toString(j),
503                                       dest,"insert_"+toString(i)+"_"+toString(j));
504#endif
505
506            if (_param->_have_port_depth)
507            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_DEPTH"         ,
508                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_DEPTH"         );
509            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_IS_DELAY_SLOT" ,
510                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_IS_DELAY_SLOT" );
511#ifdef DEBUG
512            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_ADDRESS"       ,
513                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_ADDRESS"       );
514#endif
515            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_ADDRESS_NEXT"  ,
516                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_ADDRESS_NEXT"  );
517            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_EXCEPTION_USE" ,
518                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_EXCEPTION_USE" );
519            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_EXCEPTION"     ,
520                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_EXCEPTION"     );
521#ifdef DEBUG
522            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_NUM_REG_RA_LOG",
523                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_NUM_REG_RA_LOG");
524            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_NUM_REG_RB_LOG",
525                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_NUM_REG_RB_LOG");
526            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_NUM_REG_RC_LOG",
527                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_NUM_REG_RC_LOG");
528#endif
529            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_NUM_REG_RD_LOG",
530                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_NUM_REG_RD_LOG");
531            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)                +"_NUM_REG_RE_LOG",
532                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_NUM_REG_RE_LOG");
533
534            dest = _name+"_glue";
535           
536#ifdef POSITION
537            _component->interface_map (src ,"insert_"+toString(j),
538                                       dest,"insert_"+toString(i)+"_"+toString(j));
539#endif
540           
541            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_VAL"                  ,
542                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_VAL"                  );
543            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(j)+                            "_ACK"                  ,
544                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_ACK"                  );
545            if (_param->_have_port_front_end_id)
546            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_FRONT_END_ID"         ,
547                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_FRONT_END_ID"         );
548            if (_param->_have_port_context_id)
549            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_CONTEXT_ID"           ,
550                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_CONTEXT_ID"           );
551            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_TYPE"                 ,
552                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_TYPE"                 );
553            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_OPERATION"            ,
554                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_OPERATION"            );
555            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_NO_EXECUTE"           ,
556                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_NO_EXECUTE"           );
557            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_HAS_IMMEDIAT"         ,
558                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_HAS_IMMEDIAT"         );
559            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_IMMEDIAT"             ,
560                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_IMMEDIAT"             );
561            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_STORE_QUEUE_PTR_WRITE",
562                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_STORE_QUEUE_PTR_WRITE");
563            if (_param->_have_port_load_queue_ptr)
564            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_LOAD_QUEUE_PTR_WRITE" ,
565                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_LOAD_QUEUE_PTR_WRITE" );
566            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_READ_RA"              ,
567                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_READ_RA"              );
568            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_NUM_REG_RA_PHY"       ,
569                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_NUM_REG_RA_PHY"       );
570            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_READ_RB"              ,
571                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_READ_RB"              );
572            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_NUM_REG_RB_PHY"       ,
573                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_NUM_REG_RB_PHY"       );
574            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_READ_RC"              ,
575                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_READ_RC"              );
576            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_NUM_REG_RC_PHY"       ,
577                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_NUM_REG_RC_PHY"       );
578            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_WRITE_RD"             ,
579                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_WRITE_RD"             );
580            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_NUM_REG_RD_PHY_OLD"   ,
581                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_NUM_REG_RD_PHY_OLD"   );
582            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_NUM_REG_RD_PHY_NEW"   ,
583                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_NUM_REG_RD_PHY_NEW"   );
584            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_WRITE_RE"             ,
585                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_WRITE_RE"             );
586            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_NUM_REG_RE_PHY_OLD"   ,
587                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_NUM_REG_RE_PHY_OLD"   );
588            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j)+                            "_NUM_REG_RE_PHY_NEW"   ,
589                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_RENAME_UNIT_NUM_REG_RE_PHY_NEW"   );
590          }
591
592        // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
593        for (uint32_t j=0; j<_param->_nb_inst_retire[i]; j++)
594          {
595            dest = _name+"_commit_unit";
596           
597#ifdef POSITION
598            _component->interface_map (src ,"retire_"+toString(j),
599                                       dest,"retire_"+toString(i)+"_"+toString(j));
600#endif
601
602
603
604            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_VAL"               ,
605                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_VAL"               );
606            COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(j)+                "_ACK"               ,
607                                     dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_ACK"               );
608            if (_param->_have_port_front_end_id)
609            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_FRONT_END_ID"      ,
610                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID"      );
611            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_WRITE_RD"          ,
612                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_WRITE_RD"          );
613            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RD_PHY_OLD",
614                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RD_PHY_OLD");
615            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RD_PHY_NEW",
616                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RD_PHY_NEW");
617            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_WRITE_RE"          ,
618                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_WRITE_RE"          );
619            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RE_PHY_OLD",
620                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RE_PHY_OLD");
621            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RE_PHY_NEW",
622                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RE_PHY_NEW");
623            if (_param->_have_port_context_id)
624            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_CONTEXT_ID"           ,
625                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_CONTEXT_ID"           );
626//          COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_TYPE"                 ,
627//                                   dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_TYPE"                 );
628//          COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_OPERATION"            ,
629//                                   dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_OPERATION"            );
630            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_USE_STORE_QUEUE"      ,
631                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_USE_STORE_QUEUE"      );
632            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_USE_LOAD_QUEUE"       ,
633                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_USE_LOAD_QUEUE"       );
634            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_STORE_QUEUE_PTR_WRITE",
635                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_STORE_QUEUE_PTR_WRITE");
636            if (_param->_have_port_load_queue_ptr)
637            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_LOAD_QUEUE_PTR_WRITE" ,
638                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_LOAD_QUEUE_PTR_WRITE" );
639//             COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_READ_RA"              ,
640//                                      dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_READ_RA"              );
641//             COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RA_PHY"       ,
642//                                      dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RA_PHY"       );
643//             COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_READ_RB"              ,
644//                                      dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_READ_RB"              );
645//             COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RB_PHY"       ,
646//                                      dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RB_PHY"       );
647//             COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_READ_RC"              ,
648//                                      dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_READ_RC"              );
649//             COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RC_PHY"       ,
650//                                      dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RC_PHY"       );
651            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RD_LOG"       ,
652                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RD_LOG"       );
653            COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+                "_NUM_REG_RE_LOG"       ,
654                                     dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RE_LOG"       );
655          }
656
657        // ~~~~~[ Interface : "spr_read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
658        {
659          std::vector<uint32_t>::iterator it = _param->_link_front_end_with_rename_unit[i].begin();
660          uint32_t x = 0;
661          for (uint32_t j=0; j<_param->_nb_front_end; j++)
662            if (j == (*it))
663              {
664                for (uint32_t k=0; k<_param->_nb_context[i]; k++)
665                  {
666                    dest = _name+"_commit_unit";
667                   
668#ifdef POSITION
669                    _component->interface_map (src ,"retire_event_"+toString(x)+"_"+toString(k),
670                                               dest,"retire_event_"+toString(j)+"_"+toString(k));
671#endif
672                    COMPONENT_MAP(_component,src , "in_RETIRE_EVENT_"+toString(x)+"_"+toString(k)+"_VAL",
673                                             dest,"out_RETIRE_EVENT_"+toString(j)+"_"+toString(k)+"_VAL");
674                    COMPONENT_MAP(_component,src ,"out_RETIRE_EVENT_"+toString(x)+"_"+toString(k)+"_ACK",
675                                             dest, "in_RETIRE_EVENT_"+toString(j)+"_"+toString(k)+"_ACK");
676                    COMPONENT_MAP(_component,src , "in_RETIRE_EVENT_"+toString(x)+"_"+toString(k)+"_STATE",
677                                             dest,"out_RETIRE_EVENT_"+toString(j)+"_"+toString(k)+"_STATE");
678                  }
679                x++;
680                ++it;
681              }
682        }
683
684        // ~~~~~[ Interface : "spr_read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
685        {
686          std::vector<uint32_t>::iterator it = _param->_link_front_end_with_rename_unit[i].begin();
687          uint32_t x = 0;
688          for (uint32_t j=0; j<_param->_nb_front_end; j++)
689            if (j == *it)
690              {
691                for (uint32_t k=0; k<_param->_nb_context[j]; k++)
692                  {
693                    dest = _name+"_glue";
694                   
695#ifdef POSITION
696                    _component->interface_map (src ,"spr_read_"+toString(x)+"_"+toString(k),
697                                               dest,"spr_"     +toString(j)+"_"+toString(k));
698#endif
699
700                    COMPONENT_MAP(_component,src , "in_SPR_READ_"+toString(x)+"_"+toString(k)+            "_SR",
701                                             dest,"out_SPR_"     +toString(j)+"_"+toString(k)+"_RENAME_UNIT_SR");
702                  }
703                x++;
704                ++it;
705              }
706        }
707      }
708
709    // ===================================================================
710    // =====[ commit_unit ]===============================================
711    // ===================================================================
712    {
713      src = _name+"_commit_unit";
714      log_printf(TRACE,OOO_Engine,FUNCTION,_("Instance : %s"),name.c_str());
715           
716      {
717        dest = _name;
718#ifdef POSITION
719        _component->interface_map (src ,"",
720                                   dest,"");
721#endif
722        PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK");
723        PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET");
724      }
725
726      // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
727      for (uint32_t i=0; i<_param->_nb_rename_unit; ++i)
728        for (uint32_t j=0; j<_param->_nb_inst_insert[i]; j++)
729          {
730            dest = _name+"_glue";
731#ifdef POSITION
732            _component->interface_map (src ,"insert_"+toString(i)+"_"+toString(j),
733                                       dest,"insert_"+toString(i)+"_"+toString(j));
734#endif
735           
736            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_VAL"                  ,
737                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_VAL"                  );
738            COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_"+toString(j)+            "_ACK"                  ,
739                                     dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_ACK"                  );
740            if (_param->_have_port_front_end_id)
741            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_FRONT_END_ID"         ,
742                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_FRONT_END_ID"         );
743            if (_param->_have_port_context_id)
744            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_CONTEXT_ID"           ,
745                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_CONTEXT_ID"           );
746//          COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_RENAME_UNIT_ID"       ,
747//                                   dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_RENAME_UNIT_ID"       );
748            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_TYPE"                 ,
749                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_TYPE"                 );
750            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_OPERATION"            ,
751                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_OPERATION"            );
752            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_NO_EXECUTE"           ,
753                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NO_EXECUTE"           );
754            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_STORE_QUEUE_PTR_WRITE",
755                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_STORE_QUEUE_PTR_WRITE");
756            if (_param->_have_port_load_queue_ptr)
757            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_LOAD_QUEUE_PTR_WRITE" ,
758                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_LOAD_QUEUE_PTR_WRITE" );
759#ifdef DEBUG
760            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_READ_RA"              ,
761                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_READ_RA"              );
762            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RA_PHY"       ,
763                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RA_PHY"       );
764            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_READ_RB"              ,
765                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_READ_RB"              );
766            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RB_PHY"       ,
767                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RB_PHY"       );
768            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_READ_RC"              ,
769                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_READ_RC"              );
770            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RC_PHY"       ,
771                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RC_PHY"       );
772#endif
773            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_WRITE_RD"             ,
774                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_WRITE_RD"             );
775            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RD_PHY_OLD"   ,
776                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RD_PHY_OLD"   );
777            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RD_PHY_NEW"   ,
778                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RD_PHY_NEW"   );
779            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_WRITE_RE"             ,
780                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_WRITE_RE"             );
781            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RE_PHY_OLD"   ,
782                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RE_PHY_OLD"   );
783            COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RE_PHY_NEW"   ,
784                                     dest,"out_INSERT_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RE_PHY_NEW"   );
785           
786            dest = _name+"_issue_queue";
787#ifdef POSITION
788            _component->interface_map (src ,"insert_"  +toString(i)+"_"+toString(j),
789                                       dest,"issue_in_"+toString(i)+"_"+toString(j));
790#endif
791           
792            if (_param->_have_port_rob_ptr)
793            COMPONENT_MAP(_component,src ,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_PACKET_ID",
794                                     dest, "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+"_PACKET_ID");
795
796            //    in_INSERT_DEPTH          - component_rename_unit
797            //    in_INSERT_ADDRESS        - component_rename_unit
798            //    in_INSERT_ADDRESS_NEXT   - component_rename_unit
799            //    in_INSERT_EXCEPTION_USE  - component_rename_unit
800            //    in_INSERT_EXCEPTION      - component_rename_unit
801            //    in_INSERT_NUM_REG_RA_LOG - component_rename_unit
802            //    in_INSERT_NUM_REG_RB_LOG - component_rename_unit
803            //    in_INSERT_NUM_REG_RC_LOG - component_rename_unit
804            //    in_INSERT_NUM_REG_RD_LOG - component_rename_unit
805            //    in_INSERT_NUM_REG_RE_LOG - component_rename_unit
806            //    in_INSERT_IS_DELAY_SLOT  - component_rename_unit
807          }
808                                                                                   
809      // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
810      for (uint32_t i=0; i<_param->_nb_rename_unit; ++i)
811        for (uint32_t j=0; j<_param->_nb_inst_retire [i]; j++)
812          {
813//             dest = _name+"_glue";
814           
815// #ifdef POSITION
816//             _component->interface_map (src ,"retire_"+toString(i)+"_"+toString(j),
817//                                        dest,"retire_"+toString(i)+"_"+toString(j));
818// #endif
819
820//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_VAL"               ,
821//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_VAL"               );
822//             COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_"+toString(j)+            "_ACK"               ,
823//                                      dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_ACK"               );
824//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_WRITE_RD"          ,
825//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_WRITE_RD"          );
826//             if (_param->_have_port_front_end_id)
827//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_FRONT_END_ID"      ,
828//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_FRONT_END_ID"      );
829//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RD_PHY_OLD",
830//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RD_PHY_OLD");
831//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RD_PHY_NEW",
832//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RD_PHY_NEW");
833//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_WRITE_RE"          ,
834//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_WRITE_RE"          );
835//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RE_PHY_OLD",
836//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RE_PHY_OLD");
837//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RE_PHY_NEW",
838//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_NUM_REG_RE_PHY_NEW");
839//             COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_"+toString(j)+            "_EVENT_STATE"       ,
840//                                      dest, "in_RETIRE_"+toString(i)+"_"+toString(j)+"_COMMIT_UNIT_EVENT_STATE"       );
841
842
843            //  out_RETIRE_VAL                       - component_rename_unit
844            //   in_RETIRE_ACK                       - component_rename_unit
845            //  out_RETIRE_WRITE_RD                  - component_rename_unit
846            //  out_RETIRE_FRONT_END_ID              - component_rename_unit
847            //  out_RETIRE_NUM_REG_RD_PHY_OLD        - component_rename_unit
848            //  out_RETIRE_NUM_REG_RD_PHY_NEW        - component_rename_unit
849            //  out_RETIRE_WRITE_RE                  - component_rename_unit
850            //  out_RETIRE_NUM_REG_RE_PHY_OLD        - component_rename_unit
851            //  out_RETIRE_NUM_REG_RE_PHY_NEW        - component_rename_unit
852            //  out_RETIRE_EVENT_STATE               - component_rename_unit
853   
854            //  out_RETIRE_CONTEXT_ID                - component_rename_unit
855            ////out_RETIRE_RENAME_UNIT_ID            - component_rename_unit
856            //  out_RETIRE_USE_STORE_QUEUE           - component_rename_unit
857            //  out_RETIRE_USE_LOAD_QUEUE            - component_rename_unit
858            //  out_RETIRE_STORE_QUEUE_PTR_WRITE     - component_rename_unit
859            //  out_RETIRE_LOAD_QUEUE_PTR_WRITE      - component_rename_unit
860            //  out_RETIRE_READ_RA                   - component_rename_unit
861            //  out_RETIRE_NUM_REG_RA_PHY            - component_rename_unit
862            //  out_RETIRE_READ_RB                   - component_rename_unit
863            //  out_RETIRE_NUM_REG_RB_PHY            - component_rename_unit
864            //  out_RETIRE_READ_RC                   - component_rename_unit
865            //  out_RETIRE_NUM_REG_RC_PHY            - component_rename_unit
866            //  out_RETIRE_NUM_REG_RD_LOG            - component_rename_unit
867            //  out_RETIRE_NUM_REG_RE_LOG            - component_rename_unit
868          }
869     
870      // ~~~~~[ Interface "retire_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
871        // out_RETIRE_VAL         - rename_unit.out_RETIRE_VAL       
872        //  in_RETIRE_ACK         - rename_unit. in_RETIRE_ACK       
873        // out_RETIRE_EVENT_STATE - rename_unit.out_RETIRE_EVENT_STATE
874 
875
876      // ~~~~~[ Interface : "commit" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
877      for (uint32_t i=0; i<_param->_nb_inst_commit; i++)
878        {
879          dest = _name+"_reexecute_unit";
880#ifdef POSITION
881          _component->interface_map (src ,"commit_"+toString(i),
882                                     dest,"commit_"+toString(i));
883#endif
884       
885          COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_VAL"        ,
886                                   dest,"out_COMMIT_"+toString(i)+"_VAL"        );
887          COMPONENT_MAP(_component,src ,"out_COMMIT_"+toString(i)+"_ACK"        ,
888                                   dest, "in_COMMIT_"+toString(i)+"_ACK"        );
889          COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_WEN"        ,
890                                   dest,"out_COMMIT_"+toString(i)+"_WEN"        );
891//        if (_param->_have_port_context_id)
892//        COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_CONTEXT_ID"  ,
893//                                 dest,"out_COMMIT_"+toString(i)+"_CONTEXT_ID"  );
894//        if (_param->_have_port_front_end_id)
895//        COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_FRONT_END_ID",
896//                                 dest,"out_COMMIT_"+toString(i)+"_FRONT_END_ID");
897          if (_param->_have_port_rob_ptr)
898          COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_PACKET_ID"  ,
899                                   dest,"out_COMMIT_"+toString(i)+"_PACKET_ID"  );
900//        COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_OPERATION"  ,
901//                                 dest,"out_COMMIT_"+toString(i)+"_OPERATION"  );
902//        COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_TYPE"       ,
903//                                 dest,"out_COMMIT_"+toString(i)+"_TYPE"       );
904          COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_FLAGS"      ,
905                                   dest,"out_COMMIT_"+toString(i)+"_FLAGS"      );
906          COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_EXCEPTION"  ,
907                                   dest,"out_COMMIT_"+toString(i)+"_EXCEPTION"  );
908          COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_NO_SEQUENCE",
909                                   dest,"out_COMMIT_"+toString(i)+"_NO_SEQUENCE");
910          COMPONENT_MAP(_component,src , "in_COMMIT_"+toString(i)+"_ADDRESS"    ,
911                                   dest,"out_COMMIT_"+toString(i)+"_ADDRESS"    );
912          COMPONENT_MAP(_component,src ,"out_COMMIT_"+toString(i)+"_NUM_REG_RD" ,
913                                   dest, "in_COMMIT_"+toString(i)+"_NUM_REG_RD" );
914          //@@@@@@@@@@
915        }
916     
917      // ~~~~~[ Interface : "reexecute" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
918      for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++)
919        {
920          dest = _name+"_reexecute_unit";
921#ifdef POSITION
922          _component->interface_map (src ,"reexecute_"    +toString(i),
923                                     dest,"reexecute_rob_"+toString(i));
924#endif
925
926          COMPONENT_MAP(_component,src ,"out_REEXECUTE_"    +toString(i)+"_VAL"                  ,
927                                   dest, "in_REEXECUTE_ROB_"+toString(i)+"_VAL"                  );
928          COMPONENT_MAP(_component,src , "in_REEXECUTE_"    +toString(i)+"_ACK"                  ,
929                                   dest,"out_REEXECUTE_ROB_"+toString(i)+"_ACK"                  );
930          if (_param->_have_port_front_end_id)
931          COMPONENT_MAP(_component,src ,"out_REEXECUTE_"    +toString(i)+"_FRONT_END_ID"         ,
932                                   dest, "in_REEXECUTE_ROB_"+toString(i)+"_FRONT_END_ID"         );
933          if (_param->_have_port_context_id)
934          COMPONENT_MAP(_component,src ,"out_REEXECUTE_"    +toString(i)+"_CONTEXT_ID"           ,
935                                   dest, "in_REEXECUTE_ROB_"+toString(i)+"_CONTEXT_ID"           );
936          if (_param->_have_port_rob_ptr)
937          COMPONENT_MAP(_component,src ,"out_REEXECUTE_"    +toString(i)+"_PACKET_ID"            ,
938                                   dest, "in_REEXECUTE_ROB_"+toString(i)+"_PACKET_ID"            );
939          COMPONENT_MAP(_component,src ,"out_REEXECUTE_"    +toString(i)+"_OPERATION"            ,
940                                   dest, "in_REEXECUTE_ROB_"+toString(i)+"_OPERATION"            );
941          COMPONENT_MAP(_component,src ,"out_REEXECUTE_"    +toString(i)+"_TYPE"                 ,
942                                   dest, "in_REEXECUTE_ROB_"+toString(i)+"_TYPE"                 );
943          COMPONENT_MAP(_component,src ,"out_REEXECUTE_"    +toString(i)+"_STORE_QUEUE_PTR_WRITE",
944                                   dest, "in_REEXECUTE_ROB_"+toString(i)+"_STORE_QUEUE_PTR_WRITE");
945        }
946                                                                           
947      // ~~~~~[ Interface : "branch_complete" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
948      for (uint32_t i=0; i<_param->_nb_inst_branch_complete; i++)
949        {
950          dest = _name;
951#ifdef POSITION
952          _component->interface_map (src ,"branch_complete_"+toString(i),
953                                     dest,"branch_complete_"+toString(i));
954#endif
955
956          PORT_MAP(_component,src ,"out_BRANCH_COMPLETE_"+toString(i)+"_VAL"            ,
957                              dest,"out_BRANCH_COMPLETE_"+toString(i)+"_VAL"            );
958          PORT_MAP(_component,src , "in_BRANCH_COMPLETE_"+toString(i)+"_ACK"            ,
959                              dest, "in_BRANCH_COMPLETE_"+toString(i)+"_ACK"            );
960          if (_param->_have_port_front_end_id)
961          PORT_MAP(_component,src ,"out_BRANCH_COMPLETE_"+toString(i)+"_FRONT_END_ID"   ,
962                              dest,"out_BRANCH_COMPLETE_"+toString(i)+"_FRONT_END_ID"   );
963          if (_param->_have_port_context_id)
964          PORT_MAP(_component,src ,"out_BRANCH_COMPLETE_"+toString(i)+"_CONTEXT_ID"     ,
965                              dest,"out_BRANCH_COMPLETE_"+toString(i)+"_CONTEXT_ID"     );
966          if (_param->_have_port_depth)
967          PORT_MAP(_component,src ,"out_BRANCH_COMPLETE_"+toString(i)+"_DEPTH"          ,
968                              dest,"out_BRANCH_COMPLETE_"+toString(i)+"_DEPTH"          );
969          PORT_MAP(_component,src ,"out_BRANCH_COMPLETE_"+toString(i)+"_ADDRESS"        ,
970                              dest,"out_BRANCH_COMPLETE_"+toString(i)+"_ADDRESS"        );
971          PORT_MAP(_component,src ,"out_BRANCH_COMPLETE_"+toString(i)+"_NO_SEQUENCE"    ,
972                              dest,"out_BRANCH_COMPLETE_"+toString(i)+"_NO_SEQUENCE"    );
973          PORT_MAP(_component,src , "in_BRANCH_COMPLETE_"+toString(i)+"_MISS_PREDICTION",
974                              dest, "in_BRANCH_COMPLETE_"+toString(i)+"_MISS_PREDICTION");
975        }
976                                                                                   
977      // ~~~~~[ Interface : "update" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
978      {
979        dest = _name;
980#ifdef POSITION
981        _component->interface_map (src ,"update",
982                                   dest,"commit_event");
983#endif
984
985        PORT_MAP(_component,src ,"out_UPDATE_VAL"             ,dest,"out_COMMIT_EVENT_VAL"             );
986        PORT_MAP(_component,src , "in_UPDATE_ACK"             ,dest, "in_COMMIT_EVENT_ACK"             );
987        if (_param->_have_port_front_end_id)
988        PORT_MAP(_component,src ,"out_UPDATE_FRONT_END_ID"    ,dest,"out_COMMIT_EVENT_FRONT_END_ID"    );
989        if (_param->_have_port_context_id)
990        PORT_MAP(_component,src ,"out_UPDATE_CONTEXT_ID"      ,dest,"out_COMMIT_EVENT_CONTEXT_ID"      );
991        if (_param->_have_port_depth)
992        PORT_MAP(_component,src ,"out_UPDATE_DEPTH"           ,dest,"out_COMMIT_EVENT_DEPTH"           );
993        PORT_MAP(_component,src ,"out_UPDATE_TYPE"            ,dest,"out_COMMIT_EVENT_TYPE"            );
994        PORT_MAP(_component,src ,"out_UPDATE_IS_DELAY_SLOT"   ,dest,"out_COMMIT_EVENT_IS_DELAY_SLOT"   );
995        PORT_MAP(_component,src ,"out_UPDATE_ADDRESS"         ,dest,"out_COMMIT_EVENT_ADDRESS"         );
996        PORT_MAP(_component,src ,"out_UPDATE_ADDRESS_EPCR_VAL",dest,"out_COMMIT_EVENT_ADDRESS_EPCR_VAL");
997        PORT_MAP(_component,src ,"out_UPDATE_ADDRESS_EPCR"    ,dest,"out_COMMIT_EVENT_ADDRESS_EPCR"    );
998        PORT_MAP(_component,src ,"out_UPDATE_ADDRESS_EEAR_VAL",dest,"out_COMMIT_EVENT_ADDRESS_EEAR_VAL");
999        PORT_MAP(_component,src ,"out_UPDATE_ADDRESS_EEAR"    ,dest,"out_COMMIT_EVENT_ADDRESS_EEAR"    );
1000      }
1001
1002      // ~~~~~[ Interface "event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1003      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1004        for (uint32_t j=0; j<_param->_nb_context[i]; j++)
1005          {
1006            dest = _name;
1007#ifdef POSITION
1008            _component->interface_map (src ,"event_"+toString(i)+"_"+toString(j),
1009                                       dest,"event_"+toString(i)+"_"+toString(j));
1010#endif
1011           
1012            PORT_MAP(_component,src , "in_EVENT_"+toString(i)+"_"+toString(j)+"_VAL"             ,
1013                                dest, "in_EVENT_"+toString(i)+"_"+toString(j)+"_VAL"             );
1014            PORT_MAP(_component,src ,"out_EVENT_"+toString(i)+"_"+toString(j)+"_ACK"             ,
1015                                dest,"out_EVENT_"+toString(i)+"_"+toString(j)+"_ACK"             );
1016            PORT_MAP(_component,src , "in_EVENT_"+toString(i)+"_"+toString(j)+"_ADDRESS"         ,
1017                                dest, "in_EVENT_"+toString(i)+"_"+toString(j)+"_ADDRESS"         );
1018            PORT_MAP(_component,src , "in_EVENT_"+toString(i)+"_"+toString(j)+"_ADDRESS_NEXT"    ,
1019                                dest, "in_EVENT_"+toString(i)+"_"+toString(j)+"_ADDRESS_NEXT"    ); 
1020            PORT_MAP(_component,src , "in_EVENT_"+toString(i)+"_"+toString(j)+"_ADDRESS_NEXT_VAL",
1021                                dest, "in_EVENT_"+toString(i)+"_"+toString(j)+"_ADDRESS_NEXT_VAL");
1022            PORT_MAP(_component,src , "in_EVENT_"+toString(i)+"_"+toString(j)+"_IS_DS_TAKE"      ,
1023                                dest, "in_EVENT_"+toString(i)+"_"+toString(j)+"_IS_DS_TAKE"      );
1024          }
1025                                                                                   
1026      // ~~~~~[ Interface : "nb_inst" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
1027      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1028        for (uint32_t j=0; j<_param->_nb_context[i]; j++)
1029          {
1030            dest = _name;
1031#ifdef POSITION
1032            _component->interface_map (src ,"nb_inst_"+toString(i)+"_"+toString(j),
1033                                       dest,"nb_inst_"+toString(i)+"_"+toString(j));
1034#endif
1035
1036            PORT_MAP(_component,src ,"out_NB_INST_"+toString(i)+"_"+toString(j)+"_COMMIT_ALL",
1037                                dest,"out_NB_INST_"+toString(i)+"_"+toString(j)+"_COMMIT_ALL");
1038            PORT_MAP(_component,src ,"out_NB_INST_"+toString(i)+"_"+toString(j)+"_COMMIT_MEM",
1039                                dest,"out_NB_INST_"+toString(i)+"_"+toString(j)+"_COMMIT_MEM");
1040            PORT_MAP(_component,src , "in_NB_INST_"+toString(i)+"_"+toString(j)+"_DECOD_ALL" ,
1041                                dest, "in_NB_INST_"+toString(i)+"_"+toString(j)+"_DECOD_ALL" );
1042          }
1043
1044      // ~~~~~[ Interface : "depth" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
1045      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1046        for (uint32_t j=0; j<_param->_nb_context[i]; j++)
1047          {
1048            dest = _name;
1049#ifdef POSITION
1050            _component->interface_map (src ,"depth_"+toString(i)+"_"+toString(j),
1051                                       dest,"depth_"+toString(i)+"_"+toString(j));
1052#endif
1053
1054            if (_param->_have_port_depth)
1055              {
1056            PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MIN",
1057                                dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MIN");
1058            PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MAX",
1059                                dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MAX");
1060              }
1061            PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_FULL",
1062                                dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_FULL");
1063          }
1064
1065      // ~~~~~[ Interface : "spr_read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1066      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1067        for (uint32_t j=0; j<_param->_nb_context[i]; j++)
1068          {
1069            dest = _name+"_glue";
1070           
1071#ifdef POSITION
1072            _component->interface_map (src ,"spr_read_"+toString(i)+"_"+toString(j),
1073                                       dest,"spr_"     +toString(i)+"_"+toString(j));
1074#endif
1075
1076            COMPONENT_MAP(_component,src , "in_SPR_READ_"+toString(i)+"_"+toString(j)+            "_SR_OVE",
1077                                     dest,"out_SPR_"     +toString(i)+"_"+toString(j)+"_COMMIT_UNIT_SR_OVE");
1078          }
1079
1080      // ~~~~~[ Interface : "spr_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1081      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1082        for (uint32_t j=0; j<_param->_nb_context[i]; j++)
1083          {
1084            dest = _name+"_special_register_unit";
1085#ifdef POSITION
1086            _component->interface_map (src ,"spr_write_" +toString(i)+"_"+toString(j),
1087                                       dest,"spr_commit_"+toString(i)+"_"+toString(j));
1088#endif
1089
1090            COMPONENT_MAP(_component,src ,"out_SPR_WRITE_" +toString(i)+"_"+toString(j)+"_VAL"      ,
1091                                     dest, "in_SPR_COMMIT_"+toString(i)+"_"+toString(j)+"_VAL"      );
1092            COMPONENT_MAP(_component,src , "in_SPR_WRITE_" +toString(i)+"_"+toString(j)+"_ACK"      ,
1093                                     dest,"out_SPR_COMMIT_"+toString(i)+"_"+toString(j)+"_ACK"      );
1094            COMPONENT_MAP(_component,src ,"out_SPR_WRITE_" +toString(i)+"_"+toString(j)+"_SR_F_VAL" ,
1095                                     dest, "in_SPR_COMMIT_"+toString(i)+"_"+toString(j)+"_SR_F_VAL" );
1096            COMPONENT_MAP(_component,src ,"out_SPR_WRITE_" +toString(i)+"_"+toString(j)+"_SR_F"     ,
1097                                     dest, "in_SPR_COMMIT_"+toString(i)+"_"+toString(j)+"_SR_F"     );
1098            COMPONENT_MAP(_component,src ,"out_SPR_WRITE_" +toString(i)+"_"+toString(j)+"_SR_CY_VAL",
1099                                     dest, "in_SPR_COMMIT_"+toString(i)+"_"+toString(j)+"_SR_CY_VAL");
1100            COMPONENT_MAP(_component,src ,"out_SPR_WRITE_" +toString(i)+"_"+toString(j)+"_SR_CY"    ,
1101                                     dest, "in_SPR_COMMIT_"+toString(i)+"_"+toString(j)+"_SR_CY"    );
1102            COMPONENT_MAP(_component,src ,"out_SPR_WRITE_" +toString(i)+"_"+toString(j)+"_SR_OV_VAL",
1103                                     dest, "in_SPR_COMMIT_"+toString(i)+"_"+toString(j)+"_SR_OV_VAL");
1104            COMPONENT_MAP(_component,src ,"out_SPR_WRITE_" +toString(i)+"_"+toString(j)+"_SR_OV"    ,
1105                                     dest, "in_SPR_COMMIT_"+toString(i)+"_"+toString(j)+"_SR_OV"    );
1106          }
1107    }
1108
1109    // ===================================================================
1110    // =====[ issue_queue ]===============================================
1111    // ===================================================================
1112    {
1113      src = _name+"_issue_queue";
1114      log_printf(TRACE,OOO_Engine,FUNCTION,_("Instance : %s"),name.c_str());
1115           
1116      {
1117        dest = _name;
1118#ifdef POSITION
1119        _component->interface_map (src ,"",
1120                                   dest,"");
1121#endif
1122        PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK");
1123        PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET");
1124      }
1125
1126      // ~~~~~[ Interface : "issue_in" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1127      for (uint32_t i=0; i<_param->_nb_rename_unit; ++i)
1128        for (uint32_t j=0; j<_param->_nb_inst_insert[i]; j++)
1129          {
1130            dest = _name+"_glue";
1131#ifdef POSITION
1132            _component->interface_map (src ,"issue_in_"+toString(i)+"_"+toString(j),
1133                                       dest,"insert_"  +toString(i)+"_"+toString(j));
1134#endif
1135
1136            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_VAL"                  ,
1137                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_VAL"                  );
1138            COMPONENT_MAP(_component,src ,"out_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_ACK"                  ,
1139                                     dest, "in_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_ACK"                  );
1140            if (_param->_have_port_context_id)
1141            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_CONTEXT_ID"           ,
1142                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_CONTEXT_ID"           );
1143            if (_param->_have_port_front_end_id)
1144            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_FRONT_END_ID"         ,
1145                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_FRONT_END_ID"         );
1146            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_OPERATION"            ,
1147                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_OPERATION"            );
1148            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_TYPE"                 ,
1149                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_TYPE"                 );
1150            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_STORE_QUEUE_PTR_WRITE",
1151                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_STORE_QUEUE_PTR_WRITE");
1152            if (_param->_have_port_load_queue_ptr)
1153            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_LOAD_QUEUE_PTR_WRITE" ,
1154                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_LOAD_QUEUE_PTR_WRITE" );
1155            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_HAS_IMMEDIAT"         ,
1156                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_HAS_IMMEDIAT"         );
1157            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_IMMEDIAT"             ,
1158                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_IMMEDIAT"             );
1159            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_READ_RA"              ,
1160                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_READ_RA"              );
1161            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RA"           ,
1162                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_NUM_REG_RA"           );
1163            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_READ_RB"              ,
1164                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_READ_RB"              );
1165            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RB"           ,
1166                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_NUM_REG_RB"           );
1167            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_READ_RC"              ,
1168                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_READ_RC"              );
1169            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RC"           ,
1170                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_NUM_REG_RC"           );
1171            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_WRITE_RD"             ,
1172                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_WRITE_RD"             );
1173            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RD"           ,
1174                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_NUM_REG_RD"           );
1175            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_WRITE_RE"             ,
1176                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_WRITE_RE"             );
1177            COMPONENT_MAP(_component,src , "in_ISSUE_IN_"+toString(i)+"_"+toString(j)+            "_NUM_REG_RE"           ,
1178                                     dest,"out_INSERT_"  +toString(i)+"_"+toString(j)+"_ISSUE_QUEUE_NUM_REG_RE"           );
1179
1180
1181           
1182            //   in_ISSUE_IN_PACKET_ID - component_commit_unit
1183          }
1184
1185      // ~~~~~[ Interface : "reexecute" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1186      for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++)
1187        {
1188          dest = _name+"_reexecute_unit";
1189#ifdef POSITION
1190          _component->interface_map (src ,"reexecute_"+toString(i),
1191                                     dest,"reexecute_"+toString(i));
1192#endif
1193       
1194         
1195          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_VAL"                  ,
1196                                   dest,"out_REEXECUTE_"+toString(i)+"_VAL"                  );
1197          COMPONENT_MAP(_component,src ,"out_REEXECUTE_"+toString(i)+"_ACK"                  ,
1198                                   dest, "in_REEXECUTE_"+toString(i)+"_ACK"                  );
1199          if (_param->_have_port_front_end_id)
1200          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_FRONT_END_ID"         ,
1201                                   dest,"out_REEXECUTE_"+toString(i)+"_FRONT_END_ID"         );
1202          if (_param->_have_port_context_id)
1203          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_CONTEXT_ID"           ,
1204                                   dest,"out_REEXECUTE_"+toString(i)+"_CONTEXT_ID"           );
1205          if (_param->_have_port_rob_ptr)
1206          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_PACKET_ID"            ,
1207                                   dest,"out_REEXECUTE_"+toString(i)+"_PACKET_ID"            );
1208          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_TYPE"                 ,
1209                                   dest,"out_REEXECUTE_"+toString(i)+"_TYPE"                 );
1210          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_OPERATION"            ,
1211                                   dest,"out_REEXECUTE_"+toString(i)+"_OPERATION"            );
1212          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_STORE_QUEUE_PTR_WRITE",
1213                                   dest,"out_REEXECUTE_"+toString(i)+"_STORE_QUEUE_PTR_WRITE");
1214          if (_param->_have_port_load_queue_ptr)
1215          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_LOAD_QUEUE_PTR_WRITE" ,
1216                                   dest,"out_REEXECUTE_"+toString(i)+"_LOAD_QUEUE_PTR_WRITE" );
1217          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_HAS_IMMEDIAT"         ,
1218                                   dest,"out_REEXECUTE_"+toString(i)+"_HAS_IMMEDIAT"         );
1219          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_IMMEDIAT"             ,
1220                                   dest,"out_REEXECUTE_"+toString(i)+"_IMMEDIAT"             );
1221          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_READ_RA"              ,
1222                                   dest,"out_REEXECUTE_"+toString(i)+"_READ_RA"              );
1223          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_NUM_REG_RA"           ,
1224                                   dest,"out_REEXECUTE_"+toString(i)+"_NUM_REG_RA"           );
1225          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_READ_RB"              ,
1226                                   dest,"out_REEXECUTE_"+toString(i)+"_READ_RB"              );
1227          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_NUM_REG_RB"           ,
1228                                   dest,"out_REEXECUTE_"+toString(i)+"_NUM_REG_RB"           );
1229          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_READ_RC"              ,
1230                                   dest,"out_REEXECUTE_"+toString(i)+"_READ_RC"              );
1231          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_NUM_REG_RC"           ,
1232                                   dest,"out_REEXECUTE_"+toString(i)+"_NUM_REG_RC"           );
1233          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_WRITE_RD"             ,
1234                                   dest,"out_REEXECUTE_"+toString(i)+"_WRITE_RD"             );
1235          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_NUM_REG_RD"           ,
1236                                   dest,"out_REEXECUTE_"+toString(i)+"_NUM_REG_RD"           );
1237          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_WRITE_RE"             ,
1238                                   dest,"out_REEXECUTE_"+toString(i)+"_WRITE_RE"             );
1239          COMPONENT_MAP(_component,src , "in_REEXECUTE_"+toString(i)+"_NUM_REG_RE"           ,
1240                                   dest,"out_REEXECUTE_"+toString(i)+"_NUM_REG_RE"           );
1241        }
1242
1243      // ~~~~~[ Interface : "issue_out" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1244      for (uint32_t i=0; i<_param->_nb_inst_issue; i++)
1245        {
1246          dest = _name;
1247         
1248#ifdef POSITION
1249          _component->interface_map (src ,"issue_out_"+toString(i),
1250                                     dest,"issue_"    +toString(i));
1251#endif
1252
1253          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_VAL"                  ,
1254                              dest,"out_ISSUE_"    +toString(i)+"_VAL"                  );
1255          PORT_MAP(_component,src , "in_ISSUE_OUT_"+toString(i)+"_ACK"                  ,
1256                              dest, "in_ISSUE_"    +toString(i)+"_ACK"                  );
1257          if (_param->_have_port_front_end_id)
1258          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_FRONT_END_ID"         ,
1259                              dest,"out_ISSUE_"    +toString(i)+"_FRONT_END_ID"         );
1260          if (_param->_have_port_context_id)
1261          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_CONTEXT_ID"           ,
1262                              dest,"out_ISSUE_"    +toString(i)+"_CONTEXT_ID"           );
1263          if (_param->_have_port_rob_ptr)
1264          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_PACKET_ID"            ,
1265                              dest,"out_ISSUE_"    +toString(i)+"_PACKET_ID"            );
1266          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_TYPE"                 ,
1267                              dest,"out_ISSUE_"    +toString(i)+"_TYPE"                 );
1268          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_OPERATION"            ,
1269                              dest,"out_ISSUE_"    +toString(i)+"_OPERATION"            );
1270          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_STORE_QUEUE_PTR_WRITE",
1271                              dest,"out_ISSUE_"    +toString(i)+"_STORE_QUEUE_PTR_WRITE");
1272          if (_param->_have_port_load_queue_ptr)
1273          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_LOAD_QUEUE_PTR_WRITE" ,
1274                              dest,"out_ISSUE_"    +toString(i)+"_LOAD_QUEUE_PTR_WRITE" );
1275          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_HAS_IMMEDIAT"         ,
1276                              dest,"out_ISSUE_"    +toString(i)+"_HAS_IMMEDIAT"         );
1277          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_IMMEDIAT"             ,
1278                              dest,"out_ISSUE_"    +toString(i)+"_IMMEDIAT"             );
1279          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_READ_RA"              ,
1280                              dest,"out_ISSUE_"    +toString(i)+"_READ_RA"              );
1281          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_NUM_REG_RA"           ,
1282                              dest,"out_ISSUE_"    +toString(i)+"_NUM_REG_RA"           );
1283          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_READ_RB"              ,
1284                              dest,"out_ISSUE_"    +toString(i)+"_READ_RB"              );
1285          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_NUM_REG_RB"           ,
1286                              dest,"out_ISSUE_"    +toString(i)+"_NUM_REG_RB"           );
1287          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_READ_RC"              ,
1288                              dest,"out_ISSUE_"    +toString(i)+"_READ_RC"              );
1289          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_NUM_REG_RC"           ,
1290                              dest,"out_ISSUE_"    +toString(i)+"_NUM_REG_RC"           );
1291          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_WRITE_RD"             ,
1292                              dest,"out_ISSUE_"    +toString(i)+"_WRITE_RD"             );
1293          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_NUM_REG_RD"           ,
1294                              dest,"out_ISSUE_"    +toString(i)+"_NUM_REG_RD"           );
1295          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_WRITE_RE"             ,
1296                              dest,"out_ISSUE_"    +toString(i)+"_WRITE_RE"             );
1297          PORT_MAP(_component,src ,"out_ISSUE_OUT_"+toString(i)+"_NUM_REG_RE"           ,
1298                              dest,"out_ISSUE_"    +toString(i)+"_NUM_REG_RE"           );
1299        }
1300    }
1301
1302    // ===================================================================
1303    // =====[ reexecute_unit ]============================================
1304    // ===================================================================
1305    {
1306      src = _name+"_reexecute_unit";
1307      log_printf(TRACE,OOO_Engine,FUNCTION,_("Instance : %s"),name.c_str());
1308           
1309      {
1310        dest = _name;
1311#ifdef POSITION
1312        _component->interface_map (src ,"",
1313                                   dest,"");
1314#endif
1315        PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK");
1316        PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET");
1317      }
1318
1319      // ~~~~~[ Interface "execute_loop" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1320      for (uint32_t i=0; i<_param->_nb_execute_loop; i++)
1321        for (uint32_t j=0; j<_param->_nb_inst_execute[i]; j++)
1322          {
1323            dest = _name;
1324#ifdef POSITION
1325            _component->interface_map (src ,"execute_loop_"+toString(i)+"_"+toString(j),
1326                                       dest,"execute_loop_"+toString(i)+"_"+toString(j));
1327#endif
1328
1329            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_VAL"         ,
1330                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_VAL"         );
1331            PORT_MAP(_component,src ,"out_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_ACK"         ,
1332                                dest,"out_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_ACK"         );
1333            if (_param->_have_port_front_end_id)
1334            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID",
1335                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID");
1336            if (_param->_have_port_context_id)
1337            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_CONTEXT_ID"  ,
1338                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_CONTEXT_ID"  );
1339            if (_param->_have_port_rob_ptr)
1340            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_PACKET_ID"   ,
1341                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_PACKET_ID"   );
1342//          PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_TYPE"        ,
1343//                              dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_TYPE"        );
1344//          PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_OPERATION"   ,
1345//                              dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_OPERATION"   );
1346            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_FLAGS"       ,
1347                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_FLAGS"       );
1348            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_EXCEPTION"   ,
1349                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_EXCEPTION"   );
1350            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_NO_SEQUENCE" ,
1351                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_NO_SEQUENCE" );
1352            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_ADDRESS"     ,
1353                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_ADDRESS"     );
1354            PORT_MAP(_component,src , "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_DATA"        ,
1355                                dest, "in_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_DATA"        );
1356          }
1357
1358      // ~~~~~[ Interface "commit" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1359      //  out_COMMIT_VAL                           - component_commit_unit
1360      //   in_COMMIT_ACK                           - component_commit_unit
1361      //  out_COMMIT_WEN                           - component_commit_unit
1362      //  out_COMMIT_FRONT_END_ID                  - component_commit_unit
1363      //  out_COMMIT_CONTEXT_ID                    - component_commit_unit
1364      //  out_COMMIT_PACKET_ID                     - component_commit_unit
1365      ////out_COMMIT_OPERATION                     - component_commit_unit
1366      ////out_COMMIT_TYPE                          - component_commit_unit
1367      //  out_COMMIT_FLAGS                         - component_commit_unit
1368      //  out_COMMIT_EXCEPTION                     - component_commit_unit
1369      //  out_COMMIT_NO_SEQUENCE                   - component_commit_unit
1370      //  out_COMMIT_ADDRESS                       - component_commit_unit
1371      //   in_COMMIT_NUM_REG_RD                    - component_commit_unit
1372     
1373      // ~~~~~[ Interface : "spr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1374      for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++)
1375        {
1376          dest = _name+"_special_register_unit";
1377#ifdef POSITION
1378          _component->interface_map (src ,"spr_"+toString(i),
1379                                     dest,"spr_"+toString(i));
1380#endif
1381     
1382          COMPONENT_MAP(_component,src ,"out_SPR_"       +toString(i)+"_VAL"         ,
1383                                   dest, "in_SPR_ACCESS_"+toString(i)+"_VAL"         );
1384          COMPONENT_MAP(_component,src , "in_SPR_"       +toString(i)+"_ACK"         ,
1385                                   dest,"out_SPR_ACCESS_"+toString(i)+"_ACK"         );
1386          if (_param->_have_port_front_end_id)
1387          COMPONENT_MAP(_component,src ,"out_SPR_"       +toString(i)+"_FRONT_END_ID",
1388                                   dest, "in_SPR_ACCESS_"+toString(i)+"_FRONT_END_ID");
1389          if (_param->_have_port_context_id)
1390          COMPONENT_MAP(_component,src ,"out_SPR_"       +toString(i)+"_CONTEXT_ID"  ,
1391                                   dest, "in_SPR_ACCESS_"+toString(i)+"_CONTEXT_ID"  );
1392          COMPONENT_MAP(_component,src ,"out_SPR_"       +toString(i)+"_WEN"         ,
1393                                   dest, "in_SPR_ACCESS_"+toString(i)+"_WEN"         );
1394          COMPONENT_MAP(_component,src ,"out_SPR_"       +toString(i)+"_NUM_GROUP"   ,
1395                                   dest, "in_SPR_ACCESS_"+toString(i)+"_NUM_GROUP"   );
1396          COMPONENT_MAP(_component,src ,"out_SPR_"       +toString(i)+"_NUM_REG"     ,
1397                                   dest, "in_SPR_ACCESS_"+toString(i)+"_NUM_REG"     );
1398          COMPONENT_MAP(_component,src ,"out_SPR_"       +toString(i)+"_WDATA"       ,
1399                                   dest, "in_SPR_ACCESS_"+toString(i)+"_WDATA"       );
1400          COMPONENT_MAP(_component,src , "in_SPR_"       +toString(i)+"_RDATA"       ,
1401                                   dest,"out_SPR_ACCESS_"+toString(i)+"_RDATA"       );
1402          COMPONENT_MAP(_component,src , "in_SPR_"       +toString(i)+"_INVALID"     ,
1403                                   dest,"out_SPR_ACCESS_"+toString(i)+"_INVALID"     );
1404        }
1405
1406      // ~~~~~[ Interface : "reexecute_rob" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1407      //   in_REEXECUTE_ROB_VAL                    - component_commit_unit
1408      //  out_REEXECUTE_ROB_ACK                    - component_commit_unit
1409      //   in_REEXECUTE_ROB_FRONT_END_ID           - component_commit_unit
1410      //   in_REEXECUTE_ROB_CONTEXT_ID             - component_commit_unit
1411      //   in_REEXECUTE_ROB_PACKET_ID              - component_commit_unit
1412      //   in_REEXECUTE_ROB_OPERATION              - component_commit_unit
1413      //   in_REEXECUTE_ROB_TYPE                   - component_commit_unit
1414      //   in_REEXECUTE_ROB_STORE_QUEUE_PTR_WRITE  - component_commit_unit
1415
1416      // ~~~~~[ Interface : "reexecute" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1417      //  out_REEXECUTE_VAL                        - component_issue_queue
1418      //   in_REEXECUTE_ACK                        - component_issue_queue
1419      //  out_REEXECUTE_CONTEXT_ID                 - component_issue_queue
1420      //  out_REEXECUTE_FRONT_END_ID               - component_issue_queue
1421      //  out_REEXECUTE_PACKET_ID                  - component_issue_queue
1422      //  out_REEXECUTE_OPERATION                  - component_issue_queue
1423      //  out_REEXECUTE_TYPE                       - component_issue_queue
1424      //  out_REEXECUTE_STORE_QUEUE_PTR_WRITE      - component_issue_queue
1425      //  out_REEXECUTE_LOAD_QUEUE_PTR_WRITE       - component_issue_queue
1426      //  out_REEXECUTE_HAS_IMMEDIAT               - component_issue_queue
1427      //  out_REEXECUTE_IMMEDIAT                   - component_issue_queue
1428      //  out_REEXECUTE_READ_RA                    - component_issue_queue
1429      //  out_REEXECUTE_NUM_REG_RA                 - component_issue_queue
1430      //  out_REEXECUTE_READ_RB                    - component_issue_queue
1431      //  out_REEXECUTE_NUM_REG_RB                 - component_issue_queue
1432      //  out_REEXECUTE_READ_RC                    - component_issue_queue
1433      //  out_REEXECUTE_NUM_REG_RC                 - component_issue_queue
1434      //  out_REEXECUTE_WRITE_RD                   - component_issue_queue
1435      //  out_REEXECUTE_NUM_REG_RD                 - component_issue_queue
1436      //  out_REEXECUTE_WRITE_RE                   - component_issue_queue
1437      //  out_REEXECUTE_NUM_REG_RE                 - component_issue_queue
1438    }
1439
1440    // ===================================================================
1441    // =====[ special_register_unit ]=====================================
1442    // ===================================================================
1443    {
1444      src = _name+"_special_register_unit";
1445      log_printf(TRACE,OOO_Engine,FUNCTION,_("Instance : %s"),name.c_str());
1446           
1447      {
1448        dest = _name;
1449#ifdef POSITION
1450        _component->interface_map (src ,"",
1451                                   dest,"");
1452#endif
1453        PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK");
1454        PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET");
1455      }
1456
1457      // ~~~~~[ Interface : "spr_access" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1458      //   in_SPR_ACCESS_VAL          - component_reexecute_unit
1459      //  out_SPR_ACCESS_ACK          - component_reexecute_unit
1460      //   in_SPR_ACCESS_FRONT_END_ID - component_reexecute_unit
1461      //   in_SPR_ACCESS_CONTEXT_ID   - component_reexecute_unit
1462      //   in_SPR_ACCESS_WEN          - component_reexecute_unit
1463      //   in_SPR_ACCESS_NUM_GROUP    - component_reexecute_unit
1464      //   in_SPR_ACCESS_NUM_REG      - component_reexecute_unit
1465      //   in_SPR_ACCESS_WDATA        - component_reexecute_unit
1466      //  out_SPR_ACCESS_RDATA        - component_reexecute_unit
1467      //  out_SPR_ACCESS_INVALID      - component_reexecute_unit
1468     
1469      // ~~~~~[ Interface : "spr_read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1470      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1471        for (uint32_t j=0; j<_param->_nb_context[i]; j++)
1472          {
1473            dest = _name+"_glue";
1474           
1475#ifdef POSITION
1476            _component->interface_map (src ,"spr_read_"+toString(i)+"_"+toString(j),
1477                                       dest,"spr_"     +toString(i)+"_"+toString(j));
1478#endif
1479
1480            COMPONENT_MAP(_component,src ,"out_SPR_READ_"+toString(i)+"_"+toString(j)+                      "_SR",
1481                                     dest, "in_SPR_"     +toString(i)+"_"+toString(j)+"_SPECIAL_REGISTER_UNIT_SR");
1482          }
1483
1484      // ~~~~~[ Interface : "spr_commit" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1485      //   in_SPR_COMMIT_VAL          - component_commit_unit
1486      //  out_SPR_COMMIT_ACK          - component_commit_unit
1487      //   in_SPR_COMMIT_SR_F_VAL     - component_commit_unit
1488      //   in_SPR_COMMIT_SR_F         - component_commit_unit
1489      //   in_SPR_COMMIT_SR_CY_VAL    - component_commit_unit
1490      //   in_SPR_COMMIT_SR_CY        - component_commit_unit
1491      //   in_SPR_COMMIT_SR_OV_VAL    - component_commit_unit
1492      //   in_SPR_COMMIT_SR_OV        - component_commit_unit
1493
1494      // ~~~~~[ Interface "spr_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1495      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1496        for (uint32_t j=0; j<_param->_nb_context[i]; j++)
1497          {
1498            dest = _name;
1499#ifdef POSITION
1500            _component->interface_map (src ,"spr_event_"+toString(i)+"_"+toString(j),
1501                                       dest,"spr_event_"+toString(i)+"_"+toString(j));
1502#endif
1503
1504            PORT_MAP(_component,src , "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_VAL"      ,
1505                                dest, "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_VAL"      );
1506            PORT_MAP(_component,src ,"out_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_ACK"      ,
1507                                dest,"out_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_ACK"      );
1508            PORT_MAP(_component,src , "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_EPCR"     ,
1509                                dest, "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_EPCR"     );
1510            PORT_MAP(_component,src , "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_EEAR_WEN" ,
1511                                dest, "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_EEAR_WEN" );
1512            PORT_MAP(_component,src , "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_EEAR"     ,
1513                                dest, "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_EEAR"     );
1514            PORT_MAP(_component,src , "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_SR_DSX"   ,
1515                                dest, "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_SR_DSX"   );
1516            PORT_MAP(_component,src , "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_SR_TO_ESR",
1517                                dest, "in_SPR_EVENT_"+toString(i)+"_"+toString(j)+"_SR_TO_ESR");
1518          }
1519    }
1520
1521    // ===================================================================
1522    // =====[ glue ]======================================================
1523    // ===================================================================
1524    {
1525      src = _name+"_glue";
1526      log_printf(TRACE,OOO_Engine,FUNCTION,_("Instance : %s"),name.c_str());
1527           
1528      {
1529        dest = _name;
1530#ifdef POSITION
1531        _component->interface_map (src ,"",
1532                                   dest,"");
1533#endif
1534        PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK");
1535        PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET");
1536      }
1537
1538      // ~~~~~[ Interface : "rename" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1539      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1540        for (uint32_t j=0; j<_param->_nb_inst_decod [i]; j++)
1541          {
1542            dest = _name;
1543#ifdef POSITION
1544            _component->interface_map (src ,"rename_"+toString(i)+"_"+toString(j),
1545                                       dest,"rename_"+toString(i)+"_"+toString(j));
1546#endif
1547           
1548            if (_param->_have_port_front_end_id)
1549            PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID",
1550                                dest, "in_RENAME_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID");
1551
1552            //  out_RENAME_RENAME_UNIT_FRONT_END_ID              - component_rename_unit
1553          }
1554
1555      // ~~~~~[ Interface : "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556      for (uint32_t i=0; i<_param->_sum_inst_insert; i++)
1557        {
1558          dest = _name;
1559#ifdef POSITION
1560          _component->interface_map (src ,"insert_"+toString(i),
1561                                     dest,"insert_"+toString(i));
1562#endif
1563          PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_VAL"       ,
1564                              dest,"out_INSERT_"+toString(i)+"_VAL"       );
1565          PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_ACK"       ,
1566                              dest, "in_INSERT_"+toString(i)+"_ACK"       );
1567          PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_RD_USE"    ,
1568                              dest,"out_INSERT_"+toString(i)+"_RD_USE"    );
1569          PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_RD_NUM_REG",
1570                              dest,"out_INSERT_"+toString(i)+"_RD_NUM_REG");
1571          PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_RE_USE"    ,
1572                              dest,"out_INSERT_"+toString(i)+"_RE_USE"    );
1573          PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_RE_NUM_REG",
1574                              dest,"out_INSERT_"+toString(i)+"_RE_NUM_REG");
1575        }
1576
1577      //   in_INSERT_RENAME_UNIT_VAL                       - component_rename_unit
1578      //  out_INSERT_RENAME_UNIT_ACK                       - component_rename_unit
1579      //   in_INSERT_RENAME_UNIT_FRONT_END_ID              - component_rename_unit
1580      //   in_INSERT_RENAME_UNIT_CONTEXT_ID                - component_rename_unit
1581      //   in_INSERT_RENAME_UNIT_TYPE                      - component_rename_unit
1582      //   in_INSERT_RENAME_UNIT_OPERATION                 - component_rename_unit
1583      //   in_INSERT_RENAME_UNIT_NO_EXECUTE                - component_rename_unit
1584      //   in_INSERT_RENAME_UNIT_HAS_IMMEDIAT              - component_rename_unit
1585      //   in_INSERT_RENAME_UNIT_IMMEDIAT                  - component_rename_unit
1586      //   in_INSERT_RENAME_UNIT_STORE_QUEUE_PTR_WRITE     - component_rename_unit
1587      //   in_INSERT_RENAME_UNIT_LOAD_QUEUE_PTR_WRITE      - component_rename_unit
1588      //   in_INSERT_RENAME_UNIT_READ_RA                   - component_rename_unit
1589      //   in_INSERT_RENAME_UNIT_NUM_REG_RA_PHY            - component_rename_unit
1590      //   in_INSERT_RENAME_UNIT_READ_RB                   - component_rename_unit
1591      //   in_INSERT_RENAME_UNIT_NUM_REG_RB_PHY            - component_rename_unit
1592      //   in_INSERT_RENAME_UNIT_READ_RC                   - component_rename_unit
1593      //   in_INSERT_RENAME_UNIT_NUM_REG_RC_PHY            - component_rename_unit
1594      //   in_INSERT_RENAME_UNIT_WRITE_RD                  - component_rename_unit
1595      //   in_INSERT_RENAME_UNIT_NUM_REG_RD_PHY_OLD        - component_rename_unit
1596      //   in_INSERT_RENAME_UNIT_NUM_REG_RD_PHY_NEW        - component_rename_unit
1597      //   in_INSERT_RENAME_UNIT_WRITE_RE                  - component_rename_unit
1598      //   in_INSERT_RENAME_UNIT_NUM_REG_RE_PHY_OLD        - component_rename_unit
1599      //   in_INSERT_RENAME_UNIT_NUM_REG_RE_PHY_NEW        - component_rename_unit
1600      // 
1601      //  out_INSERT_COMMIT_UNIT_VAL                       - component_commit_unit
1602      //   in_INSERT_COMMIT_UNIT_ACK                       - component_commit_unit
1603      //  out_INSERT_COMMIT_UNIT_FRONT_END_ID              - component_commit_unit
1604      //  out_INSERT_COMMIT_UNIT_CONTEXT_ID                - component_commit_unit
1605      ////out_INSERT_COMMIT_UNIT_RENAME_UNIT_ID            - component_commit_unit
1606      //  out_INSERT_COMMIT_UNIT_TYPE                      - component_commit_unit
1607      //  out_INSERT_COMMIT_UNIT_OPERATION                 - component_commit_unit
1608      //  out_INSERT_COMMIT_UNIT_NO_EXECUTE                - component_commit_unit
1609      //  out_INSERT_COMMIT_UNIT_STORE_QUEUE_PTR_WRITE     - component_commit_unit
1610      //  out_INSERT_COMMIT_UNIT_LOAD_QUEUE_PTR_WRITE      - component_commit_unit
1611      //  out_INSERT_COMMIT_UNIT_READ_RA                   - component_commit_unit
1612      //  out_INSERT_COMMIT_UNIT_NUM_REG_RA_PHY            - component_commit_unit
1613      //  out_INSERT_COMMIT_UNIT_READ_RB                   - component_commit_unit
1614      //  out_INSERT_COMMIT_UNIT_NUM_REG_RB_PHY            - component_commit_unit
1615      //  out_INSERT_COMMIT_UNIT_READ_RC                   - component_commit_unit
1616      //  out_INSERT_COMMIT_UNIT_NUM_REG_RC_PHY            - component_commit_unit
1617      //  out_INSERT_COMMIT_UNIT_WRITE_RD                  - component_commit_unit
1618      //  out_INSERT_COMMIT_UNIT_NUM_REG_RD_PHY_OLD        - component_commit_unit
1619      //  out_INSERT_COMMIT_UNIT_NUM_REG_RD_PHY_NEW        - component_commit_unit
1620      //  out_INSERT_COMMIT_UNIT_WRITE_RE                  - component_commit_unit
1621      //  out_INSERT_COMMIT_UNIT_NUM_REG_RE_PHY_OLD        - component_commit_unit
1622      //  out_INSERT_COMMIT_UNIT_NUM_REG_RE_PHY_NEW        - component_commit_unit
1623      // 
1624      //  out_INSERT_ISSUE_QUEUE_VAL                       - component_issue_queue
1625      //   in_INSERT_ISSUE_QUEUE_ACK                       - component_issue_queue
1626      //  out_INSERT_ISSUE_QUEUE_CONTEXT_ID                - component_issue_queue
1627      //  out_INSERT_ISSUE_QUEUE_FRONT_END_ID              - component_issue_queue
1628      //  out_INSERT_ISSUE_QUEUE_OPERATION                 - component_issue_queue
1629      //  out_INSERT_ISSUE_QUEUE_TYPE                      - component_issue_queue
1630      //  out_INSERT_ISSUE_QUEUE_STORE_QUEUE_PTR_WRITE     - component_issue_queue
1631      //  out_INSERT_ISSUE_QUEUE_LOAD_QUEUE_PTR_WRITE      - component_issue_queue
1632      //  out_INSERT_ISSUE_QUEUE_HAS_IMMEDIAT              - component_issue_queue
1633      //  out_INSERT_ISSUE_QUEUE_IMMEDIAT                  - component_issue_queue
1634      //  out_INSERT_ISSUE_QUEUE_READ_RA                   - component_issue_queue
1635      //  out_INSERT_ISSUE_QUEUE_NUM_REG_RA                - component_issue_queue
1636      //  out_INSERT_ISSUE_QUEUE_READ_RB                   - component_issue_queue
1637      //  out_INSERT_ISSUE_QUEUE_NUM_REG_RB                - component_issue_queue
1638      //  out_INSERT_ISSUE_QUEUE_READ_RC                   - component_issue_queue
1639      //  out_INSERT_ISSUE_QUEUE_NUM_REG_RC                - component_issue_queue
1640      //  out_INSERT_ISSUE_QUEUE_WRITE_RD                  - component_issue_queue
1641      //  out_INSERT_ISSUE_QUEUE_NUM_REG_RD                - component_issue_queue
1642      //  out_INSERT_ISSUE_QUEUE_WRITE_RE                  - component_issue_queue
1643      //  out_INSERT_ISSUE_QUEUE_NUM_REG_RE                - component_issue_queue
1644
1645//       // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1646//       for (uint32_t i=0; i<_param->_sum_inst_retire; i++)
1647//         {
1648//           dest = _name;
1649// #ifdef POSITION
1650//           _component->interface_map (src ,"retire_"+toString(i),
1651//                                      dest,"retire_"+toString(i));
1652// #endif
1653
1654//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_VAL"           ,
1655//                               dest,"out_RETIRE_"+toString(i)+"_VAL"           );
1656//           PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_ACK"           ,
1657//                               dest, "in_RETIRE_"+toString(i)+"_ACK"           );
1658//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RD_OLD_USE"    ,
1659//                               dest,"out_RETIRE_"+toString(i)+"_RD_OLD_USE"    );
1660//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RD_OLD_NUM_REG",
1661//                               dest,"out_RETIRE_"+toString(i)+"_RD_OLD_NUM_REG");
1662//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RD_NEW_USE"    ,
1663//                               dest,"out_RETIRE_"+toString(i)+"_RD_NEW_USE"    );
1664//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RD_NEW_NUM_REG",
1665//                               dest,"out_RETIRE_"+toString(i)+"_RD_NEW_NUM_REG");
1666//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RE_OLD_USE"    ,
1667//                               dest,"out_RETIRE_"+toString(i)+"_RE_OLD_USE"    );
1668//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RE_OLD_NUM_REG",
1669//                               dest,"out_RETIRE_"+toString(i)+"_RE_OLD_NUM_REG");
1670//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RE_NEW_USE"    ,
1671//                               dest,"out_RETIRE_"+toString(i)+"_RE_NEW_USE"    );
1672//           PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RE_NEW_NUM_REG",
1673//                               dest,"out_RETIRE_"+toString(i)+"_RE_NEW_NUM_REG");
1674//         }
1675
1676      //  out_RETIRE_RENAME_UNIT_VAL                       - component_rename_unit
1677      //   in_RETIRE_RENAME_UNIT_ACK                       - component_rename_unit
1678      //  out_RETIRE_RENAME_UNIT_FRONT_END_ID              - component_rename_unit
1679      //  out_RETIRE_RENAME_UNIT_WRITE_RD                  - component_rename_unit
1680      //  out_RETIRE_RENAME_UNIT_NUM_REG_RD_PHY_OLD        - component_rename_unit
1681      //  out_RETIRE_RENAME_UNIT_NUM_REG_RD_PHY_NEW        - component_rename_unit
1682      //  out_RETIRE_RENAME_UNIT_WRITE_RE                  - component_rename_unit
1683      //  out_RETIRE_RENAME_UNIT_NUM_REG_RE_PHY_OLD        - component_rename_unit
1684      //  out_RETIRE_RENAME_UNIT_NUM_REG_RE_PHY_NEW        - component_rename_unit
1685      //  out_RETIRE_RENAME_UNIT_EVENT_STATE               - component_rename_unit
1686
1687      //   in_RETIRE_COMMIT_UNIT_VAL                       - component_commit_unit
1688      //  out_RETIRE_COMMIT_UNIT_ACK                       - component_commit_unit
1689      //   in_RETIRE_COMMIT_UNIT_FRONT_END_ID              - component_commit_unit
1690      //   in_RETIRE_COMMIT_UNIT_WRITE_RD                  - component_commit_unit
1691      //   in_RETIRE_COMMIT_UNIT_NUM_REG_RD_PHY_OLD        - component_commit_unit
1692      //   in_RETIRE_COMMIT_UNIT_NUM_REG_RD_PHY_NEW        - component_commit_unit
1693      //   in_RETIRE_COMMIT_UNIT_WRITE_RE                  - component_commit_unit
1694      //   in_RETIRE_COMMIT_UNIT_NUM_REG_RE_PHY_OLD        - component_commit_unit
1695      //   in_RETIRE_COMMIT_UNIT_NUM_REG_RE_PHY_NEW        - component_commit_unit
1696      //   in_RETIRE_COMMIT_UNIT_EVENT_STATE               - component_commit_unit
1697
1698      // ~~~~~[ Interface : "spr_sr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1699      for (uint32_t i=0; i<_param->_nb_front_end; i++)
1700        for (uint32_t j=0; j<_param->_nb_context [i]; j++)
1701          {
1702            dest = _name;
1703#ifdef POSITION
1704            _component->interface_map (src ,"spr_"+toString(i)+"_"+toString(j),
1705                                       dest,"spr_"+toString(i)+"_"+toString(j));
1706#endif
1707
1708            PORT_MAP(_component,src ,"out_SPR_"+toString(i)+"_"+toString(j)+"_SR_IEE",
1709                                dest,"out_SPR_"+toString(i)+"_"+toString(j)+"_SR_IEE");
1710            PORT_MAP(_component,src ,"out_SPR_"+toString(i)+"_"+toString(j)+"_SR_EPH",
1711                                dest,"out_SPR_"+toString(i)+"_"+toString(j)+"_SR_EPH");
1712
1713            //  out_SPR_RENAME_UNIT_SR                           - component_rename_unit
1714            //  out_SPR_COMMIT_UNIT_SR_OVE                       - component_commit_unit
1715            //   in_SPR_SPECIAL_REGISTER_UNIT_SR                 - component_special_register_unit
1716          }
1717
1718
1719    }
1720
1721    // ~~~~~[ Others ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1722#if DEBUG_OOO_Engine == true
1723       _component->test_map();
1724#endif
1725
1726#ifdef POSITION
1727     if (usage_is_set(_usage,USE_POSITION))
1728       _component->generate_file();
1729#endif
1730
1731     log_end(OOO_Engine,FUNCTION);
1732    };
1733
1734}; // end namespace ooo_engine
1735}; // end namespace multi_ooo_engine
1736}; // end namespace core
1737
1738}; // end namespace behavioural
1739}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.