checker refactoring
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "traceplayer.h"
|
||||
#include <string>
|
||||
#include <ctime>
|
||||
#include <algorithm>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -29,13 +30,13 @@ string pathOfFile(string file)
|
||||
|
||||
int sc_main(int argc, char **argv)
|
||||
{
|
||||
sc_set_time_resolution(1,SC_NS);
|
||||
sc_set_time_resolution(1, SC_NS);
|
||||
|
||||
string resources = pathOfFile(argv[0]) + string("/../resources/");
|
||||
xmlAddressDecoder::addressConfigURI = resources + string("configs/addressConfig.xml");
|
||||
TlmRecorder recorder("tpr.tdb", resources + string("scripts/createTraceDB.sql"));
|
||||
//TracePlayer<> player("player", resources + string("traces/mediabench-fractal_32.stl"));
|
||||
TracePlayer<> player("player", resources + string("traces/mediabench-h263encode_32.stl"));
|
||||
TracePlayer<> player("player", resources + string("traces/mediabench-fractal_32.stl"));
|
||||
//TracePlayer<> player("player", resources + string("traces/mediabench-h263encode_32.stl"));
|
||||
|
||||
Dram<> dram("dram");
|
||||
Arbiter<> arbiter("arbiter");
|
||||
@@ -64,8 +65,7 @@ int sc_main(int argc, char **argv)
|
||||
string runTestCommand = string("python ") + testingScript + string(" tpr.tdb");
|
||||
//system(runTestCommand.c_str());
|
||||
|
||||
string run_tpr =
|
||||
"/home/robert/analyzer/build/traceAnalyzer tpr.tdb";
|
||||
string run_tpr = "/home/robert/analyzer/build/traceAnalyzer tpr.tdb";
|
||||
system(run_tpr.c_str());
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user