Last change
on this file since 123 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:
367 bytes
|
Rev | Line | |
---|
[78] | 1 | #include "../include/Cache_OneLevel.h" |
---|
| 2 | |
---|
[80] | 3 | namespace environment { |
---|
[78] | 4 | namespace cache { |
---|
| 5 | namespace cache_onelevel { |
---|
| 6 | |
---|
| 7 | uint32_t Cache_OneLevel::need_slot (void) |
---|
| 8 | { |
---|
| 9 | uint32_t res = 0; |
---|
| 10 | // scan all port - test if have a transaction |
---|
| 11 | for (uint32_t x = 0; x < param->nb_port; x ++) |
---|
| 12 | if (access_port[x].valid == true) |
---|
| 13 | res ++; |
---|
| 14 | |
---|
| 15 | return res; |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | }; |
---|
| 19 | }; |
---|
| 20 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.