Ignore:
Timestamp:
Dec 8, 2007, 5:12:36 PM (16 years ago)
Author:
rosiere
Message:

read_queue : systemC et vhdl ok !
queue : quelques petits modif pour avoir une queue de taille 1
nettoyage des fichiers *mkf*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_genMealy_read_queue_out_spr.cpp

    r66 r68  
    4545                                           PORT_READ(in_SPR_READ_DATA [0]));
    4646
    47 //     cout << "yo1 : " << internal_READ_QUEUE_OUT_DATA_RC << endl;
    48 
    4947    // Test all bypass
    5048    for (uint32_t i=0; i<_param->_nb_spr_write ; i++)
    5149      {
     50        bool cmp;
     51
     52        if (_param->_have_port_ooo_engine_id)
     53          cmp = (PORT_READ (in_SPR_WRITE_OOO_ENGINE_ID [i]) == _queue_head->_ooo_engine_id);
     54        else
     55          cmp = true;
     56           
    5257        // Test if this bypass is valid
    53         if ( (PORT_READ (in_SPR_WRITE_VAL           [i]) == 1) and
    54              (PORT_READ (in_SPR_WRITE_OOO_ENGINE_ID [i]) == _queue_head->_ooo_engine_id)
    55              )
     58        if ( (PORT_READ (in_SPR_WRITE_VAL [i]) == 1) and cmp)
    5659          {
    5760            if (_queue_head->_num_reg_rc == PORT_READ(in_SPR_WRITE_NUM_REG [i]))
     
    5962                log_printf(TRACE,Read_queue,FUNCTION," * internal_READ_QUEUE_OUT_DATA_RC_VAL   - bypass hit (%d)",i);
    6063                internal_READ_QUEUE_OUT_DATA_RC_VAL = 1;
     64#ifdef SYSTEMC_VHDL_COMPATIBILITY
     65                if (_queue_head->_read_rc == 1)
     66#endif
    6167                internal_READ_QUEUE_OUT_DATA_RC     = PORT_READ(in_SPR_WRITE_DATA [i]);
    6268              }
    6369          }
    6470      }
    65 
    66 //     cout << "yo2 : " << internal_READ_QUEUE_OUT_DATA_RC << endl;
    6771
    6872    // Affectation out port
Note: See TracChangeset for help on using the changeset viewer.