summaryrefslogtreecommitdiff
path: root/tb/main.cpp
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-09-01 14:39:59 -0600
committerAlejandro Soto <alejandro@34project.org>2022-09-01 14:39:59 -0600
commitf4ec28afc79d20eec060fd7b7a1d54bda20d8a75 (patch)
tree4e14fb28bd4307362e7f4df255ba6327963ae07a /tb/main.cpp
Initial commit
Diffstat (limited to 'tb/main.cpp')
-rw-r--r--tb/main.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tb/main.cpp b/tb/main.cpp
new file mode 100644
index 0000000..d4bdbcb
--- /dev/null
+++ b/tb/main.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();
+}