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

9 lines
241 B
C++

#include "simulator.h"
using CacheSim::Simulator;
Simulator::Simulator(short setSize, short waySize, short tagSize){
this->setSize = setSize;
for(int i=0; i<setSize; i++){
this->sets.push_back(Set(waySize, tagSize));
}
}