|
Last change
on this file was 81, checked in by rosiere, 18 years ago |
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords
set to
Id
|
|
File size:
446 bytes
|
| Line | |
|---|
| 1 | #include "../include/Cache_OneLevel.h"
|
|---|
| 2 |
|
|---|
| 3 | namespace environment {
|
|---|
| 4 | namespace cache {
|
|---|
| 5 | namespace cache_onelevel {
|
|---|
| 6 |
|
|---|
| 7 | // Return the time to have the data
|
|---|
| 8 | // uncache is to stocke the address on the cache
|
|---|
| 9 | uint32_t Cache_OneLevel::update_latence (uint32_t num_port, uint32_t latence)
|
|---|
| 10 | {
|
|---|
| 11 | uint32_t new_latence = latence-param->hit_latence;
|
|---|
| 12 | access_port[num_port].latence = new_latence;
|
|---|
| 13 | return new_latence-param->miss_penality;
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | };
|
|---|
| 17 | };
|
|---|
| 18 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.