From b0cb20496d88cd017c4c51243d16ac3b060cc1d6 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 17 Sep 2022 22:10:39 -0600 Subject: Update project structure to match Verilator Makefile --- tb/main.cpp | 19 ------------------- tb/top/conspiracion.cpp | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 tb/main.cpp create mode 100644 tb/top/conspiracion.cpp (limited to 'tb') diff --git a/tb/main.cpp b/tb/main.cpp deleted file mode 100644 index d4bdbcb..0000000 --- a/tb/main.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include - -#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(); -} 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 +#include + +#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(); +} -- cgit v1.2.3