Changeset 75 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/include/Memory.h
- Timestamp:
- Jan 31, 2008, 6:46:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/include/Memory.h
r72 r75 53 53 } 54 54 55 cout << "=====[ Memory's information ]" <<endl56 << " * _nb_context : " << _nb_context <<endl57 << " * _nb_word : " << _nb_word <<endl58 << " * _size_word : " << _size_word <<endl59 << " * _shift_addr : " << _shift_addr <<endl60 << " * _mask_addr : " << hex << _mask_addr << dec <<endl;55 std::cout << "=====[ Memory's information ]" << std::endl 56 << " * _nb_context : " << _nb_context << std::endl 57 << " * _nb_word : " << _nb_word << std::endl 58 << " * _size_word : " << _size_word << std::endl 59 << " * _shift_addr : " << _shift_addr << std::endl 60 << " * _mask_addr : " << std::hex << _mask_addr << std::dec << std::endl; 61 61 } 62 62 … … 71 71 morpheo::behavioural::Tdcache_data_t data) 72 72 { 73 cout << "<Memory::access>" <<endl74 << " * context : " << context <<endl75 << " * address : " << hex << address << dec <<endl76 << " * type : " << type <<endl77 << " * wdata : " << hex << data << dec <<endl;73 std::cout << "<Memory::access>" << std::endl 74 << " * context : " << context << std::endl 75 << " * address : " << std::hex << address << std::dec << std::endl 76 << " * type : " << type << std::endl 77 << " * wdata : " << std::hex << data << std::dec << std::endl; 78 78 79 79 morpheo::behavioural::Tdcache_data_t rdata; … … 90 90 rdata = other (context, address, type); 91 91 92 cout << " * rdata : " << hex << rdata << dec <<endl;92 std::cout << " * rdata : " << std::hex << rdata << std::dec << std::endl; 93 93 94 94 return rdata; … … 161 161 morpheo::behavioural::Tdcache_data_t data) 162 162 { 163 cout << " * write" <<endl;163 std::cout << " * write" << std::endl; 164 164 165 165 if (context>_nb_context) … … 172 172 morpheo::behavioural::Tdcache_address_t MSB = address >> _shift_addr; 173 173 174 cout <<hex175 << " * LSB : " << LSB << endl176 << " * MSB : " << MSB << endl177 << dec;174 std::cout << std::hex 175 << " * LSB : " << LSB << std::endl 176 << " * MSB : " << MSB << std::endl 177 << std::dec; 178 178 179 179 morpheo::behavioural::Tdcache_data_t data_old = _data [context][MSB]; … … 193 193 uint32_t index_max = index_min+memory_size; 194 194 195 cout << " * type : " << type <<endl196 << " * memory_size : " << memory_size << endl197 << " * index_min : " << index_min << endl198 << " * index_max : " << index_max << endl;195 std::cout << " * type : " << type << std::endl 196 << " * memory_size : " << memory_size << std::endl 197 << " * index_min : " << index_min << std::endl 198 << " * index_max : " << index_max << std::endl; 199 199 200 200 morpheo::behavioural::Tdcache_data_t data_insert = data<<index_min; // the data is aligned at LSB 201 201 202 // cout << "read :" <<endl203 // << " * context : " << context << endl204 // << hex205 // << " * address : " << address << endl206 // << " * LSB : " << LSB << endl207 // << " * MSB : " << MSB << endl208 // << dec209 // << " * index_min : " << index_min << endl210 // << " * index_max : " << index_max << endl211 // << " * type : " << type << endl;202 // std::cout << "read :" << std::endl 203 // << " * context : " << context << std::endl 204 // << std::hex 205 // << " * address : " << address << std::endl 206 // << " * LSB : " << LSB << std::endl 207 // << " * MSB : " << MSB << std::endl 208 // << std::dec 209 // << " * index_min : " << index_min << std::endl 210 // << " * index_max : " << index_max << std::endl 211 // << " * type : " << type << std::endl; 212 212 213 213 if (index_max > _size_word) … … 218 218 _data [context][MSB] = data_new; 219 219 220 cout <<hex221 << " * data_old : " << data_old <<endl222 << " * data_new : " << data_new <<endl223 <<dec;220 std::cout << std::hex 221 << " * data_old : " << data_old << std::endl 222 << " * data_new : " << data_new << std::endl 223 << std::dec; 224 224 225 225 … … 277 277 } 278 278 std::cout << " - " 279 << hex279 << std::hex 280 280 << i->_address << " : " 281 281 << i->_data_old << " -> " 282 282 << i->_data_new << std::endl 283 << hex;283 << std::hex; 284 284 } 285 285 }
Note: See TracChangeset
for help on using the changeset viewer.