CacheSim/set.cpp
2021-12-31 02:21:58 +08:00

13 lines
241 B
C++

#include "set.h"
using std::vector;
using CacheSim::Block;
using CacheSim::Set;
Set::Set(short waySize, short tagSize){
this->waySize = waySize;
for(int i=0; i<waySize; i++){
this->blocks.push_back(Block(tagSize));
}
}