summaryrefslogtreecommitdiff
path: root/tests/projects/embed/verilator/hello/src/sim_main.cpp
blob: 44cb1da1f5aa42c87d0fb72462069ff0691cc4e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "hello.h"
#include "verilated.h"

int main(int argc, char** argv) {
    VerilatedContext* contextp = new VerilatedContext;
    contextp->commandArgs(argc, argv);
    hello* top = new hello{contextp};
    while (!contextp->gotFinish()) { top->eval(); }
    delete top;
    delete contextp;
    return 0;
}