Last change
on this file since 139 was
128,
checked in by rosiere, 15 years ago
|
1) Correct bug in link two signal
2) Fix error detected with valgrind
3) modif distexe script
|
-
Property svn:keywords set to
Id
|
File size:
985 bytes
|
Rev | Line | |
---|
[10] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Victim_Pseudo_LRU_genMealy.cpp 128 2009-06-26 08:43:23Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[15] | 9 | #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h" |
---|
[10] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace victim { |
---|
[15] | 15 | namespace victim_pseudo_lru { |
---|
[10] | 16 | |
---|
[88] | 17 | void Victim_Pseudo_LRU::genMealy (void) |
---|
[10] | 18 | { |
---|
[123] | 19 | if (PORT_READ(in_NRESET)) |
---|
[78] | 20 | for (uint32_t i=0; i<_param->_nb_access; i++) |
---|
[10] | 21 | { |
---|
[78] | 22 | Taddress_t address = (_param->_size_table>1)?PORT_READ(in_ACCESS_ADDRESS[i]):0; |
---|
[10] | 23 | |
---|
[128] | 24 | #ifdef DEBUG_TEST |
---|
| 25 | if (address >= _param->_size_table) |
---|
| 26 | throw ERRORMORPHEO(FUNCTION,toString(_("Address (%d) is invalid (size : %d).\n"),address,_param->_size_table)); |
---|
| 27 | #endif |
---|
| 28 | |
---|
[78] | 29 | internal_ACCESS_VICTIM[i] = reg_TABLE[address]->access(); |
---|
[10] | 30 | |
---|
[78] | 31 | PORT_WRITE(out_ACCESS_VICTIM[i], internal_ACCESS_VICTIM[i]); |
---|
[10] | 32 | }//end for i |
---|
| 33 | }; |
---|
| 34 | |
---|
[15] | 35 | }; // end namespace victim_pseudo_lru |
---|
[10] | 36 | }; // end namespace victim |
---|
| 37 | }; // end namespace generic |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
| 40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.