#include "../include/Cache_OneLevel.h"

namespace environnement {
namespace cache {
namespace cache_onelevel {

  void Cache_OneLevel::update_lru   (uint32_t familly, uint32_t num_associativity)
  {
    uint32_t current_lru = tag [familly][num_associativity].index_lru;
    
    for (uint32_t k = 0; k < param->associativity; k ++)
      if (tag [familly][k].index_lru < current_lru)
	tag [familly][k].index_lru ++;
    tag [familly][num_associativity].index_lru = 0;
  }
};
};
};
