Changeset 128 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src
- Timestamp:
- Jun 26, 2009, 10:43:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_transition.cpp
r124 r128 25 25 // call function pointer 26 26 // (this->*function_transition) (); 27 if ( _param->_have_init_value and (PORT_READ(in_NRESET) == 0))27 if (PORT_READ(in_NRESET) == 0) 28 28 { 29 for (uint32_t i=0; i<_param->_nb_bank; ++i) 30 for (uint32_t j=0; j<_param->_nb_word; ++j) 31 reg_DATA[i][j] = fromString<Tdata_t>(_param->_init_value); 29 if (_param->_have_init_value) 30 { 31 for (uint32_t i=0; i<_param->_nb_bank; ++i) 32 for (uint32_t j=0; j<_param->_nb_word; ++j) 33 reg_DATA[i][j] = fromString<Tdata_t>(_param->_init_value); 34 } 35 else 36 { 37 for (uint32_t i=0; i<_param->_nb_bank; ++i) 38 for (uint32_t j=0; j<_param->_nb_word; ++j) 39 reg_DATA[i][j] = 0; 40 } 32 41 } 33 42 else
Note: See TracChangeset
for help on using the changeset viewer.