Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (15 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/src/Register_translation_unit_Glue.cpp

    r81 r88  
    3939    log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin");
    4040
     41#if DEBUG_Register_translation_unit_Glue == true
     42    log_printf(INFO,Register_translation_unit_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str());
     43
     44    std::cout << *param << std::endl;
     45#endif   
     46
    4147    log_printf(INFO,Register_translation_unit_Glue,FUNCTION,"Allocation");
    4248
     
    4854
    4955#ifdef STATISTICS
    50     if (_usage & USE_STATISTICS)
     56    if (usage_is_set(_usage,USE_STATISTICS))
    5157      {
    5258        log_printf(INFO,Register_translation_unit_Glue,FUNCTION,"Allocation of statistics");
     
    5763
    5864#ifdef VHDL
    59     if (_usage & USE_VHDL)
     65    if (usage_is_set(_usage,USE_VHDL))
    6066      {
    6167        // generate the vhdl
     
    6773
    6874#ifdef SYSTEMC
    69     if (_usage & USE_SYSTEMC)
     75    if (usage_is_set(_usage,USE_SYSTEMC))
    7076      {
    7177        log_printf(INFO,Register_translation_unit_Glue,FUNCTION,"Method - transition");
     
    8389        SC_METHOD (genMealy_retire);
    8490        dont_initialize ();
    85 //      sensitive << (*(in_CLOCK)).neg();
     91//      sensitive << (*(in_CLOCK)).neg(); // don't need internal register
    8692        for (uint32_t i=0; i<_param->_nb_inst_retire; i++)
    8793          sensitive << (*(in_RETIRE_VAL           [i]))
     
    104110# endif   
    105111
    106         log_printf(INFO,Register_translation_unit_Glue,FUNCTION,"Method - genMealy_insert");
    107 
    108         SC_METHOD (genMealy_insert);
    109         dont_initialize ();
    110 //      sensitive << (*(in_CLOCK)).neg();
     112        log_printf(INFO,Register_translation_unit_Glue,FUNCTION,"Method - genMealy_insert_valack");
     113
     114        SC_METHOD (genMealy_insert_valack);
     115        dont_initialize ();
     116//      sensitive << (*(in_CLOCK)).neg(); // don't need internal register
    111117        for (uint32_t i=0; i<_param->_nb_inst_insert; i++)
    112118          sensitive << (*(in_INSERT_RENAME_VAL     [i]))
     
    152158          }
    153159# endif   
     160
     161        log_printf(INFO,Register_translation_unit_Glue,FUNCTION,"Method - genMealy_insert");
     162
     163        SC_METHOD (genMealy_insert);
     164        dont_initialize ();
     165//      sensitive << (*(in_CLOCK)).neg(); // don't need internal register
     166        for (uint32_t i=0; i<_param->_nb_inst_insert; i++)
     167          sensitive << (*(in_INSERT_DEPENDENCY_CHECKING_READ_RA            [i]))
     168                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RA_PHY     [i]))
     169                    << (*(in_INSERT_DEPENDENCY_CHECKING_READ_RB            [i]))
     170                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RB_PHY     [i]))
     171                    << (*(in_INSERT_DEPENDENCY_CHECKING_READ_RC            [i]))
     172                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RC_PHY     [i]))
     173                    << (*(in_INSERT_DEPENDENCY_CHECKING_WRITE_RD           [i]))
     174                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RD_LOG     [i]))
     175                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RD_PHY_OLD [i]))
     176                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RD_PHY_NEW [i]))
     177                    << (*(in_INSERT_DEPENDENCY_CHECKING_WRITE_RE           [i]))
     178                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RE_LOG     [i]))
     179                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RE_PHY_OLD [i]))
     180                    << (*(in_INSERT_DEPENDENCY_CHECKING_NUM_REG_RE_PHY_NEW [i]));
     181       
     182# ifdef SYSTEMCASS_SPECIFIC
     183        // List dependency information
     184# endif   
     185
     186
    154187       
    155188#endif
     
    165198
    166199#ifdef STATISTICS
    167     if (_usage & USE_STATISTICS)
     200    if (usage_is_set(_usage,USE_STATISTICS))
    168201      {
    169202        log_printf(INFO,Register_translation_unit_Glue,FUNCTION,"Generate Statistics file");
Note: See TracChangeset for help on using the changeset viewer.