Ignore:
Timestamp:
Jun 8, 2009, 10:43:30 PM (15 years ago)
Author:
rosiere
Message:

1) Fix performance
2) add auto generation to SPECINT2000
3) add reset in genMoore and genMealy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Decod_genMealy.cpp

    r120 r123  
    2525    log_function(Decod,FUNCTION,_name.c_str());
    2626
     27    if (PORT_READ(in_NRESET))
     28      {
    2729    //-----------------------------------
    2830    // Initialization
     
    280282#endif
    281283      }
     284      }
     285    else
     286      {
     287    for (uint32_t i=0; i<_param->_nb_context; i++)
     288      {
     289        internal_CONTEXT_HAVE_TRANSACTION [i] = false;
     290//      internal_CONTEXT_ADDRESS_PREVIOUS [i] = reg_CONTEXT_ADDRESS_PREVIOUS [i];
     291//      internal_CONTEXT_IS_DELAY_SLOT    [i] = reg_CONTEXT_IS_DELAY_SLOT    [i];
     292      for (uint32_t j=0; j<_param->_nb_inst_fetch[i]; j++)
     293        PORT_WRITE(out_IFETCH_ACK [i][j], 0);
     294      }
     295
     296    PORT_WRITE(out_CONTEXT_EVENT_VAL, 0);
     297
     298    for (uint32_t i=0; i<_param->_nb_inst_decod; i++)
     299      {
     300        PORT_WRITE(out_PREDICT_VAL [i], 0);
     301        PORT_WRITE(out_DECOD_VAL   [i], 0);
     302
     303#ifdef STATISTICS
     304        internal_DECOD_VAL [i] = 0;
     305#endif
     306      }
     307      }
    282308
    283309    log_end(Decod,FUNCTION);
Note: See TracChangeset for help on using the changeset viewer.