Ignore:
Timestamp:
Oct 20, 2009, 8:52:15 PM (15 years ago)
Author:
rosiere
Message:

1) Add new algo in ifetch queue
2) Add Cancel bit
3) new config

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  
    3636    ,_usage            (usage)
    3737  {
    38     log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
     38    log_printf(FUNC,Register_unit_Glue,FUNCTION,_("<%s> Begin"),_name.c_str());
    3939
    4040// #if DEBUG_Register_unit_Glue == true
     
    4444// #endif   
    4545
    46     log_printf(INFO,Register_unit_Glue,FUNCTION,"Allocation");
     46    log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Allocation"),_name.c_str());
    4747    allocation ();
    4848
     
    5050    if (usage_is_set(_usage,USE_STATISTICS))
    5151      {
    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());
    5353       
    5454        // Allocation of statistics
     
    6161      {
    6262        // 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());
    6464       
    6565        vhdl();
     
    7373        constant();
    7474#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());
    7676
    7777    SC_METHOD (constant);
     
    8383#endif
    8484
    85     log_printf(INFO,Register_unit_Glue,FUNCTION,"Method - transition");
     85    log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Method - transition"),_name.c_str());
    8686
    8787    SC_METHOD (transition);
     
    9393#endif   
    9494
    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());
    9696
    9797    SC_METHOD (genMealy_gpr_read);
     
    131131#endif   
    132132
    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());
    134134
    135135    SC_METHOD (genMealy_gpr_read_status);
     
    161161#endif   
    162162
    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());
    164164
    165165    SC_METHOD (genMealy_gpr_read_registerfile);
     
    191191#endif   
    192192
    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());
    194194
    195195    SC_METHOD (genMealy_gpr_write);
     
    222222#endif   
    223223
    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());
    225225
    226226    SC_METHOD (genMealy_gpr_write_status);
     
    252252#endif   
    253253
    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());
    255255
    256256    SC_METHOD (genMealy_gpr_write_registerfile);
     
    282282#endif   
    283283
    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());
    285285
    286286    SC_METHOD (genMealy_spr_read);
     
    320320#endif   
    321321
    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());
    323323
    324324    SC_METHOD (genMealy_spr_read_status);
     
    350350#endif   
    351351
    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());
    353353
    354354    SC_METHOD (genMealy_spr_read_registerfile);
     
    380380#endif   
    381381
    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());
    383383
    384384    SC_METHOD (genMealy_spr_write);
     
    411411#endif   
    412412
    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());
    414414
    415415    SC_METHOD (genMealy_spr_write_status);
     
    441441#endif   
    442442
    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());
    444444
    445445    SC_METHOD (genMealy_spr_write_registerfile);
     
    471471#endif   
    472472
    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());
    474474
    475475    SC_METHOD (genMealy_insert);
     
    477477//     sensitive << (*(in_CLOCK)).neg();
    478478    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());
    511525
    512526//     SC_METHOD (genMealy_retire);
     
    567581      }
    568582#endif
    569     log_printf(FUNC,Register_unit_Glue,FUNCTION,"End");
     583    log_printf(FUNC,Register_unit_Glue,FUNCTION,_("<%s> End"),_name.c_str());
    570584  };
    571585 
     
    574588  Register_unit_Glue::~Register_unit_Glue (void)
    575589  {
    576     log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
     590    log_printf(FUNC,Register_unit_Glue,FUNCTION,_("<%s> Begin"),_name.c_str());
    577591
    578592#ifdef STATISTICS
    579593    if (usage_is_set(_usage,USE_STATISTICS))
    580594      {
    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());
    582596       
    583597        delete _stat;
     
    585599#endif
    586600
    587     log_printf(INFO,Register_unit_Glue,FUNCTION,"Deallocation");
     601    log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Deallocation"),_name.c_str());
    588602    deallocation ();
    589603
    590     log_printf(FUNC,Register_unit_Glue,FUNCTION,"End");
     604    log_printf(FUNC,Register_unit_Glue,FUNCTION,_("<%s> End"),_name.c_str());
    591605  };
    592606
Note: See TracChangeset for help on using the changeset viewer.