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

Last change on this file since 123 was 123, checked in by rosiere, 15 years ago

1) Fix performance
2) add auto generation to SPECINT2000
3) add reset in genMoore and genMealy

  • Property svn:keywords set to Id
File size: 793 bytes
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Victim_Pseudo_LRU_genMealy.cpp 123 2009-06-08 20:43:30Z 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        internal_ACCESS_VICTIM[i] = reg_TABLE[address]->access();
25
26        PORT_WRITE(out_ACCESS_VICTIM[i], internal_ACCESS_VICTIM[i]);
27      }//end for i
28  };
29
30}; // end namespace victim_pseudo_lru
31}; // end namespace victim
32}; // end namespace generic
33}; // end namespace behavioural
34}; // end namespace morpheo             
35#endif
Note: See TracBrowser for help on using the repository browser.