Last change
on this file since 117 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | #ifndef ENVIRONMENT_CACHE_H |
---|
2 | #define ENVIRONMENT_CACHE_H |
---|
3 | |
---|
4 | #include "Cache_Parameters.h" |
---|
5 | #include "Cache_MultiLevel.h" |
---|
6 | #include "Types.h" |
---|
7 | |
---|
8 | namespace environment { |
---|
9 | namespace cache { |
---|
10 | |
---|
11 | class Cache |
---|
12 | { |
---|
13 | private : std::string name ; |
---|
14 | protected : Parameters * param ; |
---|
15 | |
---|
16 | protected : cache_multilevel::Cache_MultiLevel ** icache_dedicated; |
---|
17 | protected : cache_multilevel::Cache_MultiLevel ** dcache_dedicated; |
---|
18 | protected : cache_multilevel::Cache_MultiLevel * cache_shared ; |
---|
19 | |
---|
20 | public : Cache (std::string name, |
---|
21 | Parameters * param); |
---|
22 | public : ~Cache (void); |
---|
23 | |
---|
24 | public : void reset (void); |
---|
25 | public : void transition (void); |
---|
26 | private : uint32_t range_port (cache_t type_cache, |
---|
27 | uint32_t num_entity); |
---|
28 | public : uint32_t latence (cache_t type_cache, |
---|
29 | uint32_t num_entity, |
---|
30 | uint32_t num_port , |
---|
31 | uint32_t address , |
---|
32 | uint32_t trdid , |
---|
33 | type_req_cache_t type , |
---|
34 | direction_req_cache_t dir ); |
---|
35 | |
---|
36 | public : std::string information (uint32_t depth); |
---|
37 | |
---|
38 | public : friend std::ostream& operator<< (std::ostream& output, Cache & x); |
---|
39 | }; |
---|
40 | |
---|
41 | }; |
---|
42 | }; |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.