device and dram setup object
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user