diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-09-17 22:10:39 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-09-17 22:10:39 -0600 |
| commit | b0cb20496d88cd017c4c51243d16ac3b060cc1d6 (patch) | |
| tree | b73bb171b9454501a8a3e101ab9d5f05c6b72945 /tb/top | |
| parent | a9aafdf34ed44f115edf43f29a733eb82f366eb6 (diff) | |
Update project structure to match Verilator Makefile
Diffstat (limited to 'tb/top')
| -rw-r--r-- | tb/top/conspiracion.cpp | 19 |
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(); +} |
