source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_genMealy.cpp

Last change on this file 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
Line 
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
9#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace generic {
14namespace victim {
15namespace victim_pseudo_lru {
16
17  void Victim_Pseudo_LRU::genMealy (void)
18  {
19    if (PORT_READ(in_NRESET))
20    for (uint32_t i=0; i<_param->_nb_access; i++)
21      {
22        Taddress_t address = (_param->_size_table>1)?PORT_READ(in_ACCESS_ADDRESS[i]):0;
23
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
29        internal_ACCESS_VICTIM[i] = reg_TABLE[address]->access();
30
31        PORT_WRITE(out_ACCESS_VICTIM[i], internal_ACCESS_VICTIM[i]);
32      }//end for i
33  };
34
35}; // end namespace victim_pseudo_lru
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.