SummerCart64/fw/picorv32/scripts/torture/testbench.cc

19 lines
286 B
C++
Raw Normal View History

2021-08-05 19:50:29 +02:00
#include "Vtestbench.h"
#include "verilated.h"
int main(int argc, char **argv, char **env)
{
Verilated::commandArgs(argc, argv);
Vtestbench* top = new Vtestbench;
top->clk = 0;
while (!Verilated::gotFinish()) {
top->clk = !top->clk;
top->eval();
}
delete top;
exit(0);
}