text: /*
   * IPKCacheDirectMapped.h
   *
   *  Created on: 11 Jul 2012
   *      Author: db434
   */
  
  #ifndef IPKCACHEDIRECTMAPPED_H_
  #define IPKCACHEDIRECTMAPPED_H_
  
  #include "IPKCacheBase.h"
  
  class IPKCacheDirectMapped: public IPKCacheBase {
  
  //============================================================================//
  // Constructors and destructors
  //============================================================================//
  
  public:
  
    IPKCacheDirectMapped(const std::string& name, size_t size, size_t maxIPKLength);
    virtual ~IPKCacheDirectMapped();
  
  //============================================================================//
  // Methods
  //============================================================================//
  
  protected:
  
    virtual CacheIndex cacheIndex(const MemoryAddr address) const;
    virtual void setTag(const CacheIndex position, const MemoryAddr tag);
    virtual void updateReadPointer();
    virtual void updateWritePointer();
  
  };
  
  #endif /* IPKCACHEDIRECTMAPPED_H_ */
  