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/Generic/Queue/src/Queue_genMoore.cpp

    r101 r123  
    2020    log_printf(FUNC,Queue,FUNCTION,"Begin");
    2121
     22    if (PORT_READ(in_NRESET))
     23      {
    2224    //---------------------------------------------
    2325    // Output
     
    2628    internal_RETIRE_VAL = not _queue_control->empty();
    2729   
    28     PORT_WRITE(out_INSERT_ACK , internal_INSERT_ACK);
    29     PORT_WRITE(out_RETIRE_VAL , internal_RETIRE_VAL);
    3030    PORT_WRITE(out_RETIRE_DATA,_queue_data[(*_queue_control)[0]]);
    3131
     
    4949    if (_param->_have_port_ptr_read )
    5050    PORT_WRITE(out_PTR_READ , _queue_control->ptr_pop ());
     51      }
     52    else
     53      {
     54        // Reset
     55        internal_INSERT_ACK = 0;
     56        internal_RETIRE_VAL = 0;
     57
     58        for (uint32_t i=0; i<_param->_nb_port_slot; ++i)
     59          PORT_WRITE(out_SLOT_VAL  [i], 0);
     60      }
     61
     62    // Write output
     63    PORT_WRITE(out_INSERT_ACK , internal_INSERT_ACK);
     64    PORT_WRITE(out_RETIRE_VAL , internal_RETIRE_VAL);
     65
    5166
    5267    log_printf(FUNC,Queue,FUNCTION,"End");
Note: See TracChangeset for help on using the changeset viewer.