Changeset 78 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_allocation.cpp
- Timestamp:
- Mar 27, 2008, 11:04:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_allocation.cpp
r75 r78 96 96 // ~~~~~[ Registers ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 97 97 98 reg_DATA = new SC_REGISTER (Tdata_t) ** [_param->_nb_bank];98 reg_DATA = new Tdata_t * [_param->_nb_bank]; 99 99 100 100 for (uint32_t i=0; i<_param->_nb_bank; i++) 101 101 { 102 reg_DATA [i] = new SC_REGISTER (Tdata_t) * [_param->_nb_word]; 103 104 for (uint32_t j=0; j<_param->_nb_word; j++) 105 { 106 std::string rename = "reg_DATA_" + toString(i) + "_" + toString(j); 107 reg_DATA [i][j] = new SC_REGISTER (Tdata_t) (rename.c_str()); 108 } 102 reg_DATA [i] = new Tdata_t [_param->_nb_word]; 109 103 } 110 104
Note: See TracChangeset
for help on using the changeset viewer.