URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
[/] [eco32/] [trunk/] [fpga/] [mc-vl/] [main.cpp] - Rev 309
Go to most recent revision | Compare with Previous | Blame | View Log
/* * main.cpp -- simulation control */ #include "Veco32test.h" #include "verilated.h" int main(int argc, char *argv[]) { Verilated::commandArgs(argc, argv); Veco32test *top = new Veco32test; vluint64_t numHalfCycles = 0; top->clk_in = 0; top->rst_in_n = 0; while (numHalfCycles < 2 * 30000000) { if (numHalfCycles == 2 * 145) { top->rst_in_n = 1; } top->eval(); top->clk_in = !top->clk_in; numHalfCycles++; } top->final(); delete top; return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log