changed simulation manager
This commit is contained in:
@@ -30,17 +30,15 @@ Simulation::Simulation(sc_module_name name, string pathToResources, string trace
|
||||
Configuration::memconfigUri = pathToResources + string("configs/memconfigs/") + setup.memconfig;
|
||||
Configuration::memspecUri = pathToResources + string("configs/memspecs/") + setup.memspec;
|
||||
|
||||
TlmRecorder::getInstance().recordTracenames(devices[0].trace + "," + devices[1].trace);
|
||||
TlmRecorder::getInstance().recordMemspec(Configuration::memspecUri);
|
||||
TlmRecorder::getInstance().recordMemconfig(loadTextFileContents(Configuration::memconfigUri));
|
||||
|
||||
//setup dram
|
||||
dram = new Dram<>("dram");
|
||||
arbiter = new Arbiter<numberOfTracePlayers, 128>("arbiter");
|
||||
controller = new Controller<>("controller");
|
||||
|
||||
//setup devices
|
||||
for(auto& d : devices)
|
||||
{
|
||||
if(d.burstLength == 0)
|
||||
d.burstLength = 8;
|
||||
}
|
||||
|
||||
player1 = new TracePlayer<>("player1", pathToResources + string("traces/") + devices[0].trace,
|
||||
devices[0].burstLength, this);
|
||||
|
||||
Reference in New Issue
Block a user