From 5c1df6d27f5dac143efc9ce84689b863dbee45bd Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 24 Mar 2021 08:35:07 -0700 Subject: Reorganize repo layout to make it a little easier to work within. --- main.cpp | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 main.cpp (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp deleted file mode 100644 index 3f49cb6..0000000 --- a/main.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include -#include -#include - -#include "Vtop.h" - -int main(int argc, const char *argv[]) -{ - Verilated::commandArgs(argc, argv); - - Verilated::traceEverOn(true); - VerilatedVcdC vcd; - - Vtop top; - top.trace(&vcd, 100 /* levels of hierarchy */); - - vcd.set_time_unit("ns"); - vcd.set_time_resolution("ns"); - vcd.open("build/out.vcd"); - - std::cout << "*** RESET SEQUENCE ***\n"; - - std::uint64_t time = 0; - - top.clk = 0; - top.reset_n = 0; - top.eval(); - vcd.dump(++time); - - top.clk = 1; - top.eval(); - vcd.dump(++time); - - top.clk = 0; - top.reset_n = 1; - top.eval(); - vcd.dump(++time); - - std::cout << "*** MAIN LOOP ***\n"; - - for (unsigned int i = 0; i < 500 && !Verilated::gotFinish(); ++i) { - top.clk = 1; - top.eval(); - vcd.dump(++time); - top.clk = 0; - top.eval(); - vcd.dump(++time); - } - - std::cout << "\n"; - - vcd.close(); - - return 0; -} -- cgit v1.2.3