15 #define TOP_MODULE ESI_Cosim_Top
23 #define STRINGIFY_MACRO(x) STR(x)
26 #define CONCAT3(n1, n2, n3) STRINGIFY_MACRO(EXPAND(n1)EXPAND(n2)EXPAND(n3))
27 #define TOKENPASTE(x, y) x ## y
28 #define CLASSNAME(x, y) TOKENPASTE(x, y)
30 #include CONCAT3(V,TOP_MODULE,.h)
33 #include "verilated_vcd_c.h"
47 int main(
int argc,
char **argv) {
51 Verilated::commandArgs(argc, argv);
55 char *waveformFile = getenv(
"SAVE_WAVE");
57 VerilatedVcdC *tfp =
nullptr;
60 tfp =
new VerilatedVcdC();
61 Verilated::traceEverOn(
true);
63 tfp->open(waveformFile);
64 std::cout <<
"[driver] Writing trace to " << waveformFile << std::endl;
67 <<
"[driver] Warning: waveform file specified, but not a debug build"
72 std::cout <<
"[driver] Starting simulation" << std::endl;
108 std::cout <<
"[driver] Ending simulation at tick #" <<
timeStamp << std::endl;
int main(int argc, char **argv)
volatile bool stopSimulation