Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/src/Register_translation_unit_allocation.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/src/Register_translation_unit_allocation.cpp
r82 r88 130 130 { 131 131 name = _name+"_dependency_checking_unit"; 132 std::cout << "Create : " << name << std::endl;133 132 log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); 133 134 134 _component_dependency_checking_unit = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::dependency_checking_unit::Dependency_checking_unit 135 135 (name.c_str() … … 149 149 { 150 150 name = _name+"_free_list_unit"; 151 std::cout << "Create : " << name << std::endl;151 log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); 152 152 153 153 _component_free_list_unit = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::free_list_unit::Free_List_unit … … 168 168 { 169 169 name = _name+"_register_address_translation_unit"; 170 std::cout << "Create : " << name << std::endl;170 log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); 171 171 172 172 _component_register_address_translation_unit = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Register_Address_Translation_unit … … 187 187 { 188 188 name = _name+"_stat_list_unit"; 189 std::cout << "Create : " << name << std::endl;189 log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); 190 190 191 191 _component_stat_list_unit = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::stat_list_unit::Stat_List_unit … … 206 206 { 207 207 name = _name+"_register_translation_unit_glue"; 208 std::cout << "Create : " << name << std::endl;208 log_printf(INFO,Core,FUNCTION,_("Create : %s"),name.c_str()); 209 209 210 210 _component_register_translation_unit_glue = new morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Register_translation_unit_Glue … … 225 225 // ~~~~~[ Instanciation ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 226 226 std::string src,dest; 227 228 // =================================================================== 229 // =====[ register_address_translation_unit ]========================= 230 // =================================================================== 231 { 232 src = _name+"_register_address_translation_unit"; 233 log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); 234 235 { 236 dest = _name; 237 #ifdef POSITION 238 _component->interface_map (src ,"", 239 dest,""); 240 #endif 241 PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK"); 242 PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET"); 243 } 244 245 // ~~~~~[ Interface "rename" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 246 for (uint32_t i=0; i<_param->_nb_inst_insert; i++) 247 { 248 dest = _name; 249 #ifdef POSITION 250 _component->interface_map (src ,"rename_"+toString(i) 251 dest,"rename_"+toString(i)); 252 #endif 253 254 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_VAL" , 255 dest, "in_RENAME_"+toString(i)+"_VAL" ); 256 if (_param->_have_port_front_end_id) 257 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_FRONT_END_ID" , 258 dest, "in_RENAME_"+toString(i)+"_FRONT_END_ID" ); 259 if (_param->_have_port_context_id) 260 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_CONTEXT_ID" , 261 dest, "in_RENAME_"+toString(i)+"_CONTEXT_ID" ); 262 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RA_LOG" , 263 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RA_LOG" ); 264 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RB_LOG" , 265 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RB_LOG" ); 266 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RC_LOG" , 267 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RC_LOG" ); 268 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RD_LOG" , 269 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RD_LOG" ); 270 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RE_LOG" , 271 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RE_LOG" ); 272 273 dest = _name+"_register_translation_unit_glue"; 274 COMPONENT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_ACK", 275 dest, "in_INSERT_"+toString(i)+"_RAT_RENAME_ACK"); 276 277 dest = _name+"_dependency_checking_unit"; 278 COMPONENT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RA_PHY" , 279 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RA_PHY" ); 280 COMPONENT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RB_PHY" , 281 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RB_PHY" ); 282 COMPONENT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RC_PHY" , 283 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RC_PHY" ); 284 COMPONENT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RD_PHY_OLD", 285 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RD_PHY_OLD"); 286 COMPONENT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RE_PHY_OLD", 287 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RE_PHY_OLD"); 288 } 289 290 // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 291 for (uint32_t i=0; i<_param->_nb_inst_insert; i++) 292 { 293 dest = _name+"_register_translation_unit_glue"; 294 #ifdef POSITION 295 _component->interface_map (src ,"rename_"+toString(i) 296 dest,"rename_in_"+toString(i)); 297 #endif 298 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_VAL", 299 dest,"out_INSERT_"+toString(i)+"_RAT_INSERT_VAL"); 300 COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_ACK", 301 dest, "in_INSERT_"+toString(i)+"_RAT_INSERT_ACK"); 302 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_WRITE_RD" , 303 dest,"out_INSERT_"+toString(i)+"_RAT_WRITE_RD" ); 304 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_WRITE_RE" , 305 dest,"out_INSERT_"+toString(i)+"_RAT_WRITE_RE" ); 306 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RD_LOG", 307 dest,"out_INSERT_"+toString(i)+"_RAT_NUM_REG_RD_LOG"); 308 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RE_LOG", 309 dest,"out_INSERT_"+toString(i)+"_RAT_NUM_REG_RE_LOG"); 310 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RD_PHY", 311 dest,"out_INSERT_"+toString(i)+"_RAT_NUM_REG_RD_PHY_NEW"); 312 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RE_PHY", 313 dest,"out_INSERT_"+toString(i)+"_RAT_NUM_REG_RE_PHY_NEW"); 314 } 315 316 // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 317 for (uint32_t i=0; i<_param->_nb_inst_retire; i++) 318 { 319 dest = _name; 320 #ifdef POSITION 321 _component->interface_map (src ,"retire_"+toString(i) 322 dest,"retire_"+toString(i)); 323 #endif 324 325 if (_param->_have_port_front_end_id) 326 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_FRONT_END_ID" , 327 dest, "in_RETIRE_"+toString(i)+"_FRONT_END_ID" ); 328 if (_param->_have_port_context_id) 329 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_CONTEXT_ID" , 330 dest, "in_RETIRE_"+toString(i)+"_CONTEXT_ID" ); 331 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_EVENT_STATE" , 332 dest, "in_RETIRE_"+toString(i)+"_EVENT_STATE" ); 333 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_WRITE_RD" , 334 dest, "in_RETIRE_"+toString(i)+"_WRITE_RD" ); 335 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_WRITE_RE" , 336 dest, "in_RETIRE_"+toString(i)+"_WRITE_RE" ); 337 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_NUM_REG_RD_LOG" , 338 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RD_LOG" ); 339 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_NUM_REG_RE_LOG" , 340 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RE_LOG" ); 341 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_NUM_REG_RD_PHY_OLD", 342 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RD_PHY_OLD"); 343 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_NUM_REG_RE_PHY_OLD", 344 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RE_PHY_OLD"); 345 346 dest = _name+"_register_translation_unit_glue"; 347 COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_VAL" , 348 dest,"out_RETIRE_"+toString(i)+"_RAT_VAL" ); 349 COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_ACK" , 350 dest, "in_RETIRE_"+toString(i)+"_RAT_ACK" ); 351 352 dest = _name+"_stat_list_unit"; 353 COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RESTORE_RD_PHY_OLD", 354 dest, "in_RETIRE_"+toString(i)+"_RESTORE_RD_PHY_OLD"); 355 COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RESTORE_RE_PHY_OLD", 356 dest, "in_RETIRE_"+toString(i)+"_RESTORE_RE_PHY_OLD"); 357 } 358 } 227 359 360 // =================================================================== 361 // =====[ free_list_unit ]============================================ 362 // =================================================================== 363 { 364 src = _name+"_free_list_unit"; 365 log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); 366 367 { 368 dest = _name; 369 #ifdef POSITION 370 _component->interface_map (src ,"", 371 dest,""); 372 #endif 373 PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK"); 374 PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET"); 375 } 376 377 // ~~~~~[ interface : "pop" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 378 for (uint32_t i=0; i<_param->_nb_inst_insert; i++) 379 { 380 dest = _name; 381 #ifdef POSITION 382 _component->interface_map (src ,"pop_"+toString(i) 383 dest,"rename_"+toString(i)); 384 #endif 385 386 PORT_MAP(_component,src , "in_POP_"+toString(i)+"_GPR_VAL" , 387 dest,"in_RENAME_"+toString(i)+"_WRITE_RD"); 388 PORT_MAP(_component,src , "in_POP_"+toString(i)+"_SPR_VAL" , 389 dest,"in_RENAME_"+toString(i)+"_WRITE_RE"); 390 391 dest = _name+"_register_translation_unit_glue"; 392 COMPONENT_MAP(_component,src , "in_POP_"+toString(i)+"_VAL" , 393 dest,"out_INSERT_"+toString(i)+"_FREE_LIST_VAL" ); 394 COMPONENT_MAP(_component,src ,"out_POP_"+toString(i)+"_ACK" , 395 dest, "in_INSERT_"+toString(i)+"_FREE_LIST_ACK" ); 396 397 dest = _name+"_dependency_checking_unit"; 398 399 COMPONENT_MAP(_component,src ,"out_POP_"+toString(i)+"_GPR_NUM_REG", 400 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RD_PHY_NEW"); 401 COMPONENT_MAP(_component,src ,"out_POP_"+toString(i)+"_SPR_NUM_REG", 402 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RE_PHY_NEW"); 403 } 404 405 // ~~~~~[ interface : "push_gpr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 406 // ~~~~~[ interface : "push_spr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 407 for (uint32_t i=0; i<_param->_nb_reg_free; i++) 408 { 409 dest = _name+"_stat_list_unit"; 410 #ifdef POSITION 411 _component->interface_map (src ,"push_gpr_"+toString(i) 412 dest,"push_gpr_"+toString(i)); 413 #endif 414 415 COMPONENT_MAP(_component,src , "in_PUSH_GPR_"+toString(i)+"_VAL" , 416 dest,"out_PUSH_GPR_"+toString(i)+"_VAL" ); 417 COMPONENT_MAP(_component,src ,"out_PUSH_GPR_"+toString(i)+"_ACK" , 418 dest, "in_PUSH_GPR_"+toString(i)+"_ACK" ); 419 COMPONENT_MAP(_component,src , "in_PUSH_GPR_"+toString(i)+"_NUM_REG", 420 dest,"out_PUSH_GPR_"+toString(i)+"_NUM_REG"); 421 422 #ifdef POSITION 423 _component->interface_map (src ,"push_spr_"+toString(i) 424 dest,"push_spr_"+toString(i)); 425 #endif 426 427 COMPONENT_MAP(_component,src , "in_PUSH_SPR_"+toString(i)+"_VAL" , 428 dest,"out_PUSH_SPR_"+toString(i)+"_VAL" ); 429 COMPONENT_MAP(_component,src ,"out_PUSH_SPR_"+toString(i)+"_ACK" , 430 dest, "in_PUSH_SPR_"+toString(i)+"_ACK" ); 431 COMPONENT_MAP(_component,src , "in_PUSH_SPR_"+toString(i)+"_NUM_REG", 432 dest,"out_PUSH_SPR_"+toString(i)+"_NUM_REG"); 433 } 434 } 435 436 228 437 // =================================================================== 229 438 // =====[ dependency_checking_unit ]================================== … … 231 440 { 232 441 src = _name+"_dependency_checking_unit"; 233 std::cout << "Instance : " << src << std::endl;442 log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); 234 443 235 444 { … … 252 461 #endif 253 462 254 // PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_VAL" ,dest,);255 // PORT_MAP(_component,src ,"out_RENAME_IN_"+toString(i)+"_ACK" ,dest,);463 // // PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_VAL" ,dest,); 464 // // PORT_MAP(_component,src ,"out_RENAME_IN_"+toString(i)+"_ACK" ,dest,); 256 465 if (_param->_have_port_front_end_id) 257 466 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_FRONT_END_ID" , … … 280 489 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_NUM_REG_RE_LOG" , 281 490 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RE_LOG" ); 282 283 dest = _name+"_register_address_translation_unit";284 491 285 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_NUM_REG_RA_PHY" , 286 dest,"out_RENAME_"+toString(i)+"_NUM_REG_RA_PHY" ); 287 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_NUM_REG_RB_PHY" , 288 dest,"out_RENAME_"+toString(i)+"_NUM_REG_RB_PHY" ); 289 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_NUM_REG_RC_PHY" , 290 dest,"out_RENAME_"+toString(i)+"_NUM_REG_RC_PHY" ); 291 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_NUM_REG_RD_PHY_OLD", 292 dest,"out_RENAME_"+toString(i)+"_NUM_REG_RD_PHY_OLD"); 293 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_NUM_REG_RE_PHY_OLD", 294 dest,"out_RENAME_"+toString(i)+"_NUM_REG_RE_PHY_OLD"); 492 // in_RENAME_IN_NUM_REG_RA_PHY - register_address_translation_unit 493 // in_RENAME_IN_NUM_REG_RB_PHY - register_address_translation_unit 494 // in_RENAME_IN_NUM_REG_RC_PHY - register_address_translation_unit 495 // in_RENAME_IN_NUM_REG_RD_PHY_OLD - register_address_translation_unit 496 // in_RENAME_IN_NUM_REG_RE_PHY_OLD - register_address_translation_unit 295 497 296 dest = _name+"_free_list_unit"; 297 298 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_NUM_REG_RD_PHY_NEW", 299 dest,"out_POP_"+toString(i)+"_GPR_NUM_REG"); 300 PORT_MAP(_component,src , "in_RENAME_IN_"+toString(i)+"_NUM_REG_RE_PHY_NEW", 301 dest,"out_POP_"+toString(i)+"_SPR_NUM_REG"); 498 // in_RENAME_IN_NUM_REG_RD_PHY_NEW - free_list_unit 499 // in_RENAME_IN_NUM_REG_RE_PHY_NEW - free_list_unit 302 500 } 303 501 … … 311 509 #endif 312 510 313 // PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_VAL" ,314 // dest,"out_INSERT_"+toString(i)+"_VAL" );315 // PORT_MAP(_component,src , "in_RENAME_OUT_"+toString(i)+"_ACK" ,316 // dest, "in_INSERT_"+toString(i)+"_ACK" );317 511 if (_param->_have_port_front_end_id) 318 512 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_FRONT_END_ID" , … … 321 515 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_CONTEXT_ID" , 322 516 dest,"out_INSERT_"+toString(i)+"_CONTEXT_ID" ); 323 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_READ_RA" ,324 dest,"out_INSERT_"+toString(i)+"_READ_RA" );325 517 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RA_LOG" , 326 518 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RA_LOG" ); 327 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RA_PHY" ,328 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RA_PHY" );329 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_READ_RB" ,330 dest,"out_INSERT_"+toString(i)+"_READ_RB" );331 519 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RB_LOG" , 332 520 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RB_LOG" ); 333 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RB_PHY" ,334 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RB_PHY" );335 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_READ_RC" ,336 dest,"out_INSERT_"+toString(i)+"_READ_RC" );337 521 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RC_LOG" , 338 522 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RC_LOG" ); 339 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RC_PHY" , 340 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RC_PHY" ); 341 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_WRITE_RD" , 342 dest,"out_INSERT_"+toString(i)+"_WRITE_RD" ); 343 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_LOG" , 344 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RD_LOG" ); 345 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_PHY_OLD", 346 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RD_PHY_OLD"); 347 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_PHY_NEW", 348 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RD_PHY_NEW"); 349 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_WRITE_RE" , 350 dest,"out_INSERT_"+toString(i)+"_WRITE_RE" ); 351 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_LOG" , 352 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RE_LOG" ); 353 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_PHY_OLD", 354 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RE_PHY_OLD"); 355 PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_PHY_NEW", 356 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RE_PHY_NEW"); 357 } 523 524 // PORT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_VAL" , 525 // dest,"out_INSERT_"+toString(i)+"_VAL" ); 526 // PORT_MAP(_component,src , "in_RENAME_OUT_"+toString(i)+"_ACK" , 527 // dest, "in_INSERT_"+toString(i)+"_ACK" ); 528 529 dest = _name+"_register_translation_unit_glue"; 530 531 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_READ_RA" , 532 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_READ_RA" ); 533 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RA_PHY" , 534 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RA_PHY" ); 535 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_READ_RB" , 536 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_READ_RB" ); 537 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RB_PHY" , 538 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RB_PHY" ); 539 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_READ_RC" , 540 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_READ_RC" ); 541 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RC_PHY" , 542 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RC_PHY" ); 543 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_WRITE_RD" , 544 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_WRITE_RD" ); 545 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_LOG" , 546 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RD_LOG" ); 547 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_PHY_OLD", 548 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RD_PHY_OLD"); 549 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_PHY_NEW", 550 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RD_PHY_NEW"); 551 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_WRITE_RE" , 552 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_WRITE_RE" ); 553 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_LOG" , 554 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RE_LOG" ); 555 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_PHY_OLD", 556 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RE_PHY_OLD"); 557 COMPONENT_MAP(_component,src ,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_PHY_NEW", 558 dest, "in_INSERT_"+toString(i)+"_DEPENDENCY_CHECKING_NUM_REG_RE_PHY_NEW"); 559 } 358 560 } 359 561 360 562 // =================================================================== 361 // =====[ free_list_unit ]============================================563 // =====[ stat_list_unit ]============================================ 362 564 // =================================================================== 363 565 { 364 src = _name+"_ free_list_unit";365 std::cout << "Instance : " << src << std::endl;566 src = _name+"_stat_list_unit"; 567 log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); 366 568 367 569 { … … 375 577 } 376 578 377 // ~~~~~[ interface : "pop" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~378 for (uint32_t i=0; i<_param->_nb_inst_insert; i++)379 {380 dest = _name;381 #ifdef POSITION382 _component->interface_map (src ,"pop_"+toString(i)383 dest,"rename_"+toString(i));384 #endif385 386 PORT_MAP(_component,src , "in_POP_"+toString(i)+"_GPR_VAL" ,387 dest,"in_RENAME_"+toString(i)+"_WRITE_RD");388 PORT_MAP(_component,src , "in_POP_"+toString(i)+"_SPR_VAL" ,389 dest,"in_RENAME_"+toString(i)+"_WRITE_RE");390 391 dest = _name+"_register_translation_unit_glue";392 PORT_MAP(_component,src , "in_POP_"+toString(i)+"_VAL" ,393 dest,"out_INSERT_"+toString(i)+"_FREE_LIST_VAL" );394 PORT_MAP(_component,src ,"out_POP_"+toString(i)+"_ACK" ,395 dest, "in_INSERT_"+toString(i)+"_FREE_LIST_ACK" );396 397 dest = _name+"_dependency_checking_unit";398 399 PORT_MAP(_component,src ,"out_POP_"+toString(i)+"_GPR_NUM_REG",400 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RD_PHY_NEW");401 PORT_MAP(_component,src ,"out_POP_"+toString(i)+"_SPR_NUM_REG",402 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RE_PHY_NEW");403 }404 // ~~~~~[ interface : "push_gpr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~405 // ~~~~~[ interface : "push_spr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~406 for (uint32_t i=0; i<_param->_nb_reg_free; i++)407 {408 dest = _name+"_stat_list_unit";409 #ifdef POSITION410 _component->interface_map (src ,"push_gpr_"+toString(i)411 dest,"push_gpr_"+toString(i));412 #endif413 414 PORT_MAP(_component,src , "in_PUSH_GPR_"+toString(i)+"_VAL" ,415 dest,"out_PUSH_GPR_"+toString(i)+"_VAL" );416 PORT_MAP(_component,src ,"out_PUSH_GPR_"+toString(i)+"_ACK" ,417 dest, "in_PUSH_GPR_"+toString(i)+"_ACK" );418 PORT_MAP(_component,src , "in_PUSH_GPR_"+toString(i)+"_NUM_REG",419 dest,"out_PUSH_GPR_"+toString(i)+"_NUM_REG");420 421 #ifdef POSITION422 _component->interface_map (src ,"push_spr_"+toString(i)423 dest,"push_spr_"+toString(i));424 #endif425 426 PORT_MAP(_component,src , "in_PUSH_SPR_"+toString(i)+"_VAL" ,427 dest,"out_PUSH_SPR_"+toString(i)+"_VAL" );428 PORT_MAP(_component,src ,"out_PUSH_SPR_"+toString(i)+"_ACK" ,429 dest, "in_PUSH_SPR_"+toString(i)+"_ACK" );430 PORT_MAP(_component,src , "in_PUSH_SPR_"+toString(i)+"_NUM_REG",431 dest,"out_PUSH_SPR_"+toString(i)+"_NUM_REG");432 }433 }434 435 // ===================================================================436 // =====[ register_address_translation_unit ]=========================437 // ===================================================================438 {439 src = _name+"_register_address_translation_unit";440 std::cout << "Instance : " << src << std::endl;441 442 {443 dest = _name;444 #ifdef POSITION445 _component->interface_map (src ,"",446 dest,"");447 #endif448 PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK");449 PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET");450 }451 452 // ~~~~~[ Interface "rename" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~453 for (uint32_t i=0; i<_param->_nb_inst_insert; i++)454 {455 dest = _name;456 #ifdef POSITION457 _component->interface_map (src ,"rename_"+toString(i)458 dest,"rename_"+toString(i));459 #endif460 461 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_VAL" ,462 dest, "in_RENAME_"+toString(i)+"_VAL" );463 if (_param->_have_port_front_end_id)464 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_FRONT_END_ID" ,465 dest, "in_RENAME_"+toString(i)+"_FRONT_END_ID" );466 if (_param->_have_port_context_id)467 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_CONTEXT_ID" ,468 dest, "in_RENAME_"+toString(i)+"_CONTEXT_ID" );469 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RA_LOG" ,470 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RA_LOG" );471 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RB_LOG" ,472 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RB_LOG" );473 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RC_LOG" ,474 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RC_LOG" );475 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RD_LOG" ,476 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RD_LOG" );477 PORT_MAP(_component,src , "in_RENAME_"+toString(i)+"_NUM_REG_RE_LOG" ,478 dest, "in_RENAME_"+toString(i)+"_NUM_REG_RE_LOG" );479 480 dest = _name+"_register_translation_unit_glue";481 PORT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_ACK",482 dest, "in_INSERT_"+toString(i)+"_RAT_RENAME_ACK");483 484 dest = _name+"_dependency_checking_unit";485 PORT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RA_PHY" ,486 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RA_PHY" );487 PORT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RB_PHY" ,488 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RB_PHY" );489 PORT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RC_PHY" ,490 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RC_PHY" );491 PORT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RD_PHY_OLD",492 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RD_PHY_OLD");493 PORT_MAP(_component,src ,"out_RENAME_"+toString(i)+"_NUM_REG_RE_PHY_OLD",494 dest, "in_RENAME_IN_"+toString(i)+"_NUM_REG_RE_PHY_OLD");495 }496 497 579 // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 498 580 for (uint32_t i=0; i<_param->_nb_inst_insert; i++) 499 581 { 500 dest = _name+"_dependency_checking_unit";501 #ifdef POSITION502 _component->interface_map (src ,"rename_"+toString(i)503 dest,"rename_in_"+toString(i));504 #endif505 506 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_WRITE_RD" ,507 dest,"out_RENAME_OUT_"+toString(i)+"_WRITE_RD" );508 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_WRITE_RE" ,509 dest,"out_RENAME_OUT_"+toString(i)+"_WRITE_RE" );510 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RD_LOG",511 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_LOG");512 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RE_LOG",513 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_LOG");514 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RD_PHY",515 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_PHY_OLD");516 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RE_PHY",517 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_PHY_OLD");518 519 582 dest = _name+"_register_translation_unit_glue"; 520 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_VAL",521 dest,"out_INSERT_"+toString(i)+"_RAT_INSERT_VAL");522 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_ACK",523 dest, "in_INSERT_"+toString(i)+"_RAT_INSERT_ACK");524 }525 526 // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~527 for (uint32_t i=0; i<_param->_nb_inst_retire; i++)528 {529 dest = _name;530 #ifdef POSITION531 _component->interface_map (src ,"retire_"+toString(i)532 dest,"retire_"+toString(i));533 #endif534 535 if (_param->_have_port_front_end_id)536 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_FRONT_END_ID" ,537 dest, "in_RETIRE_"+toString(i)+"_FRONT_END_ID" );538 if (_param->_have_port_context_id)539 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_CONTEXT_ID" ,540 dest, "in_RETIRE_"+toString(i)+"_CONTEXT_ID" );541 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_EVENT_STATE" ,542 dest, "in_RETIRE_"+toString(i)+"_EVENT_STATE" );543 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_WRITE_RD" ,544 dest, "in_RETIRE_"+toString(i)+"_WRITE_RD" );545 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_WRITE_RE" ,546 dest, "in_RETIRE_"+toString(i)+"_WRITE_RE" );547 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_NUM_REG_RD_LOG" ,548 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RD_LOG" );549 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_NUM_REG_RE_LOG" ,550 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RE_LOG" );551 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_NUM_REG_RD_PHY_OLD",552 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RD_PHY_OLD");553 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_NUM_REG_RE_PHY_OLD",554 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RE_PHY_OLD");555 556 dest = _name+"_register_translation_unit_glue";557 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_VAL" ,558 dest,"out_RETIRE_"+toString(i)+"_RAT_VAL" );559 PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_ACK" ,560 dest, "in_RETIRE_"+toString(i)+"_RAT_ACK" );561 }562 }563 564 // ===================================================================565 // =====[ stat_list_unit ]============================================566 // ===================================================================567 {568 src = _name+"_stat_list_unit";569 std::cout << "Instance : " << src << std::endl;570 571 {572 dest = _name;573 #ifdef POSITION574 _component->interface_map (src ,"",575 dest,"");576 #endif577 PORT_MAP(_component,src , "in_CLOCK" ,dest, "in_CLOCK");578 PORT_MAP(_component,src , "in_NRESET",dest, "in_NRESET");579 }580 581 // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~582 for (uint32_t i=0; i<_param->_nb_inst_insert; i++)583 {584 dest = _name+"_dependency_checking_unit";585 583 #ifdef POSITION 586 584 _component->interface_map (src ,"insert_"+toString(i) 587 dest,"rename_out_"+toString(i)); 588 #endif 589 590 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_READ_RA" , 591 dest,"out_RENAME_OUT_"+toString(i)+"_READ_RA" ); 592 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RA_PHY" , 593 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RA_PHY" ); 594 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_READ_RB" , 595 dest,"out_RENAME_OUT_"+toString(i)+"_READ_RB" ); 596 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RB_PHY" , 597 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RB_PHY" ); 598 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_READ_RC" , 599 dest,"out_RENAME_OUT_"+toString(i)+"_READ_RC" ); 600 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RC_PHY" , 601 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RC_PHY" ); 602 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_WRITE_RD" , 603 dest,"out_RENAME_OUT_"+toString(i)+"_WRITE_RD" ); 604 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RD_PHY_NEW", 605 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RD_PHY_NEW"); 606 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_WRITE_RE" , 607 dest,"out_RENAME_OUT_"+toString(i)+"_WRITE_RE" ); 608 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RE_PHY_NEW", 609 dest,"out_RENAME_OUT_"+toString(i)+"_NUM_REG_RE_PHY_NEW"); 610 611 dest = _name+"_register_translation_unit_glue"; 612 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_VAL" , 613 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_VAL"); 614 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_ACK" , 615 dest, "in_INSERT_"+toString(i)+"_STAT_LIST_ACK" ); 585 dest,"insert_stat_list_"+toString(i)); 586 #endif 587 588 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_VAL" , 589 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_VAL"); 590 COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_ACK" , 591 dest, "in_INSERT_"+toString(i)+"_STAT_LIST_ACK" ); 592 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_READ_RA" , 593 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_READ_RA" ); 594 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RA_PHY" , 595 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_NUM_REG_RA_PHY" ); 596 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_READ_RB" , 597 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_READ_RB" ); 598 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RB_PHY" , 599 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_NUM_REG_RB_PHY" ); 600 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_READ_RC" , 601 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_READ_RC" ); 602 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RC_PHY" , 603 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_NUM_REG_RC_PHY" ); 604 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_WRITE_RD" , 605 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_WRITE_RD" ); 606 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RD_PHY_NEW", 607 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_NUM_REG_RD_PHY_NEW"); 608 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_WRITE_RE" , 609 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_WRITE_RE" ); 610 COMPONENT_MAP(_component,src , "in_INSERT_"+toString(i)+"_NUM_REG_RE_PHY_NEW", 611 dest,"out_INSERT_"+toString(i)+"_STAT_LIST_NUM_REG_RE_PHY_NEW"); 616 612 } 617 613 … … 650 646 dest, "in_RETIRE_"+toString(i)+"_NUM_REG_RE_PHY_NEW"); 651 647 648 // in_RETIRE_RESTORE_RD_PHY_OLD - register_address_translation_unit.out_RETIRE_RESTORE_RD_PHY_OLD 649 // in_RETIRE_RESTORE_RE_PHY_OLD - register_address_translation_unit.out_RETIRE_RESTORE_RE_PHY_OLD 650 652 651 dest = _name+"_register_translation_unit_glue"; 653 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_VAL",654 dest,"out_RETIRE_"+toString(i)+"_STAT_LIST_VAL");655 PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_ACK",656 652 COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_VAL", 653 dest,"out_RETIRE_"+toString(i)+"_STAT_LIST_VAL"); 654 COMPONENT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_ACK", 655 dest, "in_RETIRE_"+toString(i)+"_STAT_LIST_ACK"); 657 656 } 658 657 … … 667 666 #endif 668 667 669 PORT_MAP(_component,src ,"out_PUSH_GPR_"+toString(i)+"_VAL" , 670 dest, "in_PUSH_GPR_"+toString(i)+"_VAL" ); 671 PORT_MAP(_component,src , "in_PUSH_GPR_"+toString(i)+"_ACK" , 672 dest,"out_PUSH_GPR_"+toString(i)+"_ACK" ); 673 PORT_MAP(_component,src ,"out_PUSH_GPR_"+toString(i)+"_NUM_REG", 674 dest, "in_PUSH_GPR_"+toString(i)+"_NUM_REG"); 668 //out_PUSH_GPR_VAL - free_list_unit 669 // in_PUSH_GPR_ACK - free_list_unit 670 //out_PUSH_GPR_NUM_REG - free_list_unit 675 671 676 672 #ifdef POSITION … … 679 675 #endif 680 676 681 PORT_MAP(_component,src ,"out_PUSH_SPR_"+toString(i)+"_VAL" , 682 dest, "in_PUSH_SPR_"+toString(i)+"_VAL" ); 683 PORT_MAP(_component,src , "in_PUSH_SPR_"+toString(i)+"_ACK" , 684 dest,"out_PUSH_SPR_"+toString(i)+"_ACK" ); 685 PORT_MAP(_component,src ,"out_PUSH_SPR_"+toString(i)+"_NUM_REG", 686 dest, "in_PUSH_SPR_"+toString(i)+"_NUM_REG"); 677 //out_PUSH_SPR_VAL - free_list_unit 678 // in_PUSH_SPR_ACK - free_list_unit 679 //out_PUSH_SPR_NUM_REG - free_list_unit 687 680 } 688 681 } … … 693 686 { 694 687 src = _name+"_register_translation_unit_glue"; 695 std::cout << "Instance : " << src << std::endl;688 log_printf(INFO,Core,FUNCTION,_("Instance : %s"),src.c_str()); 696 689 697 690 { … … 723 716 dest, "in_INSERT_"+toString(i)+"_ACK" ); 724 717 725 dest = _name+"_register_address_translation_unit"; 726 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_RAT_INSERT_VAL", 727 dest, "in_INSERT_"+toString(i)+"_VAL"); 728 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_RAT_RENAME_ACK", 729 dest,"out_RENAME_"+toString(i)+"_ACK"); 730 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_RAT_INSERT_ACK", 731 dest,"out_INSERT_"+toString(i)+"_ACK"); 732 733 dest = _name+"_free_list_unit"; 734 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_FREE_LIST_VAL" , 735 dest, "in_POP_"+toString(i)+"_VAL" ); 736 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_FREE_LIST_ACK" , 737 dest,"out_POP_"+toString(i)+"_ACK" ); 738 739 dest = _name+"_stat_list_unit"; 740 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_STAT_LIST_VAL" , 741 dest, "in_INSERT_"+toString(i)+"_VAL" ); 742 PORT_MAP(_component,src , "in_INSERT_"+toString(i)+"_STAT_LIST_ACK" , 743 dest,"out_INSERT_"+toString(i)+"_ACK" ); 718 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_READ_RA" , 719 dest,"out_INSERT_"+toString(i)+"_READ_RA" ); 720 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RA_PHY" , 721 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RA_PHY" ); 722 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_READ_RB" , 723 dest,"out_INSERT_"+toString(i)+"_READ_RB" ); 724 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RB_PHY" , 725 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RB_PHY" ); 726 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_READ_RC" , 727 dest,"out_INSERT_"+toString(i)+"_READ_RC" ); 728 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RC_PHY" , 729 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RC_PHY" ); 730 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_WRITE_RD" , 731 dest,"out_INSERT_"+toString(i)+"_WRITE_RD" ); 732 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RD_LOG" , 733 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RD_LOG" ); 734 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RD_PHY_OLD", 735 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RD_PHY_OLD"); 736 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RD_PHY_NEW", 737 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RD_PHY_NEW"); 738 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_WRITE_RE" , 739 dest,"out_INSERT_"+toString(i)+"_WRITE_RE" ); 740 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RE_LOG" , 741 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RE_LOG" ); 742 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RE_PHY_OLD", 743 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RE_PHY_OLD"); 744 PORT_MAP(_component,src ,"out_INSERT_"+toString(i)+"_NUM_REG_RE_PHY_NEW", 745 dest,"out_INSERT_"+toString(i)+"_NUM_REG_RE_PHY_NEW"); 746 747 // out_INSERT_RAT_INSERT_VAL - register_address_translation_unit 748 // in_INSERT_RAT_RENAME_ACK - register_address_translation_unit 749 // in_INSERT_RAT_INSERT_ACK - register_address_translation_unit 750 // out_INSERT_FREE_LIST_VAL - free_list_unit 751 // in_INSERT_FREE_LIST_ACK - free_list_unit 752 // out_INSERT_STAT_LIST_VAL - stat_list_unit 753 // in_INSERT_STAT_LIST_ACK - stat_list_unit 754 755 // in_INSERT_DEPENDENCY_CHECKING_READ_RA - dependency_checking_unit 756 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RA_PHY - dependency_checking_unit 757 // in_INSERT_DEPENDENCY_CHECKING_READ_RB - dependency_checking_unit 758 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RB_PHY - dependency_checking_unit 759 // in_INSERT_DEPENDENCY_CHECKING_READ_RC - dependency_checking_unit 760 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RC_PHY - dependency_checking_unit 761 // in_INSERT_DEPENDENCY_CHECKING_WRITE_RD - dependency_checking_unit 762 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RD_LOG - dependency_checking_unit 763 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RD_PHY_OLD - dependency_checking_unit 764 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RD_PHY_NEW - dependency_checking_unit 765 // in_INSERT_DEPENDENCY_CHECKING_WRITE_RE - dependency_checking_unit 766 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RE_LOG - dependency_checking_unit 767 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RE_PHY_OLD - dependency_checking_unit 768 // in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RE_PHY_NEW - dependency_checking_unit 769 770 // out_INSERT_STAT_LIST_READ_RA - stat_list_unit 771 // out_INSERT_STAT_LIST_NUM_REG_RA_PHY - stat_list_unit 772 // out_INSERT_STAT_LIST_READ_RB - stat_list_unit 773 // out_INSERT_STAT_LIST_NUM_REG_RB_PHY - stat_list_unit 774 // out_INSERT_STAT_LIST_READ_RC - stat_list_unit 775 // out_INSERT_STAT_LIST_NUM_REG_RC_PHY - stat_list_unit 776 // out_INSERT_STAT_LIST_WRITE_RD - stat_list_unit 777 // out_INSERT_STAT_LIST_NUM_REG_RD_PHY_NEW - stat_list_unit 778 // out_INSERT_STAT_LIST_WRITE_RE - stat_list_unit 779 // out_INSERT_STAT_LIST_NUM_REG_RE_PHY_NEW - stat_list_unit 780 781 // out_INSERT_RAT_WRITE_RD - register_address_translation_unit 782 // out_INSERT_RAT_NUM_REG_RD_LOG - register_address_translation_unit 783 // out_INSERT_RAT_NUM_REG_RD_PHY_NEW - register_address_translation_unit 784 // out_INSERT_RAT_WRITE_RE - register_address_translation_unit 785 // out_INSERT_RAT_NUM_REG_RE_LOG - register_address_translation_unit 786 // out_INSERT_RAT_NUM_REG_RE_PHY_NEW - register_address_translation_unit 744 787 } 745 788 … … 758 801 dest,"out_RETIRE_"+toString(i)+"_ACK" ); 759 802 760 dest = _name+"_register_address_translation_unit"; 761 PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_RAT_VAL" , 762 dest, "in_RETIRE_"+toString(i)+"_VAL" ); 763 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_RAT_ACK" , 764 dest,"out_RETIRE_"+toString(i)+"_ACK" ); 765 766 dest = _name+"_stat_list_unit"; 767 PORT_MAP(_component,src ,"out_RETIRE_"+toString(i)+"_STAT_LIST_VAL", 768 dest, "in_RETIRE_"+toString(i)+"_VAL"); 769 PORT_MAP(_component,src , "in_RETIRE_"+toString(i)+"_STAT_LIST_ACK", 770 dest,"out_RETIRE_"+toString(i)+"_ACK"); 803 // out_RETIRE_RAT_VAL - register_address_translation_unit 804 // in_RETIRE_RAT_ACK - register_address_translation_unit 805 // out_RETIRE_STAT_LIST_VAL - stat_list_unit 806 // in_RETIRE_STAT_LIST_ACK - stat_list_unit 771 807 } 772 808 } … … 774 810 775 811 // ~~~~~[ Others ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 776 _component->test_map(); 777 778 #ifdef POSITION 779 _component->generate_file(); 812 #if (DEBUG_Register_translation_unit == true) 813 _component->test_map(); 814 #endif 815 816 #ifdef POSITION 817 if (usage_is_set(_usage,USE_POSITION)) 818 _component->generate_file(); 780 819 #endif 781 820
Note: See TracChangeset
for help on using the changeset viewer.