source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Pseudo_LRU/src/Pseudo_LRU_genMealy_access.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 906 bytes
Line 
1#ifdef SYSTEMC
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/Select/Pseudo_LRU/include/Pseudo_LRU.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace generic {
14namespace select {
15namespace pseudo_lru {
16
17  void 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 pseudo_lru
42}; // end namespace select
43}; // end namespace generic
44}; // end namespace behavioural
45}; // end namespace morpheo             
46#endif
Note: See TracBrowser for help on using the repository browser.