Changeset 128 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked
- Timestamp:
- Jun 26, 2009, 10:43:23 AM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/Types.h
r82 r128 5 5 * $Id$ 6 6 * 7 * [ 7 * [ Description ] 8 8 * 9 9 */ … … 19 19 20 20 //typedef uint32_t Taddress_t; 21 typedef uint32_t Tdata_t;21 typedef Tgeneral_data_t Tdata_t; 22 22 23 23 }; // end namespace registerfile_multi_banked -
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.