Changeset 55 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_genMealy_read.cpp
- Timestamp:
- Sep 24, 2007, 2:00:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_genMealy_read.cpp
r53 r55 23 23 #endif 24 24 25 for (uint32_t i=0; i<_param ._nb_port_read; i++)25 for (uint32_t i=0; i<_param->_nb_port_read; i++) 26 26 { 27 27 // Have a write? … … 45 45 } 46 46 } 47 48 for (uint32_t i=0; i<_param->_nb_port_read_write; i++) 49 { 50 Tdata_t data; 51 52 // Have a write? 53 if ( (PORT_READ(in_READ_WRITE_VAL [i]) == 1) and 54 (PORT_READ(in_READ_WRITE_RW [i]) == RW_READ) 55 ) 56 { 57 Taddress_t address = PORT_READ(in_READ_WRITE_ADDRESS[i]); 58 59 data = REGISTER_READ(reg_DATA[address]); 60 61 log_printf(TRACE,RegisterFile,"genMealy_read","[%d] -> %.8x",static_cast<uint32_t>(address),static_cast<uint32_t>(data)); 62 63 #ifdef STATISTICS 64 _stat_nb_read ++; 65 #endif 66 // Write in registerFile 67 68 } 69 else 70 { 71 //log_printf(TRACE,RegisterFile,"genMealy_read","Read [%d] : No transaction",i); 72 data = 0; 73 } 74 75 PORT_WRITE(out_READ_WRITE_RDATA[i],data); 76 } 77 47 78 log_printf(FUNC,RegisterFile,"genMealy_read","End"); 48 79
Note: See TracChangeset
for help on using the changeset viewer.