Last change
on this file since 71 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
941 bytes
|
Line | |
---|
1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace victim { |
---|
15 | namespace victim_pseudo_lru { |
---|
16 | |
---|
17 | void Victim_Pseudo_LRU::genMealy_access (void) |
---|
18 | { |
---|
19 | for (uint32_t i=0; i<_param._nb_access; i++) |
---|
20 | { |
---|
21 | if (PORT_READ (in_ACCESS_VAL[i]) == 1) |
---|
22 | { |
---|
23 | Taddress_t address; |
---|
24 | |
---|
25 | if (_param._size_table>1) |
---|
26 | address = PORT_READ (in_ACCESS_ADDRESS[i]); |
---|
27 | else |
---|
28 | address = 0; |
---|
29 | |
---|
30 | internal_ACCESS_ENTITY[i] = reg_TABLE[address]->access(); |
---|
31 | } |
---|
32 | else |
---|
33 | { |
---|
34 | internal_ACCESS_ENTITY[i] = 0; |
---|
35 | } |
---|
36 | |
---|
37 | PORT_WRITE(out_ACCESS_ENTITY[i], internal_ACCESS_ENTITY[i]); |
---|
38 | }//end for i |
---|
39 | }; |
---|
40 | |
---|
41 | }; // end namespace victim_pseudo_lru |
---|
42 | }; // end namespace victim |
---|
43 | }; // end namespace generic |
---|
44 | }; // end namespace behavioural |
---|
45 | }; // end namespace morpheo |
---|
46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.