[88] | 1 | /* |
---|
| 2 | * $Id: Core_allocation.cpp 139 2010-07-30 14:47:27Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/include/Core.h" |
---|
| 9 | #include "Behavioural/include/Allocation.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Core::allocation" |
---|
| 19 | void Core::allocation |
---|
| 20 | ( |
---|
| 21 | #ifdef STATISTICS |
---|
| 22 | morpheo::behavioural::Parameters_Statistics * param_statistics |
---|
| 23 | #else |
---|
| 24 | void |
---|
| 25 | #endif |
---|
| 26 | ) |
---|
| 27 | { |
---|
| 28 | log_begin(Core,FUNCTION); |
---|
| 29 | |
---|
| 30 | _component = new Component (_usage); |
---|
| 31 | |
---|
| 32 | Entity * entity = _component->set_entity (_name |
---|
| 33 | ,"Core" |
---|
| 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 "icache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 56 | { |
---|
[112] | 57 | ALLOC1_INTERFACE_BEGIN("icache_req",WEST,OUT,_("Request to instruction cache"),_param->_nb_icache_port); |
---|
[88] | 58 | |
---|
| 59 | ALLOC1_VALACK_OUT(out_ICACHE_REQ_VAL ,VAL); |
---|
| 60 | ALLOC1_VALACK_IN ( in_ICACHE_REQ_ACK ,ACK); |
---|
| 61 | ALLOC1_SIGNAL_OUT(out_ICACHE_REQ_THREAD_ID ,"thread_id",Tcontext_t ,_param->_size_icache_thread_id); |
---|
| 62 | ALLOC1_SIGNAL_OUT(out_ICACHE_REQ_PACKET_ID ,"packet_id",Tpacket_t ,_param->_size_icache_packet_id); |
---|
| 63 | ALLOC1_SIGNAL_OUT(out_ICACHE_REQ_ADDRESS ,"address" ,Ticache_address_t ,_param->_size_icache_address ); |
---|
| 64 | ALLOC1_SIGNAL_OUT(out_ICACHE_REQ_TYPE ,"type" ,Ticache_type_t ,_param->_size_icache_type ); |
---|
[112] | 65 | |
---|
| 66 | ALLOC1_INTERFACE_END(_param->_nb_icache_port); |
---|
[88] | 67 | } |
---|
| 68 | |
---|
| 69 | // ~~~~~[ Interface "icache_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 70 | { |
---|
[112] | 71 | ALLOC1_INTERFACE_BEGIN("icache_rsp",WEST,IN ,_("Respons from instruction cache"),_param->_nb_icache_port); |
---|
[88] | 72 | |
---|
| 73 | ALLOC1_VALACK_IN ( in_ICACHE_RSP_VAL ,VAL); |
---|
| 74 | ALLOC1_VALACK_OUT(out_ICACHE_RSP_ACK ,ACK); |
---|
| 75 | ALLOC1_SIGNAL_IN ( in_ICACHE_RSP_THREAD_ID ,"thread_id" ,Tcontext_t ,_param->_size_icache_thread_id); |
---|
| 76 | ALLOC1_SIGNAL_IN ( in_ICACHE_RSP_PACKET_ID ,"packet_id" ,Tpacket_t ,_param->_size_icache_packet_id); |
---|
| 77 | ALLOC1_SIGNAL_IN ( in_ICACHE_RSP_ERROR ,"error" ,Ticache_error_t ,_param->_size_icache_error); |
---|
[112] | 78 | |
---|
| 79 | ALLOC1_INTERFACE_END(_param->_nb_icache_port); |
---|
[88] | 80 | } |
---|
| 81 | { |
---|
[112] | 82 | ALLOC2_INTERFACE_BEGIN("icache_rsp",WEST,IN ,_("Respons from instruction cache"),_param->_nb_icache_port,_param->_icache_nb_instruction[it1]); |
---|
[88] | 83 | |
---|
| 84 | _ALLOC2_SIGNAL_IN ( in_ICACHE_RSP_INSTRUCTION ,"instruction",Ticache_instruction_t,_param->_size_instruction,_param->_nb_icache_port,_param->_icache_nb_instruction[it1]); |
---|
[112] | 85 | |
---|
| 86 | ALLOC2_INTERFACE_END(_param->_nb_icache_port,_param->_icache_nb_instruction[it1]); |
---|
[88] | 87 | } |
---|
| 88 | |
---|
| 89 | // ~~~~~[ Interface "dcache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 90 | { |
---|
[112] | 91 | ALLOC1_INTERFACE_BEGIN("dcache_req", OUT, NORTH, _("Request to data cache"),_param->_nb_dcache_port); |
---|
[88] | 92 | |
---|
| 93 | ALLOC1_VALACK_OUT(out_DCACHE_REQ_VAL ,VAL); |
---|
| 94 | ALLOC1_VALACK_IN ( in_DCACHE_REQ_ACK ,ACK); |
---|
| 95 | ALLOC1_SIGNAL_OUT(out_DCACHE_REQ_THREAD_ID ,"thread_id",Tcontext_t ,_param->_size_dcache_thread_id); |
---|
| 96 | ALLOC1_SIGNAL_OUT(out_DCACHE_REQ_PACKET_ID ,"packet_id",Tpacket_t ,_param->_size_dcache_packet_id); |
---|
| 97 | ALLOC1_SIGNAL_OUT(out_DCACHE_REQ_ADDRESS ,"address" ,Tdcache_address_t ,_param->_size_dcache_address); |
---|
| 98 | ALLOC1_SIGNAL_OUT(out_DCACHE_REQ_WDATA ,"wdata" ,Tdcache_data_t ,_param->_size_dcache_data); |
---|
| 99 | ALLOC1_SIGNAL_OUT(out_DCACHE_REQ_TYPE ,"type" ,Tdcache_type_t ,_param->_size_dcache_type); |
---|
[112] | 100 | |
---|
| 101 | ALLOC1_INTERFACE_END(_param->_nb_dcache_port); |
---|
[88] | 102 | } |
---|
| 103 | |
---|
| 104 | // ~~~~~[ Interface "dcache_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 105 | { |
---|
[112] | 106 | ALLOC1_INTERFACE_BEGIN("dcache_rsp", IN , NORTH, _("Respons from data cache"),_param->_nb_dcache_port); |
---|
[88] | 107 | |
---|
| 108 | ALLOC1_VALACK_IN ( in_DCACHE_RSP_VAL ,VAL); |
---|
| 109 | ALLOC1_VALACK_OUT(out_DCACHE_RSP_ACK ,ACK); |
---|
| 110 | ALLOC1_SIGNAL_IN ( in_DCACHE_RSP_THREAD_ID ,"thread_id",Tcontext_t ,_param->_size_dcache_thread_id); |
---|
| 111 | ALLOC1_SIGNAL_IN ( in_DCACHE_RSP_PACKET_ID ,"packet_id",Tpacket_t ,_param->_size_dcache_packet_id); |
---|
| 112 | ALLOC1_SIGNAL_IN ( in_DCACHE_RSP_RDATA ,"rdata" ,Tdcache_data_t ,_param->_size_dcache_data); |
---|
| 113 | ALLOC1_SIGNAL_IN ( in_DCACHE_RSP_ERROR ,"error" ,Tdcache_error_t ,_param->_size_dcache_error); |
---|
[112] | 114 | |
---|
| 115 | ALLOC1_INTERFACE_END(_param->_nb_dcache_port); |
---|
[88] | 116 | } |
---|
| 117 | |
---|
| 118 | // ~~~~~[ Interface : "interrupt" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 119 | { |
---|
[112] | 120 | ALLOC1_INTERFACE_BEGIN("interrupt", IN , NORTH, _("Interruption line"),_param->_nb_thread); |
---|
[88] | 121 | |
---|
| 122 | ALLOC1_SIGNAL_IN ( in_INTERRUPT_ENABLE ,"enable",Tcontrol_t ,1); |
---|
[112] | 123 | |
---|
| 124 | ALLOC1_INTERFACE_END(_param->_nb_thread); |
---|
[88] | 125 | } |
---|
| 126 | |
---|
| 127 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 128 | |
---|
| 129 | std::string name; |
---|
| 130 | |
---|
| 131 | _component_front_end = new core::multi_front_end::front_end::Front_end * [_param->_nb_front_end]; |
---|
| 132 | for (uint32_t i=0; i<_param->_nb_front_end; ++i) |
---|
| 133 | { |
---|
| 134 | name = _name+"_front_end_"+toString(i); |
---|
| 135 | log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); |
---|
| 136 | |
---|
| 137 | _component_front_end [i] = new core::multi_front_end::front_end::Front_end |
---|
| 138 | (name.c_str() |
---|
| 139 | #ifdef STATISTICS |
---|
| 140 | ,param_statistics |
---|
| 141 | #endif |
---|
| 142 | ,_param->_param_front_end [i] |
---|
| 143 | ,_usage); |
---|
| 144 | |
---|
| 145 | _component->set_component (_component_front_end[i]->_component |
---|
| 146 | #ifdef POSITION |
---|
| 147 | , 50, 50, 10, 10 |
---|
| 148 | #endif |
---|
| 149 | ); |
---|
| 150 | } |
---|
| 151 | |
---|
| 152 | _component_ooo_engine = new core::multi_ooo_engine::ooo_engine::OOO_Engine * [_param->_nb_ooo_engine]; |
---|
| 153 | for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i) |
---|
| 154 | { |
---|
| 155 | name = _name+"_ooo_engine_"+toString(i); |
---|
| 156 | log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); |
---|
| 157 | |
---|
| 158 | _component_ooo_engine [i] = new core::multi_ooo_engine::ooo_engine::OOO_Engine |
---|
| 159 | (name.c_str() |
---|
| 160 | #ifdef STATISTICS |
---|
| 161 | ,param_statistics |
---|
| 162 | #endif |
---|
| 163 | ,_param->_param_ooo_engine [i] |
---|
| 164 | ,_usage); |
---|
| 165 | |
---|
| 166 | _component->set_component (_component_ooo_engine[i]->_component |
---|
| 167 | #ifdef POSITION |
---|
| 168 | , 50, 50, 10, 10 |
---|
| 169 | #endif |
---|
| 170 | ); |
---|
| 171 | } |
---|
| 172 | |
---|
| 173 | _component_execute_loop = new core::multi_execute_loop::execute_loop::Execute_loop * [_param->_nb_execute_loop]; |
---|
| 174 | for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) |
---|
| 175 | { |
---|
| 176 | name = _name+"_execute_loop_"+toString(i); |
---|
| 177 | log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); |
---|
| 178 | |
---|
| 179 | _component_execute_loop [i] = new core::multi_execute_loop::execute_loop::Execute_loop |
---|
| 180 | (name.c_str() |
---|
| 181 | #ifdef STATISTICS |
---|
| 182 | ,param_statistics |
---|
| 183 | #endif |
---|
| 184 | ,_param->_param_execute_loop [i] |
---|
| 185 | ,_usage); |
---|
| 186 | |
---|
| 187 | _component->set_component (_component_execute_loop[i]->_component |
---|
| 188 | #ifdef POSITION |
---|
| 189 | , 50, 50, 10, 10 |
---|
| 190 | #endif |
---|
| 191 | ); |
---|
| 192 | } |
---|
| 193 | |
---|
| 194 | { |
---|
| 195 | name = _name+"_icache_access"; |
---|
| 196 | log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); |
---|
| 197 | |
---|
| 198 | _component_icache_access = new morpheo::behavioural::core::icache_access::Icache_Access |
---|
| 199 | (name.c_str() |
---|
| 200 | #ifdef STATISTICS |
---|
| 201 | ,param_statistics |
---|
| 202 | #endif |
---|
| 203 | ,_param->_param_icache_access |
---|
| 204 | ,_usage); |
---|
| 205 | |
---|
| 206 | _component->set_component (_component_icache_access->_component |
---|
| 207 | #ifdef POSITION |
---|
| 208 | , 50, 50, 10, 10 |
---|
| 209 | #endif |
---|
| 210 | ); |
---|
| 211 | } |
---|
| 212 | |
---|
| 213 | { |
---|
| 214 | name = _name+"_dcache_access"; |
---|
| 215 | log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); |
---|
| 216 | |
---|
| 217 | _component_dcache_access = new morpheo::behavioural::core::dcache_access::Dcache_Access |
---|
| 218 | (name.c_str() |
---|
| 219 | #ifdef STATISTICS |
---|
| 220 | ,param_statistics |
---|
| 221 | #endif |
---|
| 222 | ,_param->_param_dcache_access |
---|
| 223 | ,_usage); |
---|
| 224 | |
---|
| 225 | _component->set_component (_component_dcache_access->_component |
---|
| 226 | #ifdef POSITION |
---|
| 227 | , 50, 50, 10, 10 |
---|
| 228 | #endif |
---|
| 229 | ); |
---|
| 230 | } |
---|
| 231 | |
---|
| 232 | |
---|
| 233 | { |
---|
| 234 | name = _name+"_glue"; |
---|
| 235 | log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); |
---|
| 236 | |
---|
| 237 | _component_glue = new morpheo::behavioural::core::core_glue::Core_Glue |
---|
| 238 | (name.c_str() |
---|
| 239 | #ifdef STATISTICS |
---|
| 240 | ,param_statistics |
---|
| 241 | #endif |
---|
| 242 | ,_param->_param_glue |
---|
| 243 | ,_usage); |
---|
| 244 | |
---|
| 245 | _component->set_component (_component_glue->_component |
---|
| 246 | #ifdef POSITION |
---|
| 247 | , 50, 50, 10, 10 |
---|
| 248 | #endif |
---|
| 249 | ); |
---|
| 250 | } |
---|
| 251 | |
---|
| 252 | // ~~~~~[ Instanciation ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 253 | std::string src,dest; |
---|
| 254 | |
---|
| 255 | |
---|
| 256 | // =================================================================== |
---|
| 257 | // =====[ front_end ]================================================= |
---|
| 258 | // =================================================================== |
---|
| 259 | for (uint32_t i=0; i<_param->_nb_front_end; ++i) |
---|
| 260 | { |
---|
| 261 | src = _name+"_front_end_"+toString(i); |
---|
| 262 | log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); |
---|
| 263 | |
---|
| 264 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 265 | { |
---|
| 266 | dest = _name; |
---|
| 267 | #ifdef POSITION |
---|
| 268 | _component->interface_map (src ,"", |
---|
| 269 | dest,""); |
---|
| 270 | #endif |
---|
| 271 | PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK"); |
---|
| 272 | PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET"); |
---|
| 273 | } |
---|
| 274 | |
---|
| 275 | // ~~~~~[ Interface "icache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 276 | // out_ICACHE_REQ_VAL - icache_access. in_CONTEXT_REQ_VAL |
---|
| 277 | // in_ICACHE_REQ_ACK - icache_access.out_CONTEXT_REQ_ACK |
---|
| 278 | // // out_ICACHE_REQ_THREAD_ID - icache_access. in_CONTEXT_REQ_THREAD_ID |
---|
| 279 | // out_ICACHE_REQ_PACKET_ID - icache_access. in_CONTEXT_REQ_PACKET_ID |
---|
| 280 | // out_ICACHE_REQ_ADDRESS - icache_access. in_CONTEXT_REQ_ADDRESS |
---|
| 281 | // out_ICACHE_REQ_TYPE - icache_access. in_CONTEXT_REQ_TYPE |
---|
| 282 | |
---|
| 283 | // ~~~~~[ Interface "icache_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 284 | // in_ICACHE_RSP_VAL - icache_access.out_CONTEXT_RSP_VAL |
---|
| 285 | // out_ICACHE_RSP_ACK - icache_access. in_CONTEXT_RSP_ACK |
---|
| 286 | // // in_ICACHE_RSP_THREAD_ID - icache_access.out_CONTEXT_RSP_THREAD_ID |
---|
| 287 | // in_ICACHE_RSP_PACKET_ID - icache_access.out_CONTEXT_RSP_PACKET_ID |
---|
| 288 | // in_ICACHE_RSP_INSTRUCTION - icache_access.out_CONTEXT_RSP_INSTRUCTION |
---|
| 289 | // in_ICACHE_RSP_ERROR - icache_access.out_CONTEXT_RSP_ERROR |
---|
| 290 | |
---|
| 291 | // ~~~~~[ Interface : "decod" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 292 | // out_DECOD_VAL - ooo_engine. in_RENAME_VAL |
---|
| 293 | // in_DECOD_ACK - ooo_engine.out_RENAME_ACK |
---|
| 294 | // out_DECOD_CONTEXT_ID - ooo_engine. in_RENAME_CONTEXT_ID |
---|
| 295 | // out_DECOD_DEPTH - ooo_engine. in_RENAME_DEPTH |
---|
| 296 | // out_DECOD_TYPE - ooo_engine. in_RENAME_TYPE |
---|
| 297 | // out_DECOD_OPERATION - ooo_engine. in_RENAME_OPERATION |
---|
| 298 | // out_DECOD_NO_EXECUTE - ooo_engine. in_RENAME_NO_EXECUTE |
---|
| 299 | // out_DECOD_IS_DELAY_SLOT - ooo_engine. in_RENAME_IS_DELAY_SLOT |
---|
[139] | 300 | // out_DECOD_SAVE_RAT - ooo_engine. in_RENAME_SAVE_RAT |
---|
[108] | 301 | // out_DECOD_ADDRESS - ooo_engine. in_RENAME_ADDRESS |
---|
[105] | 302 | // out_DECOD_ADDRESS_NEXT - ooo_engine. in_RENAME_ADDRESS_NEXT |
---|
[88] | 303 | // out_DECOD_HAS_IMMEDIAT - ooo_engine. in_RENAME_HAS_IMMEDIAT |
---|
| 304 | // out_DECOD_IMMEDIAT - ooo_engine. in_RENAME_IMMEDIAT |
---|
| 305 | // out_DECOD_READ_RA - ooo_engine. in_RENAME_READ_RA |
---|
| 306 | // out_DECOD_NUM_REG_RA - ooo_engine. in_RENAME_NUM_REG_RA |
---|
| 307 | // out_DECOD_READ_RB - ooo_engine. in_RENAME_READ_RB |
---|
| 308 | // out_DECOD_NUM_REG_RB - ooo_engine. in_RENAME_NUM_REG_RB |
---|
| 309 | // out_DECOD_READ_RC - ooo_engine. in_RENAME_READ_RC |
---|
| 310 | // out_DECOD_NUM_REG_RC - ooo_engine. in_RENAME_NUM_REG_RC |
---|
| 311 | // out_DECOD_WRITE_RD - ooo_engine. in_RENAME_WRITE_RD |
---|
| 312 | // out_DECOD_NUM_REG_RD - ooo_engine. in_RENAME_NUM_REG_RD |
---|
| 313 | // out_DECOD_WRITE_RE - ooo_engine. in_RENAME_WRITE_RE |
---|
| 314 | // out_DECOD_NUM_REG_RE - ooo_engine. in_RENAME_NUM_REG_RE |
---|
| 315 | // out_DECOD_EXCEPTION_USE - ooo_engine. in_RENAME_EXCEPTION_USE |
---|
| 316 | // out_DECOD_EXCEPTION - ooo_engine. in_RENAME_EXCEPTION |
---|
| 317 | |
---|
| 318 | // ~~~~~[ Interface : "branch_complete" ]~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 319 | for (uint32_t j=0; j<_param->_front_end_nb_inst_branch_complete[i]; ++j) |
---|
| 320 | { |
---|
| 321 | dest = _name+"_glue"; |
---|
| 322 | #ifdef POSITION |
---|
| 323 | _component->interface_map (src ,"branch_complete_" +toString(j), |
---|
| 324 | dest,"branch_complete_front_end_"+toString(i)+"_"+toString(j)); |
---|
| 325 | #endif |
---|
| 326 | |
---|
| 327 | COMPONENT_MAP(_component,src , "in_BRANCH_COMPLETE_" +toString(j)+"_VAL" , |
---|
| 328 | dest,"out_BRANCH_COMPLETE_FRONT_END_"+toString(i)+"_"+toString(j)+"_VAL" ); |
---|
| 329 | COMPONENT_MAP(_component,src ,"out_BRANCH_COMPLETE_" +toString(j)+"_ACK" , |
---|
| 330 | dest, "in_BRANCH_COMPLETE_FRONT_END_"+toString(i)+"_"+toString(j)+"_ACK" ); |
---|
| 331 | if (_param->_have_port_context_id) |
---|
| 332 | COMPONENT_MAP(_component,src , "in_BRANCH_COMPLETE_" +toString(j)+"_CONTEXT_ID" , |
---|
| 333 | dest,"out_BRANCH_COMPLETE_FRONT_END_"+toString(i)+"_"+toString(j)+"_CONTEXT_ID" ); |
---|
| 334 | if (_param->_have_port_depth) |
---|
| 335 | COMPONENT_MAP(_component,src , "in_BRANCH_COMPLETE_" +toString(j)+"_DEPTH" , |
---|
| 336 | dest,"out_BRANCH_COMPLETE_FRONT_END_"+toString(i)+"_"+toString(j)+"_DEPTH" ); |
---|
| 337 | COMPONENT_MAP(_component,src , "in_BRANCH_COMPLETE_" +toString(j)+"_ADDRESS" , |
---|
| 338 | dest,"out_BRANCH_COMPLETE_FRONT_END_"+toString(i)+"_"+toString(j)+"_ADDRESS" ); |
---|
[98] | 339 | COMPONENT_MAP(_component,src , "in_BRANCH_COMPLETE_" +toString(j)+"_NO_SEQUENCE" , |
---|
| 340 | dest,"out_BRANCH_COMPLETE_FRONT_END_"+toString(i)+"_"+toString(j)+"_NO_SEQUENCE" ); |
---|
[88] | 341 | COMPONENT_MAP(_component,src ,"out_BRANCH_COMPLETE_" +toString(j)+"_MISS_PREDICTION", |
---|
| 342 | dest, "in_BRANCH_COMPLETE_FRONT_END_"+toString(i)+"_"+toString(j)+"_MISS_PREDICTION"); |
---|
| 343 | } |
---|
| 344 | |
---|
| 345 | // ~~~~~[ Interface : "commit_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 346 | { |
---|
| 347 | dest = _name+"_glue"; |
---|
| 348 | #ifdef POSITION |
---|
| 349 | _component->interface_map (src ,"commit_event" , |
---|
| 350 | dest,"commit_event_front_end_"+toString(i)); |
---|
| 351 | #endif |
---|
| 352 | |
---|
| 353 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_VAL" , |
---|
| 354 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_VAL" ); |
---|
| 355 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_ACK" , |
---|
| 356 | dest, "in_COMMIT_EVENT_FRONT_END_"+toString(i)+"_ACK" ); |
---|
| 357 | if (_param->_have_port_context_id) |
---|
| 358 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_CONTEXT_ID" , |
---|
| 359 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_CONTEXT_ID" ); |
---|
| 360 | if (_param->_have_port_depth) |
---|
| 361 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_DEPTH" , |
---|
| 362 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_DEPTH" ); |
---|
| 363 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_TYPE" , |
---|
| 364 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_TYPE" ); |
---|
| 365 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_IS_DELAY_SLOT" , |
---|
| 366 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_IS_DELAY_SLOT" ); |
---|
| 367 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_ADDRESS" , |
---|
| 368 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_ADDRESS" ); |
---|
[105] | 369 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_ADDRESS_EPCR_VAL", |
---|
| 370 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_ADDRESS_EPCR_VAL"); |
---|
[88] | 371 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_ADDRESS_EPCR" , |
---|
| 372 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_ADDRESS_EPCR" ); |
---|
| 373 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_ADDRESS_EEAR_VAL", |
---|
| 374 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_ADDRESS_EEAR_VAL"); |
---|
| 375 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_ADDRESS_EEAR" , |
---|
| 376 | dest,"out_COMMIT_EVENT_FRONT_END_"+toString(i)+"_ADDRESS_EEAR" ); |
---|
| 377 | } |
---|
| 378 | |
---|
| 379 | // ~~~~~[ Interface "event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 380 | // out_EVENT_VAL - ooo_engine. in_EVENT_VAL |
---|
| 381 | // in_EVENT_ACK - ooo_engine.out_EVENT_ACK |
---|
| 382 | // out_EVENT_ADDRESS - ooo_engine. in_EVENT_ADDRESS |
---|
| 383 | // out_EVENT_ADDRESS_NEXT - ooo_engine. in_EVENT_ADDRESS_NEXT |
---|
| 384 | // out_EVENT_ADDRESS_NEXT_VAL - ooo_engine. in_EVENT_ADDRESS_NEXT_VAL |
---|
| 385 | // out_EVENT_IS_DS_TAKE - ooo_engine. in_EVENT_IS_DS_TAKE |
---|
| 386 | |
---|
| 387 | // ~~~~~[ Interface "spr_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 388 | //out_SPR_EVENT_VAL - ooo_engine. in_SPR_EVENT_VAL |
---|
| 389 | // in_SPR_EVENT_ACK - ooo_engine.out_SPR_EVENT_ACK |
---|
| 390 | //out_SPR_EVENT_EPCR - ooo_engine. in_SPR_EVENT_EPCR |
---|
| 391 | //out_SPR_EVENT_EEAR_WEN - ooo_engine. in_SPR_EVENT_EEAR_WEN |
---|
| 392 | //out_SPR_EVENT_EEAR - ooo_engine. in_SPR_EVENT_EEAR |
---|
| 393 | //out_SPR_EVENT_SR_DSX - ooo_engine. in_SPR_EVENT_SR_DSX |
---|
| 394 | //out_SPR_EVENT_SR_TO_ESR - ooo_engine. in_SPR_EVENT_SR_TO_ESR |
---|
| 395 | |
---|
| 396 | // ~~~~~[ Interface : "nb_inst" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 397 | // in_NB_INST_COMMIT_ALL - ooo_engine.out_NB_INST_COMMIT_ALL |
---|
| 398 | // in_NB_INST_COMMIT_MEM - ooo_engine.out_NB_INST_COMMIT_MEM |
---|
| 399 | |
---|
| 400 | // ~~~~~[ Interface : "depth" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
[101] | 401 | // out_DEPTH_MIN - ooo_engine. in_DEPTH_MIN |
---|
| 402 | // out_DEPTH_MAX - ooo_engine. in_DEPTH_MAX |
---|
| 403 | // out_DEPTH_FULL - ooo_engine. in_DEPTH_FULL |
---|
[88] | 404 | |
---|
| 405 | // ~~~~~[ Interface : "spr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 406 | // in_SPR_SR_IEE - ooo_engine.out_SPR_SR_IEE |
---|
| 407 | // in_SPR_SR_EPH - ooo_engine.out_SPR_SR_EPH |
---|
| 408 | |
---|
| 409 | // ~~~~~[ Interface : "interrupt" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 410 | for (uint32_t j=0; j<_param->_nb_context [i]; ++j) |
---|
| 411 | { |
---|
| 412 | uint32_t x = _param->_link_thread_with_context [i][j]; |
---|
| 413 | |
---|
| 414 | dest = _name; |
---|
| 415 | #ifdef POSITION |
---|
| 416 | _component->interface_map (src ,"interrupt_"+toString(j), |
---|
| 417 | dest,"interrupt_"+toString(x)); |
---|
| 418 | #endif |
---|
| 419 | |
---|
| 420 | PORT_MAP(_component,src , "in_INTERRUPT_"+toString(j)+"_ENABLE", |
---|
| 421 | dest, "in_INTERRUPT_"+toString(x)+"_ENABLE"); |
---|
| 422 | } |
---|
| 423 | } |
---|
| 424 | |
---|
| 425 | // =================================================================== |
---|
| 426 | // =====[ ooo_engine ]================================================ |
---|
| 427 | // =================================================================== |
---|
| 428 | for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i) |
---|
| 429 | { |
---|
| 430 | src = _name+"_ooo_engine_"+toString(i); |
---|
| 431 | log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); |
---|
| 432 | |
---|
| 433 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 434 | { |
---|
| 435 | dest = _name; |
---|
| 436 | #ifdef POSITION |
---|
| 437 | _component->interface_map (src ,"", |
---|
| 438 | dest,""); |
---|
| 439 | #endif |
---|
| 440 | PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK"); |
---|
| 441 | PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET"); |
---|
| 442 | } |
---|
| 443 | |
---|
| 444 | // ~~~~~[ Interface : "rename" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 445 | for (uint32_t j=0; j<_param->_ooo_engine_nb_front_end [i]; ++j) |
---|
| 446 | for (uint32_t k=0; k<_param->_ooo_engine_nb_inst_decod[i][j]; ++k) |
---|
| 447 | { |
---|
| 448 | uint32_t x = _param->_translate_ooo_engine_num_front_end [i][j]; |
---|
| 449 | dest = _name+"_front_end_"+toString(x); |
---|
| 450 | #ifdef POSITION |
---|
| 451 | _component->interface_map (src ,"rename_"+toString(j)+"_"+toString(k), |
---|
| 452 | dest,"decod_" +toString(k)); |
---|
| 453 | #endif |
---|
| 454 | |
---|
| 455 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_VAL" , |
---|
| 456 | dest,"out_DECOD_" +toString(k)+"_VAL" ); |
---|
| 457 | COMPONENT_MAP(_component,src ,"out_RENAME_"+toString(j)+"_"+toString(k)+"_ACK" , |
---|
| 458 | dest, "in_DECOD_" +toString(k)+"_ACK" ); |
---|
| 459 | if (_param->_have_port_context_id) |
---|
| 460 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_CONTEXT_ID" , |
---|
| 461 | dest,"out_DECOD_" +toString(k)+"_CONTEXT_ID" ); |
---|
| 462 | if (_param->_have_port_depth) |
---|
| 463 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_DEPTH" , |
---|
| 464 | dest,"out_DECOD_" +toString(k)+"_DEPTH" ); |
---|
[137] | 465 | #ifdef STATISTICS |
---|
| 466 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_INSTRUCTION" , |
---|
| 467 | dest,"out_DECOD_" +toString(k)+"_INSTRUCTION" ); |
---|
| 468 | #endif |
---|
[88] | 469 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_TYPE" , |
---|
| 470 | dest,"out_DECOD_" +toString(k)+"_TYPE" ); |
---|
| 471 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_OPERATION" , |
---|
| 472 | dest,"out_DECOD_" +toString(k)+"_OPERATION" ); |
---|
| 473 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_NO_EXECUTE" , |
---|
| 474 | dest,"out_DECOD_" +toString(k)+"_NO_EXECUTE" ); |
---|
[123] | 475 | // COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_HAVE_EVENT" , |
---|
| 476 | // dest,"out_DECOD_" +toString(k)+"_HAVE_EVENT" ); |
---|
| 477 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_LAST_EVENT" , |
---|
| 478 | dest,"out_DECOD_" +toString(k)+"_LAST_EVENT" ); |
---|
[88] | 479 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_IS_DELAY_SLOT", |
---|
| 480 | dest,"out_DECOD_" +toString(k)+"_IS_DELAY_SLOT"); |
---|
[139] | 481 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_SAVE_RAT" , |
---|
| 482 | dest,"out_DECOD_" +toString(k)+"_SAVE_RAT" ); |
---|
[108] | 483 | #ifdef DEBUG |
---|
| 484 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_ADDRESS" , |
---|
| 485 | dest,"out_DECOD_" +toString(k)+"_ADDRESS" ); |
---|
| 486 | #endif |
---|
[105] | 487 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_ADDRESS_NEXT" , |
---|
| 488 | dest,"out_DECOD_" +toString(k)+"_ADDRESS_NEXT" ); |
---|
[88] | 489 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_HAS_IMMEDIAT" , |
---|
| 490 | dest,"out_DECOD_" +toString(k)+"_HAS_IMMEDIAT" ); |
---|
| 491 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_IMMEDIAT" , |
---|
| 492 | dest,"out_DECOD_" +toString(k)+"_IMMEDIAT" ); |
---|
| 493 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_READ_RA" , |
---|
| 494 | dest,"out_DECOD_" +toString(k)+"_READ_RA" ); |
---|
| 495 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_NUM_REG_RA" , |
---|
| 496 | dest,"out_DECOD_" +toString(k)+"_NUM_REG_RA" ); |
---|
| 497 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_READ_RB" , |
---|
| 498 | dest,"out_DECOD_" +toString(k)+"_READ_RB" ); |
---|
| 499 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_NUM_REG_RB" , |
---|
| 500 | dest,"out_DECOD_" +toString(k)+"_NUM_REG_RB" ); |
---|
| 501 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_READ_RC" , |
---|
| 502 | dest,"out_DECOD_" +toString(k)+"_READ_RC" ); |
---|
| 503 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_NUM_REG_RC" , |
---|
| 504 | dest,"out_DECOD_" +toString(k)+"_NUM_REG_RC" ); |
---|
| 505 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_WRITE_RD" , |
---|
| 506 | dest,"out_DECOD_" +toString(k)+"_WRITE_RD" ); |
---|
| 507 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_NUM_REG_RD" , |
---|
| 508 | dest,"out_DECOD_" +toString(k)+"_NUM_REG_RD" ); |
---|
| 509 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_WRITE_RE" , |
---|
| 510 | dest,"out_DECOD_" +toString(k)+"_WRITE_RE" ); |
---|
| 511 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_NUM_REG_RE" , |
---|
| 512 | dest,"out_DECOD_" +toString(k)+"_NUM_REG_RE" ); |
---|
| 513 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_EXCEPTION_USE", |
---|
| 514 | dest,"out_DECOD_" +toString(k)+"_EXCEPTION_USE"); |
---|
| 515 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_EXCEPTION" , |
---|
| 516 | dest,"out_DECOD_" +toString(k)+"_EXCEPTION" ); |
---|
| 517 | |
---|
| 518 | dest = _name+"_glue"; |
---|
| 519 | #ifdef POSITION |
---|
| 520 | _component->interface_map (src ,"rename_"+toString(j)+"_"+toString(k), |
---|
| 521 | dest,"rename_"+toString(j)+"_"+toString(k)); |
---|
| 522 | #endif |
---|
| 523 | if (_param->_have_port_front_end_id) |
---|
| 524 | COMPONENT_MAP(_component,src , "in_RENAME_"+toString(j)+"_"+toString(k)+"_FRONT_END_ID" , |
---|
| 525 | dest,"out_RENAME_"+toString(j)+"_"+toString(k)+"_FRONT_END_ID" ); |
---|
| 526 | } |
---|
| 527 | |
---|
| 528 | // ~~~~~[ Interface : "branch_complete" ]~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 529 | for (uint32_t j=0; j<_param->_nb_inst_branch_complete[i];++j) |
---|
| 530 | { |
---|
| 531 | dest = _name+"_glue"; |
---|
| 532 | #ifdef POSITION |
---|
| 533 | _component->interface_map (src ,"branch_complete_" +toString(j), |
---|
| 534 | dest,"branch_complete_ooo_engine_"+toString(i)+"_"+toString(j)); |
---|
| 535 | #endif |
---|
| 536 | |
---|
| 537 | COMPONENT_MAP(_component,src ,"out_BRANCH_COMPLETE_" +toString(j)+"_VAL" , |
---|
| 538 | dest, "in_BRANCH_COMPLETE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_VAL" ); |
---|
| 539 | COMPONENT_MAP(_component,src , "in_BRANCH_COMPLETE_" +toString(j)+"_ACK" , |
---|
| 540 | dest,"out_BRANCH_COMPLETE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_ACK" ); |
---|
| 541 | if (_param->_have_port_front_end_id) |
---|
| 542 | COMPONENT_MAP(_component,src ,"out_BRANCH_COMPLETE_" +toString(j)+"_FRONT_END_ID" , |
---|
| 543 | dest, "in_BRANCH_COMPLETE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID" ); |
---|
| 544 | if (_param->_have_port_context_id) |
---|
| 545 | COMPONENT_MAP(_component,src ,"out_BRANCH_COMPLETE_" +toString(j)+"_CONTEXT_ID" , |
---|
| 546 | dest, "in_BRANCH_COMPLETE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_CONTEXT_ID" ); |
---|
| 547 | if (_param->_have_port_depth) |
---|
| 548 | COMPONENT_MAP(_component,src ,"out_BRANCH_COMPLETE_" +toString(j)+"_DEPTH" , |
---|
| 549 | dest, "in_BRANCH_COMPLETE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_DEPTH" ); |
---|
| 550 | COMPONENT_MAP(_component,src ,"out_BRANCH_COMPLETE_" +toString(j)+"_ADDRESS" , |
---|
| 551 | dest, "in_BRANCH_COMPLETE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_ADDRESS" ); |
---|
[98] | 552 | COMPONENT_MAP(_component,src ,"out_BRANCH_COMPLETE_" +toString(j)+"_NO_SEQUENCE" , |
---|
| 553 | dest, "in_BRANCH_COMPLETE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_NO_SEQUENCE" ); |
---|
[88] | 554 | COMPONENT_MAP(_component,src , "in_BRANCH_COMPLETE_" +toString(j)+"_MISS_PREDICTION", |
---|
| 555 | dest,"out_BRANCH_COMPLETE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_MISS_PREDICTION"); |
---|
| 556 | } |
---|
| 557 | |
---|
| 558 | // ~~~~~[ Interface : "commit_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 559 | { |
---|
| 560 | dest = _name+"_glue"; |
---|
| 561 | #ifdef POSITION |
---|
| 562 | _component->interface_map (src ,"commit_event", |
---|
| 563 | dest,"commit_event_ooo_engine_"+toString(i)); |
---|
| 564 | #endif |
---|
| 565 | |
---|
| 566 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_VAL" , |
---|
| 567 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_VAL" ); |
---|
| 568 | COMPONENT_MAP(_component,src , "in_COMMIT_EVENT_ACK" , |
---|
| 569 | dest,"out_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_ACK" ); |
---|
| 570 | if (_param->_have_port_front_end_id) |
---|
| 571 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_FRONT_END_ID" , |
---|
| 572 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_FRONT_END_ID" ); |
---|
| 573 | if (_param->_have_port_context_id) |
---|
| 574 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_CONTEXT_ID" , |
---|
| 575 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_CONTEXT_ID" ); |
---|
| 576 | if (_param->_have_port_depth) |
---|
| 577 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_DEPTH" , |
---|
| 578 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_DEPTH" ); |
---|
| 579 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_TYPE" , |
---|
| 580 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_TYPE" ); |
---|
| 581 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_IS_DELAY_SLOT" , |
---|
| 582 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_IS_DELAY_SLOT" ); |
---|
| 583 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_ADDRESS" , |
---|
| 584 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_ADDRESS" ); |
---|
[105] | 585 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_ADDRESS_EPCR_VAL", |
---|
| 586 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_ADDRESS_EPCR_VAL"); |
---|
[88] | 587 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_ADDRESS_EPCR" , |
---|
| 588 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_ADDRESS_EPCR" ); |
---|
| 589 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_ADDRESS_EEAR_VAL", |
---|
| 590 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_ADDRESS_EEAR_VAL"); |
---|
| 591 | COMPONENT_MAP(_component,src ,"out_COMMIT_EVENT_ADDRESS_EEAR" , |
---|
| 592 | dest, "in_COMMIT_EVENT_OOO_ENGINE_"+toString(i)+"_ADDRESS_EEAR" ); |
---|
| 593 | } |
---|
| 594 | |
---|
| 595 | // ~~~~~[ Interface "event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 596 | for (uint32_t j=0; j<_param->_ooo_engine_nb_front_end [i]; ++j) |
---|
| 597 | { |
---|
| 598 | uint32_t x = _param->_translate_ooo_engine_num_front_end [i][j]; |
---|
| 599 | for (uint32_t k=0; k<_param->_nb_context[x]; ++k) |
---|
| 600 | { |
---|
| 601 | dest = _name+"_front_end_"+toString(x); |
---|
| 602 | #ifdef POSITION |
---|
| 603 | _component->interface_map (src ,"event_"+toString(j)+"_"+toString(k), |
---|
| 604 | dest,"event_" +toString(k)); |
---|
| 605 | #endif |
---|
| 606 | |
---|
| 607 | COMPONENT_MAP(_component,src , "in_EVENT_"+toString(j)+"_"+toString(k)+"_VAL" , |
---|
| 608 | dest,"out_EVENT_" +toString(k)+"_VAL" ); |
---|
| 609 | COMPONENT_MAP(_component,src ,"out_EVENT_"+toString(j)+"_"+toString(k)+"_ACK" , |
---|
| 610 | dest, "in_EVENT_" +toString(k)+"_ACK" ); |
---|
| 611 | COMPONENT_MAP(_component,src , "in_EVENT_"+toString(j)+"_"+toString(k)+"_ADDRESS" , |
---|
| 612 | dest,"out_EVENT_" +toString(k)+"_ADDRESS" ); |
---|
| 613 | COMPONENT_MAP(_component,src , "in_EVENT_"+toString(j)+"_"+toString(k)+"_ADDRESS_NEXT" , |
---|
| 614 | dest,"out_EVENT_" +toString(k)+"_ADDRESS_NEXT" ); |
---|
| 615 | COMPONENT_MAP(_component,src , "in_EVENT_"+toString(j)+"_"+toString(k)+"_ADDRESS_NEXT_VAL", |
---|
| 616 | dest,"out_EVENT_" +toString(k)+"_ADDRESS_NEXT_VAL"); |
---|
| 617 | COMPONENT_MAP(_component,src , "in_EVENT_"+toString(j)+"_"+toString(k)+"_IS_DS_TAKE" , |
---|
| 618 | dest,"out_EVENT_" +toString(k)+"_IS_DS_TAKE" ); |
---|
| 619 | } |
---|
| 620 | } |
---|
| 621 | |
---|
| 622 | // ~~~~~[ Interface "spr_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 623 | for (uint32_t j=0; j<_param->_ooo_engine_nb_front_end [i]; ++j) |
---|
| 624 | { |
---|
| 625 | uint32_t x = _param->_translate_ooo_engine_num_front_end [i][j]; |
---|
| 626 | for (uint32_t k=0; k<_param->_nb_context[x]; ++k) |
---|
| 627 | { |
---|
| 628 | dest = _name+"_front_end_"+toString(x); |
---|
| 629 | #ifdef POSITION |
---|
| 630 | _component->interface_map (src ,"spr_event_"+toString(j)+"_"+toString(k), |
---|
| 631 | dest,"spr_event_" +toString(k)); |
---|
| 632 | #endif |
---|
| 633 | COMPONENT_MAP(_component,src , "in_SPR_EVENT_"+toString(j)+"_"+toString(k)+"_VAL" , |
---|
| 634 | dest,"out_SPR_EVENT_" +toString(k)+"_VAL" ); |
---|
| 635 | COMPONENT_MAP(_component,src ,"out_SPR_EVENT_"+toString(j)+"_"+toString(k)+"_ACK" , |
---|
| 636 | dest, "in_SPR_EVENT_" +toString(k)+"_ACK" ); |
---|
| 637 | COMPONENT_MAP(_component,src , "in_SPR_EVENT_"+toString(j)+"_"+toString(k)+"_EPCR" , |
---|
| 638 | dest,"out_SPR_EVENT_" +toString(k)+"_EPCR" ); |
---|
| 639 | COMPONENT_MAP(_component,src , "in_SPR_EVENT_"+toString(j)+"_"+toString(k)+"_EEAR_WEN" , |
---|
| 640 | dest,"out_SPR_EVENT_" +toString(k)+"_EEAR_WEN" ); |
---|
| 641 | COMPONENT_MAP(_component,src , "in_SPR_EVENT_"+toString(j)+"_"+toString(k)+"_EEAR" , |
---|
| 642 | dest,"out_SPR_EVENT_" +toString(k)+"_EEAR" ); |
---|
| 643 | COMPONENT_MAP(_component,src , "in_SPR_EVENT_"+toString(j)+"_"+toString(k)+"_SR_DSX" , |
---|
| 644 | dest,"out_SPR_EVENT_" +toString(k)+"_SR_DSX" ); |
---|
| 645 | COMPONENT_MAP(_component,src , "in_SPR_EVENT_"+toString(j)+"_"+toString(k)+"_SR_TO_ESR", |
---|
| 646 | dest,"out_SPR_EVENT_" +toString(k)+"_SR_TO_ESR"); |
---|
| 647 | } |
---|
| 648 | } |
---|
| 649 | |
---|
| 650 | // ~~~~~[ Interface : "nb_inst" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 651 | for (uint32_t j=0; j<_param->_ooo_engine_nb_front_end [i]; ++j) |
---|
| 652 | { |
---|
| 653 | uint32_t x = _param->_translate_ooo_engine_num_front_end [i][j]; |
---|
| 654 | for (uint32_t k=0; k<_param->_nb_context[x]; ++k) |
---|
| 655 | { |
---|
| 656 | dest = _name+"_front_end_"+toString(x); |
---|
| 657 | #ifdef POSITION |
---|
| 658 | _component->interface_map (src ,"nb_inst_"+toString(j)+"_"+toString(k), |
---|
| 659 | dest,"nb_inst_" +toString(k)); |
---|
| 660 | #endif |
---|
| 661 | COMPONENT_MAP(_component,src ,"out_NB_INST_"+toString(j)+"_"+toString(k)+"_COMMIT_ALL", |
---|
| 662 | dest, "in_NB_INST_" +toString(k)+"_COMMIT_ALL"); |
---|
| 663 | COMPONENT_MAP(_component,src ,"out_NB_INST_"+toString(j)+"_"+toString(k)+"_COMMIT_MEM", |
---|
| 664 | dest, "in_NB_INST_" +toString(k)+"_COMMIT_MEM"); |
---|
[108] | 665 | COMPONENT_MAP(_component,src , "in_NB_INST_"+toString(j)+"_"+toString(k)+"_DECOD_ALL" , |
---|
| 666 | dest,"out_NB_INST_" +toString(k)+"_DECOD_ALL" ); |
---|
[88] | 667 | } |
---|
| 668 | } |
---|
| 669 | |
---|
| 670 | // ~~~~~[ Interface : "depth" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 671 | for (uint32_t j=0; j<_param->_ooo_engine_nb_front_end [i]; ++j) |
---|
| 672 | { |
---|
| 673 | uint32_t x = _param->_translate_ooo_engine_num_front_end [i][j]; |
---|
| 674 | for (uint32_t k=0; k<_param->_nb_context[x]; ++k) |
---|
| 675 | { |
---|
| 676 | dest = _name+"_front_end_"+toString(x); |
---|
| 677 | #ifdef POSITION |
---|
| 678 | _component->interface_map (src ,"depth_"+toString(j)+"_"+toString(k), |
---|
| 679 | dest,"depth_" +toString(k)); |
---|
| 680 | #endif |
---|
| 681 | |
---|
| 682 | if (_param->_have_port_depth) |
---|
[101] | 683 | { |
---|
[88] | 684 | COMPONENT_MAP(_component,src , "in_DEPTH_"+toString(j)+"_"+toString(k)+"_MIN", |
---|
| 685 | dest,"out_DEPTH_" +toString(k)+"_MIN"); |
---|
| 686 | COMPONENT_MAP(_component,src , "in_DEPTH_"+toString(j)+"_"+toString(k)+"_MAX", |
---|
| 687 | dest,"out_DEPTH_" +toString(k)+"_MAX"); |
---|
[101] | 688 | } |
---|
| 689 | COMPONENT_MAP(_component,src , "in_DEPTH_"+toString(j)+"_"+toString(k)+"_FULL", |
---|
| 690 | dest,"out_DEPTH_" +toString(k)+"_FULL"); |
---|
[88] | 691 | } |
---|
| 692 | } |
---|
| 693 | |
---|
| 694 | // ~~~~~[ Interface : "spr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 695 | for (uint32_t j=0; j<_param->_ooo_engine_nb_front_end [i]; ++j) |
---|
| 696 | { |
---|
| 697 | uint32_t x = _param->_translate_ooo_engine_num_front_end [i][j]; |
---|
| 698 | for (uint32_t k=0; k<_param->_nb_context[x]; ++k) |
---|
| 699 | { |
---|
| 700 | dest = _name+"_front_end_"+toString(x); |
---|
| 701 | #ifdef POSITION |
---|
| 702 | _component->interface_map (src ,"spr_"+toString(j)+"_"+toString(k), |
---|
| 703 | dest,"spr_" +toString(k)); |
---|
| 704 | #endif |
---|
| 705 | |
---|
| 706 | COMPONENT_MAP(_component,src ,"out_SPR_"+toString(j)+"_"+toString(k)+"_SR_IEE", |
---|
| 707 | dest, "in_SPR_" +toString(k)+"_SR_IEE"); |
---|
| 708 | COMPONENT_MAP(_component,src ,"out_SPR_"+toString(j)+"_"+toString(k)+"_SR_EPH", |
---|
| 709 | dest, "in_SPR_" +toString(k)+"_SR_EPH"); |
---|
| 710 | } |
---|
| 711 | } |
---|
| 712 | |
---|
| 713 | // ~~~~~[ Interface : "issue" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
[117] | 714 | for (uint32_t j=0; j<_param->_nb_inst_issue_queue [i]; ++j) |
---|
[88] | 715 | { |
---|
| 716 | dest = _name+"_glue"; |
---|
| 717 | #ifdef POSITION |
---|
| 718 | _component->interface_map (src ,"issue_" +toString(j), |
---|
| 719 | dest,"issue_ooo_engine_"+toString(i)+"_"+toString(j)); |
---|
| 720 | #endif |
---|
| 721 | |
---|
| 722 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_VAL" , |
---|
| 723 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_VAL" ); |
---|
| 724 | COMPONENT_MAP(_component,src , "in_ISSUE_" +toString(j)+"_ACK" , |
---|
| 725 | dest,"out_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_ACK" ); |
---|
| 726 | if (_param->_have_port_front_end_id) |
---|
| 727 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_FRONT_END_ID" , |
---|
| 728 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID" ); |
---|
| 729 | if (_param->_have_port_context_id) |
---|
| 730 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_CONTEXT_ID" , |
---|
| 731 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_CONTEXT_ID" ); |
---|
| 732 | if (_param->_have_port_rob_ptr) |
---|
| 733 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_PACKET_ID" , |
---|
| 734 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_PACKET_ID" ); |
---|
| 735 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_TYPE" , |
---|
| 736 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_TYPE" ); |
---|
| 737 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_OPERATION" , |
---|
| 738 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_OPERATION" ); |
---|
[136] | 739 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_CANCEL" , |
---|
| 740 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_CANCEL" ); |
---|
[88] | 741 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_STORE_QUEUE_PTR_WRITE", |
---|
| 742 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_STORE_QUEUE_PTR_WRITE"); |
---|
[122] | 743 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_STORE_QUEUE_PTR_READ" , |
---|
| 744 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_STORE_QUEUE_PTR_READ" ); |
---|
| 745 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_STORE_QUEUE_EMPTY" , |
---|
| 746 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_STORE_QUEUE_EMPTY" ); |
---|
[88] | 747 | if (_param->_have_port_load_queue_ptr) |
---|
| 748 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_LOAD_QUEUE_PTR_WRITE" , |
---|
| 749 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_LOAD_QUEUE_PTR_WRITE" ); |
---|
| 750 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_HAS_IMMEDIAT" , |
---|
| 751 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_HAS_IMMEDIAT" ); |
---|
| 752 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_IMMEDIAT" , |
---|
| 753 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_IMMEDIAT" ); |
---|
| 754 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_READ_RA" , |
---|
| 755 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_READ_RA" ); |
---|
| 756 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_NUM_REG_RA" , |
---|
| 757 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RA" ); |
---|
| 758 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_READ_RB" , |
---|
| 759 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_READ_RB" ); |
---|
| 760 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_NUM_REG_RB" , |
---|
| 761 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RB" ); |
---|
| 762 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_READ_RC" , |
---|
| 763 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_READ_RC" ); |
---|
| 764 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_NUM_REG_RC" , |
---|
| 765 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RC" ); |
---|
| 766 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_WRITE_RD" , |
---|
| 767 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_WRITE_RD" ); |
---|
| 768 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_NUM_REG_RD" , |
---|
| 769 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RD" ); |
---|
| 770 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_WRITE_RE" , |
---|
| 771 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_WRITE_RE" ); |
---|
| 772 | COMPONENT_MAP(_component,src ,"out_ISSUE_" +toString(j)+"_NUM_REG_RE" , |
---|
| 773 | dest, "in_ISSUE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RE" ); |
---|
| 774 | } |
---|
| 775 | |
---|
| 776 | // ~~~~~[ Interface "execute_loop" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 777 | for (uint32_t j=0; j<_param->_ooo_engine_nb_execute_loop [i]; ++j) |
---|
| 778 | { |
---|
| 779 | for (uint32_t k=0; k<_param->_ooo_engine_nb_inst_execute [i][j]; ++k) |
---|
| 780 | { |
---|
| 781 | dest = _name+"_glue"; |
---|
| 782 | #ifdef POSITION |
---|
| 783 | _component->interface_map (src ,"execute_loop_" +toString(j)+"_"+toString(k), |
---|
| 784 | dest,"execute_ooo_engine_"+toString(i)+"_"+toString(j)+"_"+toString(k)); |
---|
| 785 | #endif |
---|
| 786 | |
---|
| 787 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_VAL" , |
---|
| 788 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_VAL" ); |
---|
| 789 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_ACK" , |
---|
| 790 | dest, "in_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_ACK" ); |
---|
| 791 | if (_param->_have_port_front_end_id) |
---|
| 792 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_FRONT_END_ID", |
---|
| 793 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_FRONT_END_ID"); |
---|
| 794 | if (_param->_have_port_context_id) |
---|
| 795 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_CONTEXT_ID" , |
---|
| 796 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_CONTEXT_ID" ); |
---|
| 797 | if (_param->_have_port_rob_ptr) |
---|
| 798 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_PACKET_ID" , |
---|
| 799 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_PACKET_ID" ); |
---|
| 800 | // COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_TYPE" , |
---|
| 801 | // dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_TYPE" ); |
---|
| 802 | // COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_OPERATION" , |
---|
| 803 | // dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_OPERATION" ); |
---|
[136] | 804 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_CANCEL" , |
---|
| 805 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_CANCEL" ); |
---|
[88] | 806 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_FLAGS" , |
---|
| 807 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_FLAGS" ); |
---|
| 808 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_EXCEPTION" , |
---|
| 809 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_EXCEPTION" ); |
---|
| 810 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_NO_SEQUENCE" , |
---|
| 811 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_NO_SEQUENCE" ); |
---|
| 812 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_ADDRESS" , |
---|
| 813 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_ADDRESS" ); |
---|
| 814 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_" +toString(j)+"_"+toString(k)+"_DATA" , |
---|
| 815 | dest,"out_EXECUTE_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_DATA" ); |
---|
| 816 | } |
---|
| 817 | } |
---|
| 818 | |
---|
[136] | 819 | // // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 820 | // for (uint32_t j=0; j<_param->_ooo_engine_nb_inst_insert_rob [i]; ++j) |
---|
| 821 | // { |
---|
| 822 | // dest = _name+"_glue"; |
---|
| 823 | // #ifdef POSITION |
---|
| 824 | // _component->interface_map (src ,"insert_" +toString(j), |
---|
| 825 | // dest,"insert_ooo_engine_"+toString(i)+"_"+toString(j)); |
---|
| 826 | // #endif |
---|
[88] | 827 | |
---|
[136] | 828 | // COMPONENT_MAP(_component,src ,"out_INSERT_" +toString(j)+"_VAL" , |
---|
| 829 | // dest, "in_INSERT_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_VAL" ); |
---|
| 830 | // COMPONENT_MAP(_component,src , "in_INSERT_" +toString(j)+"_ACK" , |
---|
| 831 | // dest,"out_INSERT_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_ACK" ); |
---|
| 832 | // COMPONENT_MAP(_component,src ,"out_INSERT_" +toString(j)+"_RD_USE" , |
---|
| 833 | // dest, "in_INSERT_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_RD_USE" ); |
---|
| 834 | // COMPONENT_MAP(_component,src ,"out_INSERT_" +toString(j)+"_RD_NUM_REG", |
---|
| 835 | // dest, "in_INSERT_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_RD_NUM_REG"); |
---|
| 836 | // COMPONENT_MAP(_component,src ,"out_INSERT_" +toString(j)+"_RE_USE" , |
---|
| 837 | // dest, "in_INSERT_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_RE_USE" ); |
---|
| 838 | // COMPONENT_MAP(_component,src ,"out_INSERT_" +toString(j)+"_RE_NUM_REG", |
---|
| 839 | // dest, "in_INSERT_OOO_ENGINE_"+toString(i)+"_"+toString(j)+"_RE_NUM_REG"); |
---|
| 840 | // } |
---|
[88] | 841 | } |
---|
| 842 | |
---|
| 843 | // =================================================================== |
---|
| 844 | // =====[ execute_loop ]============================================== |
---|
| 845 | // =================================================================== |
---|
| 846 | for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) |
---|
| 847 | { |
---|
| 848 | src = _name+"_execute_loop_"+toString(i); |
---|
| 849 | log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); |
---|
| 850 | |
---|
| 851 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 852 | { |
---|
| 853 | dest = _name; |
---|
| 854 | #ifdef POSITION |
---|
| 855 | _component->interface_map (src ,"", |
---|
| 856 | dest,""); |
---|
| 857 | #endif |
---|
| 858 | PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK"); |
---|
| 859 | PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET"); |
---|
| 860 | } |
---|
| 861 | |
---|
| 862 | // ~~~~~[ Interface "execute_loop_in" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 863 | for (uint32_t j=0; j<_param->_nb_read_unit[i]; ++j) |
---|
| 864 | { |
---|
| 865 | dest = _name+"_glue"; |
---|
| 866 | #ifdef POSITION |
---|
| 867 | _component->interface_map (src ,"execute_loop_in_" +toString(j), |
---|
| 868 | dest,"issue_execute_loop_"+toString(i)+"_"+toString(j)); |
---|
| 869 | #endif |
---|
| 870 | |
---|
| 871 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_VAL" , |
---|
| 872 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_VAL" ); |
---|
| 873 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_IN_" +toString(j)+"_ACK" , |
---|
| 874 | dest, "in_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_ACK" ); |
---|
| 875 | if (_param->_have_port_front_end_id) |
---|
| 876 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_FRONT_END_ID" , |
---|
| 877 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID" ); |
---|
| 878 | if (_param->_have_port_context_id) |
---|
| 879 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_CONTEXT_ID" , |
---|
| 880 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_CONTEXT_ID" ); |
---|
| 881 | if (_param->_have_port_ooo_engine_id) |
---|
| 882 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_OOO_ENGINE_ID" , |
---|
| 883 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_OOO_ENGINE_ID" ); |
---|
| 884 | if (_param->_have_port_rob_ptr) |
---|
| 885 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_PACKET_ID" , |
---|
| 886 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_PACKET_ID" ); |
---|
| 887 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_OPERATION" , |
---|
| 888 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_OPERATION" ); |
---|
| 889 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_TYPE" , |
---|
| 890 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_TYPE" ); |
---|
[136] | 891 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_CANCEL" , |
---|
| 892 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_CANCEL" ); |
---|
[88] | 893 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_STORE_QUEUE_PTR_WRITE", |
---|
| 894 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_STORE_QUEUE_PTR_WRITE"); |
---|
[122] | 895 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_STORE_QUEUE_PTR_READ" , |
---|
| 896 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_STORE_QUEUE_PTR_READ" ); |
---|
| 897 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_STORE_QUEUE_EMPTY" , |
---|
| 898 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_STORE_QUEUE_EMPTY" ); |
---|
[88] | 899 | if (_param->_have_port_load_queue_ptr) |
---|
| 900 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_LOAD_QUEUE_PTR_WRITE" , |
---|
| 901 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_LOAD_QUEUE_PTR_WRITE" ); |
---|
| 902 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_HAS_IMMEDIAT" , |
---|
| 903 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_HAS_IMMEDIAT" ); |
---|
| 904 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_IMMEDIAT" , |
---|
| 905 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_IMMEDIAT" ); |
---|
| 906 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_READ_RA" , |
---|
| 907 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_READ_RA" ); |
---|
| 908 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_NUM_REG_RA" , |
---|
| 909 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_NUM_REG_RA" ); |
---|
| 910 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_READ_RB" , |
---|
| 911 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_READ_RB" ); |
---|
| 912 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_NUM_REG_RB" , |
---|
| 913 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_NUM_REG_RB" ); |
---|
| 914 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_READ_RC" , |
---|
| 915 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_READ_RC" ); |
---|
| 916 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_NUM_REG_RC" , |
---|
| 917 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_NUM_REG_RC" ); |
---|
| 918 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_WRITE_RD" , |
---|
| 919 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_WRITE_RD" ); |
---|
| 920 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_NUM_REG_RD" , |
---|
| 921 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_NUM_REG_RD" ); |
---|
| 922 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_WRITE_RE" , |
---|
| 923 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_WRITE_RE" ); |
---|
| 924 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_IN_" +toString(j)+"_NUM_REG_RE" , |
---|
| 925 | dest,"out_ISSUE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_NUM_REG_RE" ); |
---|
| 926 | } |
---|
| 927 | |
---|
| 928 | // ~~~~~[ Interface "execute_loop_out" ]~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 929 | for (uint32_t j=0; j<_param->_nb_write_unit[i]; ++j) |
---|
| 930 | { |
---|
| 931 | dest = _name+"_glue"; |
---|
| 932 | #ifdef POSITION |
---|
| 933 | _component->interface_map (src ,"execute_loop_out_" +toString(j), |
---|
| 934 | dest,"execute_execute_loop_"+toString(i)+"_"+toString(j)); |
---|
| 935 | #endif |
---|
| 936 | |
---|
| 937 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_VAL" , |
---|
| 938 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_VAL" ); |
---|
| 939 | COMPONENT_MAP(_component,src , "in_EXECUTE_LOOP_OUT_" +toString(j)+"_ACK" , |
---|
| 940 | dest,"out_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_ACK" ); |
---|
| 941 | if (_param->_have_port_context_id) |
---|
| 942 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_CONTEXT_ID" , |
---|
| 943 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_CONTEXT_ID" ); |
---|
| 944 | if (_param->_have_port_front_end_id) |
---|
| 945 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_FRONT_END_ID" , |
---|
| 946 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_FRONT_END_ID" ); |
---|
| 947 | if (_param->_have_port_ooo_engine_id) |
---|
| 948 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_OOO_ENGINE_ID", |
---|
| 949 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_OOO_ENGINE_ID"); |
---|
| 950 | if (_param->_have_port_rob_ptr) |
---|
| 951 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_PACKET_ID" , |
---|
| 952 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_PACKET_ID" ); |
---|
| 953 | // COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_OPERATION" , |
---|
| 954 | // dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_OPERATION" ); |
---|
| 955 | // COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_TYPE" , |
---|
| 956 | // dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_TYPE" ); |
---|
[136] | 957 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_CANCEL" , |
---|
| 958 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_CANCEL" ); |
---|
[88] | 959 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_FLAGS" , |
---|
| 960 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_FLAGS" ); |
---|
| 961 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_EXCEPTION" , |
---|
| 962 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_EXCEPTION" ); |
---|
| 963 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_NO_SEQUENCE" , |
---|
| 964 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_NO_SEQUENCE" ); |
---|
| 965 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_ADDRESS" , |
---|
| 966 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_ADDRESS" ); |
---|
| 967 | COMPONENT_MAP(_component,src ,"out_EXECUTE_LOOP_OUT_" +toString(j)+"_DATA" , |
---|
| 968 | dest, "in_EXECUTE_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_DATA" ); |
---|
| 969 | } |
---|
| 970 | |
---|
[136] | 971 | // // ~~~~~[ Interface "insert_rob" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 972 | // for (uint32_t j=0; j<_param->_execute_loop_nb_ooo_engine[i]; ++j) |
---|
| 973 | // for (uint32_t k=0; k<_param->_execute_loop_nb_inst_insert_rob[i][j]; ++k) |
---|
| 974 | // { |
---|
| 975 | // dest = _name+"_glue"; |
---|
| 976 | // #ifdef POSITION |
---|
| 977 | // _component->interface_map (src ,"insert_rob_" +toString(j)+"_"+toString(k), |
---|
| 978 | // dest,"insert_execute_loop_"+toString(i)+"_"+toString(j)+"_"+toString(k)); |
---|
| 979 | // #endif |
---|
[88] | 980 | |
---|
[136] | 981 | // COMPONENT_MAP(_component,src , "in_INSERT_ROB_" +toString(j)+"_"+toString(k)+"_VAL" , |
---|
| 982 | // dest,"out_INSERT_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_VAL" ); |
---|
| 983 | // COMPONENT_MAP(_component,src ,"out_INSERT_ROB_" +toString(j)+"_"+toString(k)+"_ACK" , |
---|
| 984 | // dest, "in_INSERT_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_ACK" ); |
---|
| 985 | // COMPONENT_MAP(_component,src , "in_INSERT_ROB_" +toString(j)+"_"+toString(k)+"_RD_USE" , |
---|
| 986 | // dest,"out_INSERT_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_RD_USE" ); |
---|
| 987 | // COMPONENT_MAP(_component,src , "in_INSERT_ROB_" +toString(j)+"_"+toString(k)+"_RD_NUM_REG", |
---|
| 988 | // dest,"out_INSERT_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_RD_NUM_REG"); |
---|
| 989 | // COMPONENT_MAP(_component,src , "in_INSERT_ROB_" +toString(j)+"_"+toString(k)+"_RE_USE" , |
---|
| 990 | // dest,"out_INSERT_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_RE_USE" ); |
---|
| 991 | // COMPONENT_MAP(_component,src , "in_INSERT_ROB_" +toString(j)+"_"+toString(k)+"_RE_NUM_REG", |
---|
| 992 | // dest,"out_INSERT_EXECUTE_LOOP_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_RE_NUM_REG"); |
---|
| 993 | // } |
---|
[88] | 994 | |
---|
| 995 | // ~~~~~[ Interface "dcache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 996 | // out_DCACHE_REQ_VAL - dcache_access. in_LSQ_REQ_VAL |
---|
| 997 | // in_DCACHE_REQ_ACK - dcache_access.out_LSQ_REQ_ACK |
---|
| 998 | // out_DCACHE_REQ_CONTEXT_ID - dcache_access. in_LSQ_REQ_CONTEXT_ID |
---|
| 999 | // out_DCACHE_REQ_PACKET_ID - dcache_access. in_LSQ_REQ_PACKET_ID |
---|
| 1000 | // out_DCACHE_REQ_ADDRESS - dcache_access. in_LSQ_REQ_ADDRESS |
---|
| 1001 | // out_DCACHE_REQ_TYPE - dcache_access. in_LSQ_REQ_TYPE |
---|
| 1002 | // out_DCACHE_REQ_WDATA - dcache_access. in_LSQ_REQ_WDATA |
---|
| 1003 | |
---|
| 1004 | // ~~~~~[ Interface "dcache_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1005 | // in_DCACHE_RSP_VAL - dcache_access.out_LSQ_RSP_VAL |
---|
| 1006 | // out_DCACHE_RSP_ACK - dcache_access. in_LSQ_RSP_ACK |
---|
| 1007 | // in_DCACHE_RSP_CONTEXT_ID - dcache_access.out_LSQ_RSP_CONTEXT_ID |
---|
| 1008 | // in_DCACHE_RSP_PACKET_ID - dcache_access.out_LSQ_RSP_PACKET_ID |
---|
| 1009 | // in_DCACHE_RSP_RDATA - dcache_access.out_LSQ_RSP_RDATA |
---|
| 1010 | // in_DCACHE_RSP_ERROR - dcache_access.out_LSQ_RSP_ERROR |
---|
| 1011 | } |
---|
| 1012 | |
---|
| 1013 | // =================================================================== |
---|
| 1014 | // =====[ icache_access ]============================================= |
---|
| 1015 | // =================================================================== |
---|
| 1016 | { |
---|
| 1017 | src = _name+"_icache_access"; |
---|
| 1018 | log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); |
---|
| 1019 | |
---|
| 1020 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1021 | { |
---|
| 1022 | dest = _name; |
---|
| 1023 | #ifdef POSITION |
---|
| 1024 | _component->interface_map (src ,"", |
---|
| 1025 | dest,""); |
---|
| 1026 | #endif |
---|
| 1027 | PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK"); |
---|
| 1028 | PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET"); |
---|
| 1029 | } |
---|
| 1030 | |
---|
| 1031 | // ~~~~~[ Interface "icache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1032 | for (uint32_t i=0; i<_param->_nb_icache_port; ++i) |
---|
| 1033 | { |
---|
| 1034 | dest = _name; |
---|
| 1035 | #ifdef POSITION |
---|
| 1036 | _component->interface_map (src ,"icache_req_"+toString(i), |
---|
| 1037 | dest,"icache_req_"+toString(i)); |
---|
| 1038 | #endif |
---|
| 1039 | |
---|
| 1040 | PORT_MAP(_component,src ,"out_ICACHE_REQ_"+toString(i)+"_VAL" , |
---|
| 1041 | dest,"out_ICACHE_REQ_"+toString(i)+"_VAL" ); |
---|
| 1042 | PORT_MAP(_component,src , "in_ICACHE_REQ_"+toString(i)+"_ACK" , |
---|
| 1043 | dest, "in_ICACHE_REQ_"+toString(i)+"_ACK" ); |
---|
| 1044 | if (_param->_have_port_icache_thread_id) |
---|
| 1045 | PORT_MAP(_component,src ,"out_ICACHE_REQ_"+toString(i)+"_THREAD_ID", |
---|
| 1046 | dest,"out_ICACHE_REQ_"+toString(i)+"_THREAD_ID"); |
---|
| 1047 | if (_param->_have_port_icache_packet_id) |
---|
| 1048 | PORT_MAP(_component,src ,"out_ICACHE_REQ_"+toString(i)+"_PACKET_ID", |
---|
| 1049 | dest,"out_ICACHE_REQ_"+toString(i)+"_PACKET_ID"); |
---|
| 1050 | PORT_MAP(_component,src ,"out_ICACHE_REQ_"+toString(i)+"_ADDRESS" , |
---|
| 1051 | dest,"out_ICACHE_REQ_"+toString(i)+"_ADDRESS" ); |
---|
| 1052 | PORT_MAP(_component,src ,"out_ICACHE_REQ_"+toString(i)+"_TYPE" , |
---|
| 1053 | dest,"out_ICACHE_REQ_"+toString(i)+"_TYPE" ); |
---|
| 1054 | } |
---|
| 1055 | |
---|
| 1056 | // ~~~~~[ Interface "icache_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1057 | for (uint32_t i=0; i<_param->_nb_icache_port; ++i) |
---|
| 1058 | { |
---|
| 1059 | dest = _name; |
---|
| 1060 | #ifdef POSITION |
---|
| 1061 | _component->interface_map (src ,"icache_rsp_"+toString(i), |
---|
| 1062 | dest,"icache_rsp_"+toString(i)); |
---|
| 1063 | #endif |
---|
| 1064 | |
---|
| 1065 | PORT_MAP(_component,src , "in_ICACHE_RSP_"+toString(i)+"_VAL" , |
---|
| 1066 | dest, "in_ICACHE_RSP_"+toString(i)+"_VAL" ); |
---|
| 1067 | PORT_MAP(_component,src ,"out_ICACHE_RSP_"+toString(i)+"_ACK" , |
---|
| 1068 | dest,"out_ICACHE_RSP_"+toString(i)+"_ACK" ); |
---|
| 1069 | if (_param->_have_port_icache_thread_id) |
---|
| 1070 | PORT_MAP(_component,src , "in_ICACHE_RSP_"+toString(i)+"_THREAD_ID" , |
---|
| 1071 | dest, "in_ICACHE_RSP_"+toString(i)+"_THREAD_ID" ); |
---|
| 1072 | if (_param->_have_port_icache_packet_id) |
---|
| 1073 | PORT_MAP(_component,src , "in_ICACHE_RSP_"+toString(i)+"_PACKET_ID" , |
---|
| 1074 | dest, "in_ICACHE_RSP_"+toString(i)+"_PACKET_ID" ); |
---|
| 1075 | PORT_MAP(_component,src , "in_ICACHE_RSP_"+toString(i)+"_ERROR" , |
---|
| 1076 | dest, "in_ICACHE_RSP_"+toString(i)+"_ERROR" ); |
---|
| 1077 | |
---|
| 1078 | for (uint32_t j=0; j<_param->_icache_nb_instruction[i];++j) |
---|
| 1079 | { |
---|
| 1080 | #ifdef POSITION |
---|
| 1081 | _component->interface_map (src ,"icache_rsp_"+toString(i)+"_"+toString(j), |
---|
| 1082 | dest,"icache_rsp_"+toString(i)+"_"+toString(j)); |
---|
| 1083 | #endif |
---|
| 1084 | |
---|
| 1085 | |
---|
| 1086 | PORT_MAP(_component,src , "in_ICACHE_RSP_"+toString(i)+"_"+toString(j)+"_INSTRUCTION", |
---|
| 1087 | dest, "in_ICACHE_RSP_"+toString(i)+"_"+toString(j)+"_INSTRUCTION"); |
---|
| 1088 | } |
---|
| 1089 | } |
---|
| 1090 | |
---|
| 1091 | // ~~~~~[ Interface "context_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1092 | for (uint32_t i=0; i<_param->_nb_front_end; ++i) |
---|
| 1093 | for (uint32_t j=0; j<_param->_nb_context[i]; ++j) |
---|
| 1094 | { |
---|
| 1095 | dest = _name+"_front_end_"+toString(i); |
---|
| 1096 | #ifdef POSITION |
---|
| 1097 | _component->interface_map (src ,"context_req_"+toString(i)+"_"+toString(j), |
---|
| 1098 | dest,"icache_req_" +toString(j)); |
---|
| 1099 | #endif |
---|
| 1100 | |
---|
| 1101 | COMPONENT_MAP(_component,src , "in_CONTEXT_REQ_"+toString(i)+"_"+toString(j)+"_VAL" , |
---|
| 1102 | dest,"out_ICACHE_REQ_" +toString(j)+"_VAL" ); |
---|
| 1103 | COMPONENT_MAP(_component,src ,"out_CONTEXT_REQ_"+toString(i)+"_"+toString(j)+"_ACK" , |
---|
| 1104 | dest, "in_ICACHE_REQ_" +toString(j)+"_ACK" ); |
---|
| 1105 | // COMPONENT_MAP(_component,src , "in_CONTEXT_REQ_"+toString(i)+"_"+toString(j)+"_THREAD_ID", |
---|
| 1106 | // dest,"out_ICACHE_REQ_" +toString(j)+"_THREAD_ID"); |
---|
| 1107 | if (_param->_have_port_icache_packet_id) |
---|
| 1108 | COMPONENT_MAP(_component,src , "in_CONTEXT_REQ_"+toString(i)+"_"+toString(j)+"_PACKET_ID", |
---|
| 1109 | dest,"out_ICACHE_REQ_" +toString(j)+"_PACKET_ID"); |
---|
| 1110 | COMPONENT_MAP(_component,src , "in_CONTEXT_REQ_"+toString(i)+"_"+toString(j)+"_ADDRESS" , |
---|
| 1111 | dest,"out_ICACHE_REQ_" +toString(j)+"_ADDRESS" ); |
---|
| 1112 | COMPONENT_MAP(_component,src , "in_CONTEXT_REQ_"+toString(i)+"_"+toString(j)+"_TYPE" , |
---|
| 1113 | dest,"out_ICACHE_REQ_" +toString(j)+"_TYPE" ); |
---|
| 1114 | } |
---|
| 1115 | |
---|
| 1116 | // ~~~~~[ Interface "context_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1117 | for (uint32_t i=0; i<_param->_nb_front_end; ++i) |
---|
| 1118 | for (uint32_t j=0; j<_param->_nb_context[i]; ++j) |
---|
| 1119 | { |
---|
| 1120 | dest = _name+"_front_end_"+toString(i); |
---|
| 1121 | #ifdef POSITION |
---|
| 1122 | _component->interface_map (src ,"context_rsp_"+toString(i)+"_"+toString(j), |
---|
| 1123 | dest,"icache_rsp_" +toString(j)); |
---|
| 1124 | #endif |
---|
| 1125 | |
---|
| 1126 | COMPONENT_MAP(_component,src ,"out_CONTEXT_RSP_"+toString(i)+"_"+toString(j)+"_VAL" , |
---|
| 1127 | dest, "in_ICACHE_RSP_" +toString(j)+"_VAL" ); |
---|
| 1128 | COMPONENT_MAP(_component,src , "in_CONTEXT_RSP_"+toString(i)+"_"+toString(j)+"_ACK" , |
---|
| 1129 | dest,"out_ICACHE_RSP_" +toString(j)+"_ACK" ); |
---|
| 1130 | // COMPONENT_MAP(_component,src ,"out_CONTEXT_RSP_"+toString(i)+"_"+toString(j)+"_THREAD_ID" , |
---|
| 1131 | // dest, "in_ICACHE_RSP_" +toString(j)+"_THREAD_ID" ); |
---|
| 1132 | if (_param->_have_port_icache_packet_id) |
---|
| 1133 | COMPONENT_MAP(_component,src ,"out_CONTEXT_RSP_"+toString(i)+"_"+toString(j)+"_PACKET_ID" , |
---|
| 1134 | dest, "in_ICACHE_RSP_" +toString(j)+"_PACKET_ID" ); |
---|
| 1135 | COMPONENT_MAP(_component,src ,"out_CONTEXT_RSP_"+toString(i)+"_"+toString(j)+"_ERROR" , |
---|
| 1136 | dest, "in_ICACHE_RSP_" +toString(j)+"_ERROR" ); |
---|
| 1137 | |
---|
| 1138 | for (uint32_t k=0; k<_param->_front_end_nb_inst_fetch[i][j];++k) |
---|
| 1139 | { |
---|
| 1140 | #ifdef POSITION |
---|
| 1141 | _component->interface_map (src ,"context_rsp_"+toString(i)+"_"+toString(j)+"_"+toString(k), |
---|
| 1142 | dest,"icache_rsp_" +toString(j)+"_"+toString(k)); |
---|
| 1143 | #endif |
---|
| 1144 | |
---|
| 1145 | COMPONENT_MAP(_component,src ,"out_CONTEXT_RSP_"+toString(i)+"_"+toString(j)+"_"+toString(k)+"_INSTRUCTION", |
---|
| 1146 | dest, "in_ICACHE_RSP_" +toString(j)+"_"+toString(k)+"_INSTRUCTION"); |
---|
| 1147 | } |
---|
| 1148 | |
---|
| 1149 | } |
---|
| 1150 | } |
---|
| 1151 | |
---|
| 1152 | // =================================================================== |
---|
| 1153 | // =====[ dcache_access ]============================================= |
---|
| 1154 | // =================================================================== |
---|
| 1155 | { |
---|
| 1156 | src = _name+"_dcache_access"; |
---|
| 1157 | log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); |
---|
| 1158 | |
---|
| 1159 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1160 | { |
---|
| 1161 | dest = _name; |
---|
| 1162 | #ifdef POSITION |
---|
| 1163 | _component->interface_map (src ,"", |
---|
| 1164 | dest,""); |
---|
| 1165 | #endif |
---|
| 1166 | PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK"); |
---|
| 1167 | PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET"); |
---|
| 1168 | } |
---|
| 1169 | |
---|
| 1170 | // ~~~~~[ Interface "dcache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1171 | for (uint32_t i=0; i<_param->_nb_dcache_port; ++i) |
---|
| 1172 | { |
---|
| 1173 | dest = _name; |
---|
| 1174 | #ifdef POSITION |
---|
| 1175 | _component->interface_map (src ,"dcache_req_"+toString(i), |
---|
| 1176 | dest,"dcache_req_"+toString(i)); |
---|
| 1177 | #endif |
---|
| 1178 | |
---|
| 1179 | PORT_MAP(_component,src ,"out_DCACHE_REQ_"+toString(i)+"_VAL" , |
---|
| 1180 | dest,"out_DCACHE_REQ_"+toString(i)+"_VAL" ); |
---|
| 1181 | PORT_MAP(_component,src , "in_DCACHE_REQ_"+toString(i)+"_ACK" , |
---|
| 1182 | dest, "in_DCACHE_REQ_"+toString(i)+"_ACK" ); |
---|
| 1183 | if (_param->_have_port_dcache_thread_id) |
---|
| 1184 | PORT_MAP(_component,src ,"out_DCACHE_REQ_"+toString(i)+"_THREAD_ID", |
---|
| 1185 | dest,"out_DCACHE_REQ_"+toString(i)+"_THREAD_ID"); |
---|
| 1186 | if (_param->_have_port_dcache_packet_id) |
---|
| 1187 | PORT_MAP(_component,src ,"out_DCACHE_REQ_"+toString(i)+"_PACKET_ID", |
---|
| 1188 | dest,"out_DCACHE_REQ_"+toString(i)+"_PACKET_ID"); |
---|
| 1189 | PORT_MAP(_component,src ,"out_DCACHE_REQ_"+toString(i)+"_ADDRESS" , |
---|
| 1190 | dest,"out_DCACHE_REQ_"+toString(i)+"_ADDRESS" ); |
---|
| 1191 | PORT_MAP(_component,src ,"out_DCACHE_REQ_"+toString(i)+"_WDATA" , |
---|
| 1192 | dest,"out_DCACHE_REQ_"+toString(i)+"_WDATA" ); |
---|
| 1193 | PORT_MAP(_component,src ,"out_DCACHE_REQ_"+toString(i)+"_TYPE" , |
---|
| 1194 | dest,"out_DCACHE_REQ_"+toString(i)+"_TYPE" ); |
---|
| 1195 | } |
---|
| 1196 | |
---|
| 1197 | // ~~~~~[ Interface "dcache_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1198 | for (uint32_t i=0; i<_param->_nb_dcache_port; ++i) |
---|
| 1199 | { |
---|
| 1200 | dest = _name; |
---|
| 1201 | #ifdef POSITION |
---|
| 1202 | _component->interface_map (src ,"dcache_rsp_"+toString(i), |
---|
| 1203 | dest,"dcache_rsp_"+toString(i)); |
---|
| 1204 | #endif |
---|
| 1205 | |
---|
| 1206 | PORT_MAP(_component,src , "in_DCACHE_RSP_"+toString(i)+"_VAL" , |
---|
| 1207 | dest, "in_DCACHE_RSP_"+toString(i)+"_VAL" ); |
---|
| 1208 | PORT_MAP(_component,src ,"out_DCACHE_RSP_"+toString(i)+"_ACK" , |
---|
| 1209 | dest,"out_DCACHE_RSP_"+toString(i)+"_ACK" ); |
---|
| 1210 | if (_param->_have_port_dcache_thread_id) |
---|
| 1211 | PORT_MAP(_component,src , "in_DCACHE_RSP_"+toString(i)+"_THREAD_ID" , |
---|
| 1212 | dest, "in_DCACHE_RSP_"+toString(i)+"_THREAD_ID" ); |
---|
| 1213 | if (_param->_have_port_dcache_packet_id) |
---|
| 1214 | PORT_MAP(_component,src , "in_DCACHE_RSP_"+toString(i)+"_PACKET_ID" , |
---|
| 1215 | dest, "in_DCACHE_RSP_"+toString(i)+"_PACKET_ID" ); |
---|
| 1216 | PORT_MAP(_component,src , "in_DCACHE_RSP_"+toString(i)+"_RDATA" , |
---|
| 1217 | dest, "in_DCACHE_RSP_"+toString(i)+"_RDATA" ); |
---|
| 1218 | PORT_MAP(_component,src , "in_DCACHE_RSP_"+toString(i)+"_ERROR" , |
---|
| 1219 | dest, "in_DCACHE_RSP_"+toString(i)+"_ERROR" ); |
---|
| 1220 | } |
---|
| 1221 | |
---|
| 1222 | // ~~~~~[ Interface "lsq_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1223 | for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) |
---|
| 1224 | for (uint32_t j=0; j<_param->_execute_loop_nb_load_store_unit[i]; ++j) |
---|
| 1225 | for (uint32_t k=0; k<_param->_execute_loop_nb_cache_port [i][j]; ++k) |
---|
| 1226 | { |
---|
| 1227 | dest = _name+"_execute_loop_"+toString(i); |
---|
| 1228 | #ifdef POSITION |
---|
| 1229 | _component->interface_map (src ,"lsq_req_" +toString(i)+"_"+toString(j)+"_"+toString(k), |
---|
| 1230 | dest,"dcache_req_" +toString(j)+"_"+toString(k)); |
---|
| 1231 | #endif |
---|
| 1232 | |
---|
| 1233 | COMPONENT_MAP(_component,src , "in_LSQ_REQ_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_VAL" , |
---|
| 1234 | dest,"out_DCACHE_REQ_" +toString(j)+"_"+toString(k)+"_VAL" ); |
---|
| 1235 | COMPONENT_MAP(_component,src ,"out_LSQ_REQ_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_ACK" , |
---|
| 1236 | dest, "in_DCACHE_REQ_" +toString(j)+"_"+toString(k)+"_ACK" ); |
---|
| 1237 | if (_param->_have_port_dcache_thread_id) |
---|
| 1238 | COMPONENT_MAP(_component,src , "in_LSQ_REQ_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_THREAD_ID", |
---|
[117] | 1239 | dest,"out_DCACHE_REQ_" +toString(j)+"_"+toString(k)+"_CONTEXT_ID"); |
---|
[88] | 1240 | if (_param->_have_port_dcache_packet_id) |
---|
| 1241 | COMPONENT_MAP(_component,src , "in_LSQ_REQ_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_PACKET_ID", |
---|
| 1242 | dest,"out_DCACHE_REQ_" +toString(j)+"_"+toString(k)+"_PACKET_ID"); |
---|
| 1243 | COMPONENT_MAP(_component,src , "in_LSQ_REQ_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_ADDRESS" , |
---|
| 1244 | dest,"out_DCACHE_REQ_" +toString(j)+"_"+toString(k)+"_ADDRESS" ); |
---|
| 1245 | COMPONENT_MAP(_component,src , "in_LSQ_REQ_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_WDATA" , |
---|
| 1246 | dest,"out_DCACHE_REQ_" +toString(j)+"_"+toString(k)+"_WDATA" ); |
---|
| 1247 | COMPONENT_MAP(_component,src , "in_LSQ_REQ_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_TYPE" , |
---|
| 1248 | dest,"out_DCACHE_REQ_" +toString(j)+"_"+toString(k)+"_TYPE" ); |
---|
| 1249 | } |
---|
| 1250 | |
---|
| 1251 | // ~~~~~[ Interface "lsq_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1252 | for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) |
---|
| 1253 | for (uint32_t j=0; j<_param->_execute_loop_nb_load_store_unit[i]; ++j) |
---|
| 1254 | for (uint32_t k=0; k<_param->_execute_loop_nb_cache_port [i][j]; ++k) |
---|
| 1255 | { |
---|
| 1256 | dest = _name+"_execute_loop_"+toString(i); |
---|
| 1257 | #ifdef POSITION |
---|
| 1258 | _component->interface_map (src ,"lsq_rsp_" +toString(i)+"_"+toString(j)+"_"+toString(k), |
---|
| 1259 | dest,"dcache_rsp_" +toString(j)+"_"+toString(k)); |
---|
| 1260 | #endif |
---|
| 1261 | |
---|
| 1262 | COMPONENT_MAP(_component,src ,"out_LSQ_RSP_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_VAL" , |
---|
| 1263 | dest, "in_DCACHE_RSP_" +toString(j)+"_"+toString(k)+"_VAL" ); |
---|
| 1264 | COMPONENT_MAP(_component,src , "in_LSQ_RSP_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_ACK" , |
---|
| 1265 | dest,"out_DCACHE_RSP_" +toString(j)+"_"+toString(k)+"_ACK" ); |
---|
| 1266 | if (_param->_have_port_dcache_thread_id) |
---|
| 1267 | COMPONENT_MAP(_component,src ,"out_LSQ_RSP_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_THREAD_ID", |
---|
[117] | 1268 | dest, "in_DCACHE_RSP_" +toString(j)+"_"+toString(k)+"_CONTEXT_ID"); |
---|
[88] | 1269 | if (_param->_have_port_dcache_packet_id) |
---|
| 1270 | COMPONENT_MAP(_component,src ,"out_LSQ_RSP_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_PACKET_ID", |
---|
| 1271 | dest, "in_DCACHE_RSP_" +toString(j)+"_"+toString(k)+"_PACKET_ID"); |
---|
| 1272 | COMPONENT_MAP(_component,src ,"out_LSQ_RSP_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_RDATA" , |
---|
| 1273 | dest, "in_DCACHE_RSP_" +toString(j)+"_"+toString(k)+"_RDATA" ); |
---|
| 1274 | COMPONENT_MAP(_component,src ,"out_LSQ_RSP_" +toString(i)+"_"+toString(j)+"_"+toString(k)+"_ERROR" , |
---|
| 1275 | dest, "in_DCACHE_RSP_" +toString(j)+"_"+toString(k)+"_ERROR" ); |
---|
| 1276 | } |
---|
| 1277 | } |
---|
| 1278 | |
---|
| 1279 | // =================================================================== |
---|
| 1280 | // =====[ glue ]====================================================== |
---|
| 1281 | // =================================================================== |
---|
| 1282 | { |
---|
| 1283 | src = _name+"_glue"; |
---|
| 1284 | log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); |
---|
| 1285 | |
---|
| 1286 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1287 | { |
---|
| 1288 | dest = _name; |
---|
| 1289 | #ifdef POSITION |
---|
| 1290 | _component->interface_map (src ,"", |
---|
| 1291 | dest,""); |
---|
| 1292 | #endif |
---|
| 1293 | PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK"); |
---|
| 1294 | PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET"); |
---|
| 1295 | } |
---|
| 1296 | |
---|
| 1297 | // ~~~~~[ Interface : "rename" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1298 | // out_RENAME_FRONT_END_ID - ooo_engine. in_RENAME_FRONT_END_ID |
---|
| 1299 | |
---|
| 1300 | // ~~~~~[ Interface : "branch_complete" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1301 | // out_BRANCH_COMPLETE_FRONT_END_VAL - front_end. in_BRANCH_COMPLETE_VAL |
---|
| 1302 | // in_BRANCH_COMPLETE_FRONT_END_ACK - front_end.out_BRANCH_COMPLETE_ACK |
---|
| 1303 | // out_BRANCH_COMPLETE_FRONT_END_CONTEXT_ID - front_end. in_BRANCH_COMPLETE_CONTEXT_ID |
---|
| 1304 | // out_BRANCH_COMPLETE_FRONT_END_DEPTH - front_end. in_BRANCH_COMPLETE_DEPTH |
---|
| 1305 | // out_BRANCH_COMPLETE_FRONT_END_ADDRESS - front_end. in_BRANCH_COMPLETE_ADDRESS |
---|
[98] | 1306 | // out_BRANCH_COMPLETE_FRONT_END_FLAG - front_end. in_BRANCH_COMPLETE_NO_SEQUENCE |
---|
[88] | 1307 | // in_BRANCH_COMPLETE_FRONT_END_MISS_PREDICTION - front_end.out_BRANCH_COMPLETE_MISS_PREDICTION |
---|
| 1308 | |
---|
| 1309 | // in_BRANCH_COMPLETE_OOO_ENGINE_VAL - ooo_engine.out_BRANCH_COMPLETE_VAL |
---|
| 1310 | // out_BRANCH_COMPLETE_OOO_ENGINE_ACK - ooo_engine. in_BRANCH_COMPLETE_ACK |
---|
| 1311 | // in_BRANCH_COMPLETE_OOO_ENGINE_FRONT_END_ID - ooo_engine.out_BRANCH_COMPLETE_FRONT_END_ID |
---|
| 1312 | // in_BRANCH_COMPLETE_OOO_ENGINE_CONTEXT_ID - ooo_engine.out_BRANCH_COMPLETE_CONTEXT_ID |
---|
| 1313 | // in_BRANCH_COMPLETE_OOO_ENGINE_DEPTH - ooo_engine.out_BRANCH_COMPLETE_DEPTH |
---|
| 1314 | // in_BRANCH_COMPLETE_OOO_ENGINE_ADDRESS - ooo_engine.out_BRANCH_COMPLETE_ADDRESS |
---|
[98] | 1315 | // in_BRANCH_COMPLETE_OOO_ENGINE_FLAG - ooo_engine.out_BRANCH_COMPLETE_NO_SEQUENCE |
---|
[88] | 1316 | // out_BRANCH_COMPLETE_OOO_ENGINE_MISS_PREDICTION- ooo_engine. in_BRANCH_COMPLETE_MISS_PREDICTION |
---|
| 1317 | |
---|
| 1318 | // ~~~~~[ Interface : "commit_event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1319 | // out_COMMIT_EVENT_FRONT_END_VAL - front_end. in_COMMIT_EVENT_VAL |
---|
| 1320 | // in_COMMIT_EVENT_FRONT_END_ACK - front_end.out_COMMIT_EVENT_ACK |
---|
| 1321 | // out_COMMIT_EVENT_FRONT_END_CONTEXT_ID - front_end. in_COMMIT_EVENT_CONTEXT_ID |
---|
| 1322 | // out_COMMIT_EVENT_FRONT_END_DEPTH - front_end. in_COMMIT_EVENT_DEPTH |
---|
| 1323 | // out_COMMIT_EVENT_FRONT_END_TYPE - front_end. in_COMMIT_EVENT_TYPE |
---|
| 1324 | // out_COMMIT_EVENT_FRONT_END_IS_DELAY_SLOT - front_end. in_COMMIT_EVENT_IS_DELAY_SLOT |
---|
| 1325 | // out_COMMIT_EVENT_FRONT_END_ADDRESS - front_end. in_COMMIT_EVENT_ADDRESS |
---|
[105] | 1326 | // out_COMMIT_EVENT_FRONT_END_ADDRESS_EPCR_VAL - front_end. in_COMMIT_EVENT_ADDRESS_EPCR_VAL |
---|
[88] | 1327 | // out_COMMIT_EVENT_FRONT_END_ADDRESS_EPCR - front_end. in_COMMIT_EVENT_ADDRESS_EPCR |
---|
| 1328 | // out_COMMIT_EVENT_FRONT_END_ADDRESS_EEAR_VAL - front_end. in_COMMIT_EVENT_ADDRESS_EEAR_VAL |
---|
| 1329 | // out_COMMIT_EVENT_FRONT_END_ADDRESS_EEAR - front_end. in_COMMIT_EVENT_ADDRESS_EEAR |
---|
| 1330 | |
---|
| 1331 | // in_COMMIT_EVENT_OOO_ENGINE_VAL - ooo_engine.out_COMMIT_EVENT_VAL |
---|
| 1332 | // out_COMMIT_EVENT_OOO_ENGINE_ACK - ooo_engine. in_COMMIT_EVENT_ACK |
---|
| 1333 | // in_COMMIT_EVENT_OOO_ENGINE_FRONT_END_ID - ooo_engine.out_COMMIT_EVENT_FRONT_END_ID |
---|
| 1334 | // in_COMMIT_EVENT_OOO_ENGINE_CONTEXT_ID - ooo_engine.out_COMMIT_EVENT_CONTEXT_ID |
---|
| 1335 | // in_COMMIT_EVENT_OOO_ENGINE_DEPTH - ooo_engine.out_COMMIT_EVENT_DEPTH |
---|
| 1336 | // in_COMMIT_EVENT_OOO_ENGINE_TYPE - ooo_engine.out_COMMIT_EVENT_TYPE |
---|
| 1337 | // in_COMMIT_EVENT_OOO_ENGINE_IS_DELAY_SLOT - ooo_engine.out_COMMIT_EVENT_IS_DELAY_SLOT |
---|
| 1338 | // in_COMMIT_EVENT_OOO_ENGINE_ADDRESS - ooo_engine.out_COMMIT_EVENT_ADDRESS |
---|
[105] | 1339 | // in_COMMIT_EVENT_OOO_ENGINE_ADDRESS_EPCR_VAL- ooo_engine.out_COMMIT_EVENT_ADDRESS_EPCR_VAL |
---|
[88] | 1340 | // in_COMMIT_EVENT_OOO_ENGINE_ADDRESS_EPCR - ooo_engine.out_COMMIT_EVENT_ADDRESS_EPCR |
---|
| 1341 | // in_COMMIT_EVENT_OOO_ENGINE_ADDRESS_EEAR_VAL- ooo_engine.out_COMMIT_EVENT_ADDRESS_EEAR_VAL |
---|
| 1342 | // in_COMMIT_EVENT_OOO_ENGINE_ADDRESS_EEAR - ooo_engine.out_COMMIT_EVENT_ADDRESS_EEAR |
---|
| 1343 | |
---|
| 1344 | // ~~~~~[ Interface : "issue" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1345 | // in_ISSUE_OOO_ENGINE_VAL - ooo_engine.out_ISSUE_VAL |
---|
| 1346 | // out_ISSUE_OOO_ENGINE_ACK - ooo_engine. in_ISSUE_ACK |
---|
| 1347 | // in_ISSUE_OOO_ENGINE_FRONT_END_ID - ooo_engine.out_ISSUE_FRONT_END_ID |
---|
| 1348 | // in_ISSUE_OOO_ENGINE_CONTEXT_ID - ooo_engine.out_ISSUE_CONTEXT_ID |
---|
| 1349 | // in_ISSUE_OOO_ENGINE_PACKET_ID - ooo_engine.out_ISSUE_PACKET_ID |
---|
| 1350 | // in_ISSUE_OOO_ENGINE_TYPE - ooo_engine.out_ISSUE_TYPE |
---|
| 1351 | // in_ISSUE_OOO_ENGINE_OPERATION - ooo_engine.out_ISSUE_OPERATION |
---|
| 1352 | // in_ISSUE_OOO_ENGINE_STORE_QUEUE_PTR_WRITE - ooo_engine.out_ISSUE_STORE_QUEUE_PTR_WRITE |
---|
[122] | 1353 | // in_ISSUE_OOO_ENGINE_STORE_QUEUE_PTR_READ - ooo_engine.out_ISSUE_STORE_QUEUE_PTR_READ |
---|
| 1354 | // in_ISSUE_OOO_ENGINE_STORE_QUEUE_EMPTY - ooo_engine.out_ISSUE_STORE_QUEUE_EMPTY |
---|
[88] | 1355 | // in_ISSUE_OOO_ENGINE_LOAD_QUEUE_PTR_WRITE - ooo_engine.out_ISSUE_LOAD_QUEUE_PTR_WRITE |
---|
| 1356 | // in_ISSUE_OOO_ENGINE_HAS_IMMEDIAT - ooo_engine.out_ISSUE_HAS_IMMEDIAT |
---|
| 1357 | // in_ISSUE_OOO_ENGINE_IMMEDIAT - ooo_engine.out_ISSUE_IMMEDIAT |
---|
| 1358 | // in_ISSUE_OOO_ENGINE_READ_RA - ooo_engine.out_ISSUE_READ_RA |
---|
| 1359 | // in_ISSUE_OOO_ENGINE_NUM_REG_RA - ooo_engine.out_ISSUE_NUM_REG_RA |
---|
| 1360 | // in_ISSUE_OOO_ENGINE_READ_RB - ooo_engine.out_ISSUE_READ_RB |
---|
| 1361 | // in_ISSUE_OOO_ENGINE_NUM_REG_RB - ooo_engine.out_ISSUE_NUM_REG_RB |
---|
| 1362 | // in_ISSUE_OOO_ENGINE_READ_RC - ooo_engine.out_ISSUE_READ_RC |
---|
| 1363 | // in_ISSUE_OOO_ENGINE_NUM_REG_RC - ooo_engine.out_ISSUE_NUM_REG_RC |
---|
| 1364 | // in_ISSUE_OOO_ENGINE_WRITE_RD - ooo_engine.out_ISSUE_WRITE_RD |
---|
| 1365 | // in_ISSUE_OOO_ENGINE_NUM_REG_RD - ooo_engine.out_ISSUE_NUM_REG_RD |
---|
| 1366 | // in_ISSUE_OOO_ENGINE_WRITE_RE - ooo_engine.out_ISSUE_WRITE_RE |
---|
| 1367 | // in_ISSUE_OOO_ENGINE_NUM_REG_RE - ooo_engine.out_ISSUE_NUM_REG_RE |
---|
| 1368 | |
---|
| 1369 | // out_ISSUE_EXECUTE_LOOP_VAL - execute_loop. in_EXECUTE_LOOP_IN_VAL |
---|
| 1370 | // in_ISSUE_EXECUTE_LOOP_ACK - execute_loop. in_EXECUTE_LOOP_IN_ACK |
---|
| 1371 | // out_ISSUE_EXECUTE_LOOP_CONTEXT_ID - execute_loop. in_EXECUTE_LOOP_IN_CONTEXT_ID |
---|
| 1372 | // out_ISSUE_EXECUTE_LOOP_FRONT_END_ID - execute_loop. in_EXECUTE_LOOP_IN_FRONT_END_ID |
---|
| 1373 | // out_ISSUE_EXECUTE_LOOP_OOO_ENGINE_ID - execute_loop. in_EXECUTE_LOOP_IN_OOO_ENGINE_ID |
---|
| 1374 | // out_ISSUE_EXECUTE_LOOP_PACKET_ID - execute_loop. in_EXECUTE_LOOP_IN_PACKET_ID |
---|
| 1375 | // out_ISSUE_EXECUTE_LOOP_OPERATION - execute_loop. in_EXECUTE_LOOP_IN_OPERATION |
---|
| 1376 | // out_ISSUE_EXECUTE_LOOP_TYPE - execute_loop. in_EXECUTE_LOOP_IN_TYPE |
---|
| 1377 | // out_ISSUE_EXECUTE_LOOP_STORE_QUEUE_PTR_WRITE - execute_loop. in_EXECUTE_LOOP_IN_STORE_QUEUE_PTR_WRITE |
---|
[122] | 1378 | // out_ISSUE_EXECUTE_LOOP_STORE_QUEUE_PTR_READ - execute_loop. in_EXECUTE_LOOP_IN_STORE_QUEUE_PTR_READ |
---|
| 1379 | // out_ISSUE_EXECUTE_LOOP_STORE_QUEUE_EMPTY - execute_loop. in_EXECUTE_LOOP_IN_STORE_QUEUE_EMPTY |
---|
[88] | 1380 | // out_ISSUE_EXECUTE_LOOP_LOAD_QUEUE_PTR_WRITE - execute_loop. in_EXECUTE_LOOP_IN_LOAD_QUEUE_PTR_WRITE |
---|
| 1381 | // out_ISSUE_EXECUTE_LOOP_HAS_IMMEDIAT - execute_loop. in_EXECUTE_LOOP_IN_HAS_IMMEDIAT |
---|
| 1382 | // out_ISSUE_EXECUTE_LOOP_IMMEDIAT - execute_loop. in_EXECUTE_LOOP_IN_IMMEDIAT |
---|
| 1383 | // out_ISSUE_EXECUTE_LOOP_READ_RA - execute_loop. in_EXECUTE_LOOP_IN_READ_RA |
---|
| 1384 | // out_ISSUE_EXECUTE_LOOP_NUM_REG_RA - execute_loop. in_EXECUTE_LOOP_IN_NUM_REG_RA |
---|
| 1385 | // out_ISSUE_EXECUTE_LOOP_READ_RB - execute_loop. in_EXECUTE_LOOP_IN_READ_RB |
---|
| 1386 | // out_ISSUE_EXECUTE_LOOP_NUM_REG_RB - execute_loop. in_EXECUTE_LOOP_IN_NUM_REG_RB |
---|
| 1387 | // out_ISSUE_EXECUTE_LOOP_READ_RC - execute_loop. in_EXECUTE_LOOP_IN_READ_RC |
---|
| 1388 | // out_ISSUE_EXECUTE_LOOP_NUM_REG_RC - execute_loop. in_EXECUTE_LOOP_IN_NUM_REG_RC |
---|
| 1389 | // out_ISSUE_EXECUTE_LOOP_WRITE_RD - execute_loop. in_EXECUTE_LOOP_IN_WRITE_RD |
---|
| 1390 | // out_ISSUE_EXECUTE_LOOP_NUM_REG_RD - execute_loop. in_EXECUTE_LOOP_IN_NUM_REG_RD |
---|
| 1391 | // out_ISSUE_EXECUTE_LOOP_WRITE_RE - execute_loop. in_EXECUTE_LOOP_IN_WRITE_RE |
---|
| 1392 | // out_ISSUE_EXECUTE_LOOP_NUM_REG_RE - execute_loop. in_EXECUTE_LOOP_IN_NUM_REG_RE |
---|
| 1393 | |
---|
| 1394 | |
---|
| 1395 | // ~~~~~[ Interface "execute_loop" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1396 | // out_EXECUTE_OOO_ENGINE_VAL - ooo_engine. in_EXECUTE_LOOP_VAL |
---|
| 1397 | // in_EXECUTE_OOO_ENGINE_ACK - ooo_engine.out_EXECUTE_LOOP_ACK |
---|
| 1398 | // out_EXECUTE_OOO_ENGINE_FRONT_END_ID - ooo_engine. in_EXECUTE_LOOP_FRONT_END_ID |
---|
| 1399 | // out_EXECUTE_OOO_ENGINE_CONTEXT_ID - ooo_engine. in_EXECUTE_LOOP_CONTEXT_ID |
---|
| 1400 | // out_EXECUTE_OOO_ENGINE_PACKET_ID - ooo_engine. in_EXECUTE_LOOP_PACKET_ID |
---|
| 1401 | //// out_EXECUTE_OOO_ENGINE_TYPE - ooo_engine. in_EXECUTE_LOOP_TYPE |
---|
| 1402 | //// out_EXECUTE_OOO_ENGINE_OPERATION - ooo_engine. in_EXECUTE_LOOP_OPERATION |
---|
| 1403 | // out_EXECUTE_OOO_ENGINE_FLAGS - ooo_engine. in_EXECUTE_LOOP_FLAGS |
---|
| 1404 | // out_EXECUTE_OOO_ENGINE_EXCEPTION - ooo_engine. in_EXECUTE_LOOP_EXCEPTION |
---|
| 1405 | // out_EXECUTE_OOO_ENGINE_NO_SEQUENCE - ooo_engine. in_EXECUTE_LOOP_NO_SEQUENCE |
---|
| 1406 | // out_EXECUTE_OOO_ENGINE_ADDRESS - ooo_engine. in_EXECUTE_LOOP_ADDRESS |
---|
| 1407 | // out_EXECUTE_OOO_ENGINE_DATA - ooo_engine. in_EXECUTE_LOOP_DATA |
---|
| 1408 | |
---|
| 1409 | // in_EXECUTE_EXECUTE_LOOP_VAL - execute_loop.out_EXECUTE_LOOP_OUT_VAL |
---|
| 1410 | // out_EXECUTE_EXECUTE_LOOP_ACK - execute_loop.out_EXECUTE_LOOP_OUT_ACK |
---|
| 1411 | // in_EXECUTE_EXECUTE_LOOP_CONTEXT_ID - execute_loop.out_EXECUTE_LOOP_OUT_CONTEXT_ID |
---|
| 1412 | // in_EXECUTE_EXECUTE_LOOP_FRONT_END_ID - execute_loop.out_EXECUTE_LOOP_OUT_FRONT_END_ID |
---|
| 1413 | // in_EXECUTE_EXECUTE_LOOP_OOO_ENGINE_ID - execute_loop.out_EXECUTE_LOOP_OUT_OOO_ENGINE_ID |
---|
| 1414 | // in_EXECUTE_EXECUTE_LOOP_PACKET_ID - execute_loop.out_EXECUTE_LOOP_OUT_PACKET_ID |
---|
| 1415 | //// in_EXECUTE_EXECUTE_LOOP_OPERATION - execute_loop.out_EXECUTE_LOOP_OUT_OPERATION |
---|
| 1416 | //// in_EXECUTE_EXECUTE_LOOP_TYPE - execute_loop.out_EXECUTE_LOOP_OUT_TYPE |
---|
| 1417 | // in_EXECUTE_EXECUTE_LOOP_FLAGS - execute_loop.out_EXECUTE_LOOP_OUT_FLAGS |
---|
| 1418 | // in_EXECUTE_EXECUTE_LOOP_EXCEPTION - execute_loop.out_EXECUTE_LOOP_OUT_EXCEPTION |
---|
| 1419 | // in_EXECUTE_EXECUTE_LOOP_NO_SEQUENCE - execute_loop.out_EXECUTE_LOOP_OUT_NO_SEQUENCE |
---|
| 1420 | // in_EXECUTE_EXECUTE_LOOP_ADDRESS - execute_loop.out_EXECUTE_LOOP_OUT_ADDRESS |
---|
| 1421 | // in_EXECUTE_EXECUTE_LOOP_DATA - execute_loop.out_EXECUTE_LOOP_OUT_DATA |
---|
| 1422 | |
---|
| 1423 | // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1424 | // in_INSERT_OOO_ENGINE_VAL - ooo_engine.out_INSERT_VAL |
---|
| 1425 | // out_INSERT_OOO_ENGINE_ACK - ooo_engine. in_INSERT_ACK |
---|
| 1426 | // in_INSERT_OOO_ENGINE_RD_USE - ooo_engine.out_INSERT_RD_USE |
---|
| 1427 | // in_INSERT_OOO_ENGINE_RD_NUM_REG - ooo_engine.out_INSERT_RD_NUM_REG |
---|
| 1428 | // in_INSERT_OOO_ENGINE_RE_USE - ooo_engine.out_INSERT_RE_USE |
---|
| 1429 | // in_INSERT_OOO_ENGINE_RE_NUM_REG - ooo_engine.out_INSERT_RE_NUM_REG |
---|
| 1430 | |
---|
| 1431 | // out_INSERT_EXECUTE_LOOP_VAL - execute_loop. in_INSERT_ROB_VAL |
---|
| 1432 | // in_INSERT_EXECUTE_LOOP_ACK - execute_loop.out_INSERT_ROB_ACK |
---|
| 1433 | // out_INSERT_EXECUTE_LOOP_RD_USE - execute_loop. in_INSERT_ROB_RD_USE |
---|
| 1434 | // out_INSERT_EXECUTE_LOOP_RD_NUM_REG - execute_loop. in_INSERT_ROB_RD_NUM_REG |
---|
| 1435 | // out_INSERT_EXECUTE_LOOP_RE_USE - execute_loop. in_INSERT_ROB_RE_USE |
---|
| 1436 | // out_INSERT_EXECUTE_LOOP_RE_NUM_REG - execute_loop. in_INSERT_ROB_RE_NUM_REG |
---|
| 1437 | |
---|
| 1438 | } |
---|
| 1439 | |
---|
| 1440 | // ~~~~~[ Others ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 1441 | #if DEBUG_Core == true |
---|
| 1442 | _component->test_map(false); |
---|
| 1443 | #endif |
---|
| 1444 | |
---|
| 1445 | #ifdef POSITION |
---|
| 1446 | if (usage_is_set(_usage,USE_POSITION)) |
---|
| 1447 | _component->generate_file(); |
---|
| 1448 | #endif |
---|
| 1449 | |
---|
| 1450 | log_end(Core,FUNCTION); |
---|
| 1451 | }; |
---|
| 1452 | |
---|
| 1453 | }; // end namespace core |
---|
| 1454 | }; // end namespace behavioural |
---|
| 1455 | }; // end namespace morpheo |
---|