Last change
on this file since 134 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:
888 bytes
|
Line | |
---|
1 | #include "../include/Cache.h" |
---|
2 | |
---|
3 | namespace environment { |
---|
4 | namespace cache { |
---|
5 | |
---|
6 | uint32_t Cache::range_port (cache_t type_cache, |
---|
7 | uint32_t num_entity) |
---|
8 | { |
---|
9 | uint32_t nb_port_dedicated = 0; |
---|
10 | |
---|
11 | if (type_cache == INSTRUCTION_CACHE) |
---|
12 | { |
---|
13 | for (uint32_t i = 1; i < num_entity; i++ ) |
---|
14 | nb_port_dedicated += param->param_icache_dedicated [i]->nb_port; |
---|
15 | } |
---|
16 | else |
---|
17 | { |
---|
18 | // std::cout << "nb_port_dedicated : " << nb_port_dedicated<< std::endl; |
---|
19 | nb_port_dedicated += param->nb_iport; |
---|
20 | // std::cout << "nb_port_dedicated : " << param->nb_iport<< std::endl; |
---|
21 | |
---|
22 | for (uint32_t i = 1; i < num_entity; i++) |
---|
23 | nb_port_dedicated += param->param_dcache_dedicated [i]->nb_port; |
---|
24 | } |
---|
25 | |
---|
26 | // std::cout << "nb_port_dedicated : " << num_entity << std::endl; |
---|
27 | // std::cout << "nb_port_dedicated : " << nb_port_dedicated<< std::endl; |
---|
28 | |
---|
29 | return nb_port_dedicated; |
---|
30 | } |
---|
31 | |
---|
32 | }; |
---|
33 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.