source: trunk/IPs/systemC/Environment/Data/src/Data_entity.cpp @ 86

Last change on this file since 86 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: 566 bytes
Line 
1#include "../include/Data.h"
2
3namespace environment {
4namespace data {
5
6  Entity Data::entity (uint32_t address, uint32_t size)
7  {
8    for (uint32_t num_seg = 0; num_seg < nb_seg; num_seg ++)
9      if (segment[num_seg]->test (address,size) == true)
10        return Entity (true,segment[num_seg]);
11   
12    return Entity (false);
13  }
14 
15  Entity Data::entity (std::string name)
16  {
17    for (uint32_t num_seg = 0; num_seg < nb_seg; num_seg ++)
18      if (segment[num_seg]->test(name) == true)
19        return Entity (true,segment[num_seg]);
20   
21    return Entity (false);
22  }
23
24};
25};
Note: See TracBrowser for help on using the repository browser.