batch simulation
This commit is contained in:
@@ -17,7 +17,7 @@ using namespace std;
|
||||
|
||||
namespace simulation {
|
||||
|
||||
SimulationManager::SimulationManager(sc_module_name name, string pathToResources, string traceName, DramSetup setup,
|
||||
Simulation::Simulation(sc_module_name name, string pathToResources, string traceName, DramSetup setup,
|
||||
std::vector<Device> devices, bool silent) :
|
||||
traceName(traceName)
|
||||
|
||||
@@ -66,7 +66,7 @@ SimulationManager::SimulationManager(sc_module_name name, string pathToResources
|
||||
DebugManager::getInstance().addToWhiteList(whiteList);
|
||||
}
|
||||
|
||||
SimulationManager::~SimulationManager()
|
||||
Simulation::~Simulation()
|
||||
{
|
||||
delete dram;
|
||||
delete arbiter;
|
||||
@@ -75,9 +75,10 @@ SimulationManager::~SimulationManager()
|
||||
delete player2;
|
||||
}
|
||||
|
||||
void SimulationManager::startSimulation()
|
||||
void Simulation::startSimulation()
|
||||
{
|
||||
|
||||
|
||||
clock_t begin = clock();
|
||||
|
||||
DebugManager::getInstance().printDebugMessage(name(), "Starting simulation");
|
||||
@@ -91,7 +92,7 @@ void SimulationManager::startSimulation()
|
||||
"Simulation took " + to_string(elapsed_secs) + " seconds");
|
||||
}
|
||||
|
||||
void SimulationManager::tracePlayerFinishedCallback(string name)
|
||||
void Simulation::tracePlayerFinishedCallback(string name)
|
||||
{
|
||||
|
||||
DebugManager::getInstance().printDebugMessage(this->name(), "Traceplayer " + name + " finshed");
|
||||
@@ -103,7 +104,7 @@ void SimulationManager::tracePlayerFinishedCallback(string name)
|
||||
}
|
||||
}
|
||||
|
||||
void SimulationManager::terminationThread()
|
||||
void Simulation::terminationThread()
|
||||
{
|
||||
wait(terminateSimulation);
|
||||
DebugManager::getInstance().printDebugMessage(this->name(), "Terminating simulation");
|
||||
|
||||
Reference in New Issue
Block a user