From 0adb95447edff742267185c32b8778c087dd6573 Mon Sep 17 00:00:00 2001 From: xenia Date: Fri, 12 Jan 2024 18:36:11 +0100 Subject: [PATCH] Remove old simulation --- simulation/sim_main.cpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 simulation/sim_main.cpp diff --git a/simulation/sim_main.cpp b/simulation/sim_main.cpp deleted file mode 100644 index b5f38d4..0000000 --- a/simulation/sim_main.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "Vrot.h" -#include "verilated.h" -#include "verilated_vcd_c.h" - -int main(int argc, char** argv) { - VerilatedContext* contextp = new VerilatedContext; - contextp->commandArgs(argc, argv); - - Vrot* rot = new Vrot{contextp}; - - Verilated::traceEverOn(true); - VerilatedVcdC* tracer = new VerilatedVcdC; - - if (argc == 2) { - rot->trace(tracer, 10); - tracer->open(argv[1]); - } - - - while (!contextp->gotFinish() && contextp->time() < 100000) { - contextp->timeInc(1); - rot->clk = 1; - rot->eval(); - tracer->dump(contextp->time()); - - contextp->timeInc(1); - rot->clk = 0; - rot->eval(); - tracer->dump(contextp->time()); - } - - tracer->close(); - - delete rot; - delete contextp; - return 0; -}