summaryrefslogtreecommitdiff
path: root/verilator_example_c++/sim_main.cc
blob: 6652dd90e6dc465210e663fd49349cde3aee124e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cstdio>

#include "Vhello.h"
#include "verilated.h"

int
main(int argc, char **argv)
{
	VerilatedContext *cp = new VerilatedContext;
	cp->commandArgs(argc, argv);
	Vhello *top = new Vhello{cp};
	while (!cp->gotFinish())
		top->eval();
	fprintf(stderr, "it finished.\n");
}