21 lines
356 B
C++
21 lines
356 B
C++
#include "block.h"
|
|
#include <vector>
|
|
|
|
using std::vector;
|
|
using CacheSim::Block;
|
|
|
|
namespace CacheSim{
|
|
class Set
|
|
{
|
|
private:
|
|
short waySize;
|
|
short emptySize;
|
|
vector<Block> blocks;
|
|
|
|
public:
|
|
Set(short waySize, short tagSize);
|
|
bool read(vector<bool> tag, short offset);
|
|
void countAccess();
|
|
|
|
};
|
|
} |