corundum_verilator.cpp 344 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>

#include "Vinterface.h"
#include "verilated.h"
#include "verilated_vcd_c.h"

static uint64_t main_time = 0;

double sc_time_stamp()
{
    return main_time;
}

int main(int argc, char *argv[])
{
    Verilated::commandArgs(argc, argv);
    Vinterface *top = new Vinterface;

    top->final();
    delete top;
    return 0;
}