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_queue/src/Decod_queue_function_multi_fifo_genMoore.cpp

    r111 r123  
    2525    log_function(Decod_queue,FUNCTION,_name.c_str());
    2626
     27    if (PORT_READ(in_NRESET))
     28      {
    2729    //--------------------------------------------------------------------
    2830    //-----[ DECOD_IN ]---------------------------------------------------
     
    3436        {
    3537          internal_DECOD_IN_ACK [i] = (reg_QUEUE[num_bank].size() < _param->_size_queue);
    36           PORT_WRITE(out_DECOD_IN_ACK [i],internal_DECOD_IN_ACK [i]);
    3738
    3839          num_bank = (num_bank+1)%_param->_nb_bank;
     
    5758                PORT_WRITE(out_DECOD_OUT_OPERATION     [i],reg_QUEUE[num_bank].front()->_operation     [0]);
    5859                PORT_WRITE(out_DECOD_OUT_NO_EXECUTE    [i],reg_QUEUE[num_bank].front()->_no_execute    [0]);
     60//              PORT_WRITE(out_DECOD_OUT_HAVE_EVENT    [i],0);
     61                PORT_WRITE(out_DECOD_OUT_LAST_EVENT    [i],0);
    5962                PORT_WRITE(out_DECOD_OUT_IS_DELAY_SLOT [i],reg_QUEUE[num_bank].front()->_is_delay_slot [0]);
    6063#ifdef DEBUG
     
    8689    for (uint32_t i=0; i<_param->_nb_context; i++)
    8790      PORT_WRITE(out_NB_INST_ALL [i], reg_NB_INST [i]);
     91      }
     92    else
     93      {
     94        for (uint32_t i=0; i<_param->_nb_inst_decod; i++)
     95          {
     96            internal_DECOD_IN_ACK [i] = 0;
     97          }
     98        for (uint32_t i=0; i<_param->_nb_context; i++)
     99          PORT_WRITE(out_NB_INST_ALL [i], 0);
     100      }
     101
     102
     103    // Write output
     104    for (uint32_t i=0; i<_param->_nb_inst_decod; i++)
     105      {
     106        PORT_WRITE(out_DECOD_IN_ACK [i],internal_DECOD_IN_ACK [i]);
     107      }
     108
    88109
    89110    log_end(Decod_queue,FUNCTION);
Note: See TracChangeset for help on using the changeset viewer.