Changeset 101 for trunk/IPs/systemC/Environment/Data
- Timestamp:
- Jan 15, 2009, 6:19:08 PM (16 years ago)
- Location:
- trunk/IPs/systemC/Environment/Data/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Data/src/Data_entity.cpp
r81 r101 1 1 #include "../include/Data.h" 2 #include "../../Common/include/Debug.h" 2 3 3 4 namespace environment { … … 6 7 Entity Data::entity (uint32_t address, uint32_t size) 7 8 { 9 // _cout(DATA, " * Data::entity\n"); 10 // _cout(DATA, " * address : %.8x\n",address); 11 // _cout(DATA, " * size : %d\n" ,size ); 12 8 13 for (uint32_t num_seg = 0; num_seg < nb_seg; num_seg ++) 9 14 if (segment[num_seg]->test (address,size) == true) -
trunk/IPs/systemC/Environment/Data/src/Segment_test.cpp
r81 r101 1 1 #include "../include/Segment.h" 2 #include "../../Common/include/Debug.h" 2 3 3 4 namespace environment { … … 11 12 bool Segment::test (uint32_t address, uint32_t size) 12 13 { 14 // _cout(DATA," * Segment::test\n"); 15 // _cout(DATA," * address : %.8x\n",address ); 16 // _cout(DATA," * size : %d\n" ,size ); 17 // _cout(DATA," * segment base : %.8x\n",this->base); 18 // _cout(DATA," * segment size : %.8x\n",this->size); 19 13 20 bool res = (((address ) >= (this->base )) and 14 21 ((address+size) <= (this->base+this->size)));
Note: See TracChangeset
for help on using the changeset viewer.