summaryrefslogtreecommitdiff
path: root/tb/top/conspiracion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tb/top/conspiracion.cpp')
-rw-r--r--tb/top/conspiracion.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tb/top/conspiracion.cpp b/tb/top/conspiracion.cpp
new file mode 100644
index 0000000..d4bdbcb
--- /dev/null
+++ b/tb/top/conspiracion.cpp
@@ -0,0 +1,19 @@
+#include <verilated.h>
+#include <cstdio>
+
+#include "Vconspiracion.h"
+
+int main(int argc, char **argv)
+{
+ Verilated::commandArgs(argc, argv); // Remember args
+ Verilated::traceEverOn(true);
+
+ Vconspiracion top;
+ // Do not instead make Vtop as a file-scope static
+ // variable, as the "C++ static initialization order fiasco"
+ // may cause a crash
+
+ top.eval();
+
+ top.final();
+}