Changeset 136 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue.cpp
- Timestamp:
- Oct 20, 2009, 8:52:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue.cpp
r132 r136 36 36 ,_usage (usage) 37 37 { 38 log_printf(FUNC,Register_unit_Glue,FUNCTION, "Begin");38 log_printf(FUNC,Register_unit_Glue,FUNCTION,_("<%s> Begin"),_name.c_str()); 39 39 40 40 // #if DEBUG_Register_unit_Glue == true … … 44 44 // #endif 45 45 46 log_printf(INFO,Register_unit_Glue,FUNCTION, "Allocation");46 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Allocation"),_name.c_str()); 47 47 allocation (); 48 48 … … 50 50 if (usage_is_set(_usage,USE_STATISTICS)) 51 51 { 52 log_printf(INFO,Register_unit_Glue,FUNCTION, "Allocation of statistics");52 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Allocation of statistics"),_name.c_str()); 53 53 54 54 // Allocation of statistics … … 61 61 { 62 62 // generate the vhdl 63 log_printf(INFO,Register_unit_Glue,FUNCTION, "Generate the vhdl");63 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Generate the vhdl"),_name.c_str()); 64 64 65 65 vhdl(); … … 73 73 constant(); 74 74 #else 75 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - constant");75 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - constant"),_name.c_str()); 76 76 77 77 SC_METHOD (constant); … … 83 83 #endif 84 84 85 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - transition");85 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - transition"),_name.c_str()); 86 86 87 87 SC_METHOD (transition); … … 93 93 #endif 94 94 95 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_gpr_read");95 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_gpr_read"),_name.c_str()); 96 96 97 97 SC_METHOD (genMealy_gpr_read); … … 131 131 #endif 132 132 133 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_gpr_read_status");133 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_gpr_read_status"),_name.c_str()); 134 134 135 135 SC_METHOD (genMealy_gpr_read_status); … … 161 161 #endif 162 162 163 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_gpr_read_registerfile");163 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_gpr_read_registerfile"),_name.c_str()); 164 164 165 165 SC_METHOD (genMealy_gpr_read_registerfile); … … 191 191 #endif 192 192 193 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_gpr_write");193 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_gpr_write"),_name.c_str()); 194 194 195 195 SC_METHOD (genMealy_gpr_write); … … 222 222 #endif 223 223 224 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_gpr_write_status");224 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_gpr_write_status"),_name.c_str()); 225 225 226 226 SC_METHOD (genMealy_gpr_write_status); … … 252 252 #endif 253 253 254 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_gpr_write_registerfile");254 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_gpr_write_registerfile"),_name.c_str()); 255 255 256 256 SC_METHOD (genMealy_gpr_write_registerfile); … … 282 282 #endif 283 283 284 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_spr_read");284 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_spr_read"),_name.c_str()); 285 285 286 286 SC_METHOD (genMealy_spr_read); … … 320 320 #endif 321 321 322 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_spr_read_status");322 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_spr_read_status"),_name.c_str()); 323 323 324 324 SC_METHOD (genMealy_spr_read_status); … … 350 350 #endif 351 351 352 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_spr_read_registerfile");352 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_spr_read_registerfile"),_name.c_str()); 353 353 354 354 SC_METHOD (genMealy_spr_read_registerfile); … … 380 380 #endif 381 381 382 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_spr_write");382 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_spr_write"),_name.c_str()); 383 383 384 384 SC_METHOD (genMealy_spr_write); … … 411 411 #endif 412 412 413 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_spr_write_status");413 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_spr_write_status"),_name.c_str()); 414 414 415 415 SC_METHOD (genMealy_spr_write_status); … … 441 441 #endif 442 442 443 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_spr_write_registerfile");443 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_spr_write_registerfile"),_name.c_str()); 444 444 445 445 SC_METHOD (genMealy_spr_write_registerfile); … … 471 471 #endif 472 472 473 log_printf(INFO,Register_unit_Glue,FUNCTION, "Method - genMealy_insert");473 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_insert"),_name.c_str()); 474 474 475 475 SC_METHOD (genMealy_insert); … … 477 477 // sensitive << (*(in_CLOCK)).neg(); 478 478 sensitive << (*(in_NRESET)); 479 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 480 { 481 uint32_t x=_param->_nb_inst_insert_rob [i]; 482 for (uint32_t j=0; j<x; j++) 483 sensitive << *( in_INSERT_ROB_VAL [i][j]) 484 << *( in_INSERT_ROB_RD_USE [i][j]) 485 << *( in_INSERT_ROB_RE_USE [i][j]) 486 << *( in_INSERT_ROB_GPR_STATUS_ACK [i][j]) 487 << *( in_INSERT_ROB_SPR_STATUS_ACK [i][j]); 488 } 489 #ifdef SYSTEMCASS_SPECIFIC 490 // List dependency information 491 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 492 { 493 uint32_t x=_param->_nb_inst_insert_rob [i]; 494 for (uint32_t j=0; j<x; j++) 495 { 496 (*(out_INSERT_ROB_ACK [i][j]))(*( in_INSERT_ROB_GPR_STATUS_ACK [i][j])); 497 (*(out_INSERT_ROB_ACK [i][j]))(*( in_INSERT_ROB_SPR_STATUS_ACK [i][j])); 498 499 (*(out_INSERT_ROB_GPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_VAL [i][j])); 500 (*(out_INSERT_ROB_GPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_RD_USE [i][j])); 501 (*(out_INSERT_ROB_GPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_SPR_STATUS_ACK [i][j])); 502 503 (*(out_INSERT_ROB_SPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_VAL [i][j])); 504 (*(out_INSERT_ROB_SPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_RE_USE [i][j])); 505 (*(out_INSERT_ROB_SPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_GPR_STATUS_ACK [i][j])); 506 } 507 } 508 #endif 509 510 // log_printf(INFO,Register_unit_Glue,FUNCTION,"Method - genMealy_retire"); 479 for (uint32_t i=0; i<_param->_nb_inst_issue; i++) 480 { 481 sensitive << *( in_ISSUE_VAL [i]) 482 << *( in_ISSUE_RD_USE [i]) 483 << *( in_ISSUE_RE_USE [i]); 484 485 if (_param->_have_port_ooo_engine_id == true) 486 sensitive << *( in_ISSUE_OOO_ENGINE_ID [i]); 487 488 for (uint32_t j=0; j<_param->_nb_ooo_engine; ++j) 489 sensitive << *( in_ISSUE_GPR_STATUS_ACK [j][i]) 490 << *( in_ISSUE_SPR_STATUS_ACK [j][i]); 491 } 492 493 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 494 // { 495 // uint32_t x=_param->_nb_inst_insert_rob [i]; 496 // for (uint32_t j=0; j<x; j++) 497 // sensitive << *( in_INSERT_ROB_VAL [i][j]) 498 // << *( in_INSERT_ROB_RD_USE [i][j]) 499 // << *( in_INSERT_ROB_RE_USE [i][j]) 500 // << *( in_INSERT_ROB_GPR_STATUS_ACK [i][j]) 501 // << *( in_INSERT_ROB_SPR_STATUS_ACK [i][j]); 502 // } 503 #ifdef SYSTEMCASS_SPECIFIC 504 // // List dependency information 505 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 506 // { 507 // uint32_t x=_param->_nb_inst_insert_rob [i]; 508 // for (uint32_t j=0; j<x; j++) 509 // { 510 // (*(out_INSERT_ROB_ACK [i][j]))(*( in_INSERT_ROB_GPR_STATUS_ACK [i][j])); 511 // (*(out_INSERT_ROB_ACK [i][j]))(*( in_INSERT_ROB_SPR_STATUS_ACK [i][j])); 512 513 // (*(out_INSERT_ROB_GPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_VAL [i][j])); 514 // (*(out_INSERT_ROB_GPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_RD_USE [i][j])); 515 // (*(out_INSERT_ROB_GPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_SPR_STATUS_ACK [i][j])); 516 517 // (*(out_INSERT_ROB_SPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_VAL [i][j])); 518 // (*(out_INSERT_ROB_SPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_RE_USE [i][j])); 519 // (*(out_INSERT_ROB_SPR_STATUS_VAL [i][j]))(*( in_INSERT_ROB_GPR_STATUS_ACK [i][j])); 520 // } 521 // } 522 #endif 523 524 // log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - genMealy_retire"),_name.c_str()); 511 525 512 526 // SC_METHOD (genMealy_retire); … … 567 581 } 568 582 #endif 569 log_printf(FUNC,Register_unit_Glue,FUNCTION, "End");583 log_printf(FUNC,Register_unit_Glue,FUNCTION,_("<%s> End"),_name.c_str()); 570 584 }; 571 585 … … 574 588 Register_unit_Glue::~Register_unit_Glue (void) 575 589 { 576 log_printf(FUNC,Register_unit_Glue,FUNCTION, "Begin");590 log_printf(FUNC,Register_unit_Glue,FUNCTION,_("<%s> Begin"),_name.c_str()); 577 591 578 592 #ifdef STATISTICS 579 593 if (usage_is_set(_usage,USE_STATISTICS)) 580 594 { 581 log_printf(INFO,Register_unit_Glue,FUNCTION, "Generate Statistics file");595 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Generate Statistics file"),_name.c_str()); 582 596 583 597 delete _stat; … … 585 599 #endif 586 600 587 log_printf(INFO,Register_unit_Glue,FUNCTION, "Deallocation");601 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Deallocation"),_name.c_str()); 588 602 deallocation (); 589 603 590 log_printf(FUNC,Register_unit_Glue,FUNCTION, "End");604 log_printf(FUNC,Register_unit_Glue,FUNCTION,_("<%s> End"),_name.c_str()); 591 605 }; 592 606
Note: See TracChangeset
for help on using the changeset viewer.