device and dram setup object

This commit is contained in:
Janik Schlemminger
2014-04-09 22:41:51 +02:00
parent d6825125e1
commit 78cc14dcd4
5 changed files with 79 additions and 52 deletions

View File

@@ -33,18 +33,21 @@ int sc_main(int argc, char **argv)
string resources = pathOfFile(argv[0]) + string("/../resources/");
string memconfig = "memconfig.xml";
string memspec = "MICRON_4Gb_DDR4-1866_8bit_A.xml";
// memspec = "MatzesWideIO.xml";
string stl1 = "chstone-sha_32.stl";
//stl1 = "empty.stl";
unsigned int burstlength1 = 8;
string stl2 = "mediabench-h263decode_32.stl";
stl2 = "trace.stl";
unsigned int burstlength2 = 8;
DramSetup setup;
setup.memconfig = "memconfig.xml";
setup.memspec = "MICRON_4Gb_DDR4-1866_8bit_A.xml";
setup.memspec = "MatzesWideIO.xml";
Device device1;
device1.trace = "empty.stl";
Device device2;
device2.trace = "trace.stl";
//device2.trace = "mediabench-h263decode_32.stl";
string traceName = "tpr.tdb";
SimulationManager simulationManager("sim",memconfig,memspec,stl1,burstlength1, stl2,burstlength2, traceName, resources,false);
SimulationManager simulationManager("sim", resources, traceName, setup, { device1, device2 });
simulationManager.startSimulation();
startTraceAnalyzer(traceName);
return 0;