Last change
on this file since 118 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:
561 bytes
|
Line | |
---|
1 | #include "../include/Cache_OneLevel.h" |
---|
2 | |
---|
3 | namespace environment { |
---|
4 | namespace cache { |
---|
5 | namespace cache_onelevel { |
---|
6 | |
---|
7 | void Cache_OneLevel::reset (void) |
---|
8 | { |
---|
9 | for (uint32_t x = 0; x < param->nb_port; x ++) |
---|
10 | access_port[x].valid = false; |
---|
11 | |
---|
12 | for (uint32_t x = 0; x < param->nb_line/param->associativity; x ++) |
---|
13 | for (uint32_t y = 0; y < param->associativity; y ++) |
---|
14 | { |
---|
15 | tag[x][y].valid = false; |
---|
16 | tag[x][y].index_lru = y; |
---|
17 | |
---|
18 | // Optionnal init |
---|
19 | tag[x][y].trdid = 0; |
---|
20 | tag[x][y].address = 0; |
---|
21 | } |
---|
22 | write_buffer->reset(); |
---|
23 | } |
---|
24 | }; |
---|
25 | }; |
---|
26 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.