Changeset 134 for trunk/IPs/systemC/Environment/Data/src/Data_read.cpp
- Timestamp:
- Jul 15, 2009, 10:41:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Data/src/Data_read.cpp
r81 r134 6 6 bool Data::read (uint32_t address, uint32_t size, char * & data_dest) 7 7 { 8 // for (uint32_t i=0; i<size; ++i) 9 // data_dest[i] = '\0'; 10 8 11 uint32_t num_seg = 0; 9 bool res = false; 10 12 11 13 // Scan all segment 12 for ( num_seg = 0; num_seg < nb_seg; num_seg ++)14 for (; num_seg < nb_seg; num_seg ++) 13 15 if (segment[num_seg]->test (address,size) == true) 14 16 { 15 17 segment[num_seg]->read (address,size,data_dest); 16 res = true;17 18 break; 18 19 } 19 20 20 return res;21 return (num_seg < nb_seg); 21 22 } 22 23
Note: See TracChangeset
for help on using the changeset viewer.