Last change
on this file since 78 was
78,
checked in by rosiere, 16 years ago
|
Add :
- Execute_loop (must be test systemC)
- Prediction
- Direction : predifined scheme
- Branch Target Buffer
- iFetch_unit
- ifetch_queue
- pc management
- Decod_unit
- coming soon : support for custom operation
- Rename_unit
- RAT
- Free_list
- Dependence RAW check
- Load store unit pointer
- New Environnement (hierarchy_memory will remove in a next version)
Modif :
- Manage Custom Operation
- All component in execute_loop to use the new statistics management
Not Finish :
- Return Address Stack
- Environnement
|
File size:
1.3 KB
|
Line | |
---|
1 | #include "../include/Cache_OneLevel.h" |
---|
2 | |
---|
3 | namespace environnement { |
---|
4 | namespace cache { |
---|
5 | namespace cache_onelevel { |
---|
6 | |
---|
7 | // Return hit (true) |
---|
8 | // uncache is to stocke the address on the cache |
---|
9 | type_rsp_cache_t Cache_OneLevel::access (uint32_t num_port, |
---|
10 | uint32_t address, |
---|
11 | uint32_t trdid, |
---|
12 | type_req_cache_t type, |
---|
13 | direction_req_cache_t dir) |
---|
14 | { |
---|
15 | // std::cout << "<Cache_Onelevel.access>" << std::endl |
---|
16 | // << " * num_port : " << num_port << std::endl |
---|
17 | // << " * address : " << std::hex << address << std::dec << std::endl |
---|
18 | // << " * trdid : " << trdid << std::endl |
---|
19 | // << " * type : " << type << std::endl |
---|
20 | // << " * direction : " << dir << std::endl; |
---|
21 | |
---|
22 | switch (type) |
---|
23 | { |
---|
24 | case UNCACHED : return access_uncached (num_port,address,trdid ); break; |
---|
25 | case INVALIDATE : return access_invalidate (num_port,address,trdid ); break; |
---|
26 | case FLUSH : return access_flush (num_port,address,trdid ); break; |
---|
27 | case PREFETCH : // no difference with the simple read cached (have no add a prefetch cache) |
---|
28 | case CACHED : return access_cached (num_port,address,trdid,dir); break; |
---|
29 | default : std::cout << "<Cache_Onelevel.access> unknow type : " << std::endl; exit(1); break; |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | }; |
---|
34 | }; |
---|
35 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.