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_Address_Translation_unit/src/Register_Address_Translation_unit_transition.cpp

    r81 r88  
    2323  void Register_Address_Translation_unit::transition (void)
    2424  {
    25     log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin");
     25    log_begin(Register_Address_Translation_unit,FUNCTION);
     26    log_function(Register_Address_Translation_unit,FUNCTION,_name.c_str());
    2627
    2728    if (PORT_READ(in_NRESET) == 0)
     
    9091                    }
    9192
    92  
    93                   // Test if write and have not a previous update
     93                  // Test if write and have not a previous update
    9494                  if (PORT_READ(in_RETIRE_WRITE_RD [i]) == 1)
    9595                    {
    9696                      Tgeneral_address_t rd_log = PORT_READ(in_RETIRE_NUM_REG_RD_LOG [i]);
    9797                     
    98                       log_printf(NONE,Register_Address_Translation_unit,FUNCTION,"retire[%d]",i);
    99                       log_printf(NONE,Register_Address_Translation_unit,FUNCTION," * front_end_id : %d",front_end_id);
    100                       log_printf(NONE,Register_Address_Translation_unit,FUNCTION," * context_id   : %d",context_id  );
    101                       log_printf(NONE,Register_Address_Translation_unit,FUNCTION," * rd_log       : %d",rd_log      );
     98                      log_printf(TRACE,Register_Address_Translation_unit,FUNCTION,"  * retire[%d]",i);
     99                      log_printf(TRACE,Register_Address_Translation_unit,FUNCTION,"    * front_end_id : %d",front_end_id);
     100                      log_printf(TRACE,Register_Address_Translation_unit,FUNCTION,"    * context_id   : %d",context_id  );
     101                      log_printf(TRACE,Register_Address_Translation_unit,FUNCTION,"    * rd_log       : %d",rd_log      );
    102102                     
     103//                    if (RETIRE_RESTORE_RD_PHY_OLD [i])
    103104                      if (rat_gpr_update_table[front_end_id][context_id][rd_log] == 0)
    104105                        {
     
    112113                      Tspecial_address_t re_log = PORT_READ(in_RETIRE_NUM_REG_RE_LOG [i]);
    113114
     115//                    if (RETIRE_RESTORE_RE_PHY_OLD [i])
    114116                      if (rat_spr_update_table[front_end_id][context_id][re_log] == 0)
    115117                        {
     
    122124      }
    123125
     126#if (DEBUG >= DEBUG_TRACE) and (DEBUG_Register_Address_Translation_unit == true)
     127    log_printf(TRACE,Register_Address_Translation_unit,FUNCTION,"  * Dump RAT (Register_Address_Translation_unit)");
     128    for (uint32_t i=0; i<_param->_nb_front_end; ++i)
     129      for (uint32_t j=0; j<_param->_nb_context[i]; ++j)
     130        {
     131          log_printf(TRACE,Register_Address_Translation_unit,FUNCTION,"    * front_end[%d].context[%d]",i,j);
     132
     133          for (uint32_t k=0; k<_param->_nb_general_register_logic; ++k)
     134            log_printf(TRACE,Register_Address_Translation_unit,FUNCTION,"      * GPR[%.2d] - %.5d %.1d",k,rat_gpr[i][j][k],rat_gpr_update_table[i][j][k]);
     135
     136          for (uint32_t k=0; k<_param->_nb_special_register_logic; ++k)
     137            log_printf(TRACE,Register_Address_Translation_unit,FUNCTION,"      * SPR[%.2d] - %.5d %.1d",k,rat_spr[i][j][k],rat_spr_update_table[i][j][k]);
     138        }
     139#endif
     140
    124141#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    125142    end_cycle ();
    126143#endif
    127144
    128     log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End");
     145    log_end(Register_Address_Translation_unit,FUNCTION);
    129146  };
    130147
Note: See TracChangeset for help on using the changeset viewer.