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

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 763 bytes
RevLine 
[10]1#ifdef SYSTEMC
2/*
3 * $Id: Victim_Pseudo_LRU_genMealy.cpp 88 2008-12-10 18:31:39Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
[15]9#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h"
[10]10
11namespace morpheo {
12namespace behavioural {
13namespace generic {
14namespace victim {
[15]15namespace victim_pseudo_lru {
[10]16
[88]17  void Victim_Pseudo_LRU::genMealy (void)
[10]18  {
[78]19    for (uint32_t i=0; i<_param->_nb_access; i++)
[10]20      {
[78]21        Taddress_t address = (_param->_size_table>1)?PORT_READ(in_ACCESS_ADDRESS[i]):0;
[10]22
[78]23        internal_ACCESS_VICTIM[i] = reg_TABLE[address]->access();
[10]24
[78]25        PORT_WRITE(out_ACCESS_VICTIM[i], internal_ACCESS_VICTIM[i]);
[10]26      }//end for i
27  };
28
[15]29}; // end namespace victim_pseudo_lru
[10]30}; // end namespace victim
31}; // end namespace generic
32}; // end namespace behavioural
33}; // end namespace morpheo             
34#endif
Note: See TracBrowser for help on using the repository browser.