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/Core_Glue/src/Core_Glue_genMealy_issue.cpp

    r122 r123  
    6464    Tcontrol_t ISSUE_OOO_ENGINE_ACK   [_param->_nb_ooo_engine  ][_param->_max_nb_inst_issue_queue];
    6565    Tcontrol_t ISSUE_EXECUTE_LOOP_VAL [_param->_nb_execute_loop][_param->_max_nb_read_unit];
     66
     67    for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i)
     68      for (uint32_t j=0; j<_param->_nb_inst_issue_queue[i]; ++j)
     69        ISSUE_OOO_ENGINE_ACK [i][j] = 0;
     70    for (uint32_t i=0; i<_param->_nb_execute_loop; ++i)
     71      for (uint32_t j=0; j<_param->_nb_read_unit[i]; ++j)
     72        ISSUE_EXECUTE_LOOP_VAL [i][j] = 0;
     73   
     74    if (PORT_READ(in_NRESET))
     75      {
    6676    Tcontrol_t READ_UNIT_ENABLE       [_param->_nb_execute_loop][_param->_max_nb_read_unit];
    6777    Tcontrol_t SLOT_ENABLE            [_param->_nb_ooo_engine  ][_param->_max_nb_inst_issue_slot];
     
    6979    // Init -> all at 0
    7080    for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i)
    71       {
    72         for (uint32_t j=0; j<_param->_nb_inst_issue_queue[i]; ++j)
    73           ISSUE_OOO_ENGINE_ACK [i][j] = 0;
    74         for (uint32_t j=0; j<_param->_nb_inst_issue_slot[i]; ++j)
    75           SLOT_ENABLE [i][j] = 1;         
    76       }
     81      for (uint32_t j=0; j<_param->_nb_inst_issue_slot[i]; ++j)
     82        SLOT_ENABLE [i][j] = 1;         
    7783
    7884    for (uint32_t i=0; i<_param->_nb_execute_loop; ++i)
    7985      for (uint32_t j=0; j<_param->_nb_read_unit[i]; ++j)
    8086        {
    81           ISSUE_EXECUTE_LOOP_VAL [i][j] = 0;
    82 
    8387          // Read unit is enable is signal ack is set
    8488          READ_UNIT_ENABLE       [i][j] = (PORT_READ(in_ISSUE_EXECUTE_LOOP_ACK [i][j]) == 1);
     
    236240      }
    237241
     242      }
     243
    238244    // Write output
    239245    for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i)
Note: See TracChangeset for help on using the changeset viewer.