Main Page | Class List | File List | Class Members

DIRECT_MAPPED_CACHE Class Reference

Direct Mapped cache using simple modulo as mapping function. More...

#include <DIRECT_MAPPED_CACHE.hpp>

Collaboration diagram for DIRECT_MAPPED_CACHE:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DIRECT_MAPPED_CACHE (unsigned long int lines)
 Base constructor.
 ~DIRECT_MAPPED_CACHE ()
 Base deconstructor.
CACHE_LINEgetLine (void *pointer)
 Gets the cache line belonging to a given pointer.

Protected Attributes

CACHE_LINE_lines
 Number of cache lines available.
unsigned long int _size
 Total cache size.
unsigned long int _line_size
 Total cache line size.

Detailed Description

Direct Mapped cache using simple modulo as mapping function.


Member Data Documentation

unsigned long int DIRECT_MAPPED_CACHE::_line_size [protected]
 

Total cache line size.

Equals _size / _lines


The documentation for this class was generated from the following files:
Generated on Fri Aug 15 18:12:25 2008 for Run-timeCacheSimulator by  doxygen 1.3.9.1