Changeset 123 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_genMoore.cpp
- Timestamp:
- Jun 8, 2009, 10:43:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_genMoore.cpp
r101 r123 20 20 log_printf(FUNC,Queue,FUNCTION,"Begin"); 21 21 22 if (PORT_READ(in_NRESET)) 23 { 22 24 //--------------------------------------------- 23 25 // Output … … 26 28 internal_RETIRE_VAL = not _queue_control->empty(); 27 29 28 PORT_WRITE(out_INSERT_ACK , internal_INSERT_ACK);29 PORT_WRITE(out_RETIRE_VAL , internal_RETIRE_VAL);30 30 PORT_WRITE(out_RETIRE_DATA,_queue_data[(*_queue_control)[0]]); 31 31 … … 49 49 if (_param->_have_port_ptr_read ) 50 50 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 51 66 52 67 log_printf(FUNC,Queue,FUNCTION,"End");
Note: See TracChangeset
for help on using the changeset viewer.