summaryrefslogtreecommitdiff
path: root/platform/wavelet3d/main.cpp
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-02-28 15:27:00 -0600
committerAlejandro Soto <alejandro@34project.org>2024-02-28 15:27:00 -0600
commit6e67445a93e97f6353aea0e8e79acf2b60b46985 (patch)
treeb959285fc8ed899b3eb24fbb25f78a45b4d43fd9 /platform/wavelet3d/main.cpp
parent29ef941d4512368ee6d06057de9daad7ff6c3ff7 (diff)
platform/wavelet3d: initial commit
Diffstat (limited to '')
-rw-r--r--platform/wavelet3d/main.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/platform/wavelet3d/main.cpp b/platform/wavelet3d/main.cpp
new file mode 100644
index 0000000..ce632b6
--- /dev/null
+++ b/platform/wavelet3d/main.cpp
@@ -0,0 +1,32 @@
+#include <cstddef>
+#include <cstdio>
+#include <cstdlib>
+
+#include <Python.h>
+#include <verilated.h>
+
+#if VM_TRACE
+#include <verilated_fst_c.h>
+#endif
+
+#include "Vtop.h"
+
+int main(int argc, char **argv)
+{
+ Verilated::commandArgs(argc, argv);
+ Vtop top;
+
+#if VM_TRACE
+ VerilatedFstC trace;
+#endif
+
+ Py_Initialize();
+ bool failed = Py_FinalizeEx() < 0;
+
+#if VM_TRACE
+ trace.close();
+#endif
+
+ top.final();
+ return failed ? EXIT_FAILURE : EXIT_SUCCESS;
+}