source: trunk/IPs/systemC/Environment/Data/src/Segment_test.cpp @ 82

Last change on this file since 82 was 81, checked in by rosiere, 17 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 366 bytes
Line 
1#include "../include/Segment.h"
2
3namespace environment {
4namespace data {
5 
6  bool Segment::test (std::string name)
7  {
8    return (this->name == name);
9  }
10 
11  bool Segment::test (uint32_t address, uint32_t size)
12  {
13    bool res = (((address     ) >= (this->base           )) and
14                ((address+size) <= (this->base+this->size)));
15   
16    return res;
17  }
18 
19};
20};
Note: See TracBrowser for help on using the repository browser.