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

namespace environment {
namespace cache {
namespace cache_onelevel {

  // Return the time to have the data
  // uncache is to stocke the address on the cache
  uint32_t Cache_OneLevel::update_latence (uint32_t num_port, uint32_t latence)
  {
    uint32_t new_latence = latence-param->hit_latence;
    access_port[num_port].latence = new_latence;
    return new_latence-param->miss_penality;
  }

};
};
};
