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_transition.cpp

    r66 r68  
    4949        bool not_full      = not (_queue->size() == _param->_size_queue);
    5050        bool     empty     =     _queue->empty();
    51         bool nead_new_head = false;
     51        bool need_new_head = false;
    5252       
    5353        log_printf(TRACE,Read_queue,FUNCTION," * test transaction READ_QUEUE_IN  : %d,%d",PORT_READ(in_READ_QUEUE_IN_VAL), not_full);
     
    5656            Tread_queue_entry_t * entry = new Tread_queue_entry_t;
    5757
    58             entry->_context_id   = PORT_READ(in_READ_QUEUE_IN_CONTEXT_ID  );
    59             entry->_front_end_id = PORT_READ(in_READ_QUEUE_IN_FRONT_END_ID);
    60             entry->_ooo_engine_id= PORT_READ(in_READ_QUEUE_IN_OOO_ENGINE_ID);
    61             entry->_rob_id       = PORT_READ(in_READ_QUEUE_IN_ROB_ID      );
     58            if(_param->_have_port_context_id   )
     59              entry->_context_id   = PORT_READ(in_READ_QUEUE_IN_CONTEXT_ID  );
     60            if(_param->_have_port_front_end_id )
     61              entry->_front_end_id = PORT_READ(in_READ_QUEUE_IN_FRONT_END_ID);
     62            if(_param->_have_port_ooo_engine_id)
     63              entry->_ooo_engine_id= PORT_READ(in_READ_QUEUE_IN_OOO_ENGINE_ID);
     64            if(_param->_have_port_rob_id       )
     65              entry->_rob_id       = PORT_READ(in_READ_QUEUE_IN_ROB_ID      );
    6266            entry->_operation    = PORT_READ(in_READ_QUEUE_IN_OPERATION   );
    6367            entry->_type         = PORT_READ(in_READ_QUEUE_IN_TYPE        );
     
    8387              {
    8488                log_printf(TRACE,Read_queue,FUNCTION,"     * queue was    empty");
    85                 nead_new_head = true;
     89                need_new_head = true;
    8690              }
    8791          }
     
    100104              {
    101105                log_printf(TRACE,Read_queue,FUNCTION,"     * queue was not empty");
    102                 nead_new_head = true;
     106                need_new_head = true;
    103107              }
    104108          }
     
    119123          }
    120124
    121         if (nead_new_head == true)
     125        if (need_new_head == true)
    122126          {
    123127            log_printf(TRACE,Read_queue,FUNCTION," * new head");
Note: See TracChangeset for help on using the changeset viewer.