forked from github/verilator
d4f7f5297a
Includes `timescale, $printtimescale, $timeformat. VL_TIME_MULTIPLIER, VL_TIME_PRECISION, VL_TIME_UNIT have been removed and the time precision must now match the SystemC time precision. To get closer behavior to older versions, use e.g. --timescale-override "1ps/1ps".
23 lines
405 B
C++
23 lines
405 B
C++
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2019 by Wilson Snyder
|
|
|
|
#include "Vt_timescale_parse.h"
|
|
|
|
VM_PREFIX* tb = NULL;
|
|
|
|
double sc_time_stamp() {
|
|
return 2 * 1e9; // e.g. 2 seconds in ns units
|
|
}
|
|
|
|
int main() {
|
|
tb = new VM_PREFIX("tb");
|
|
|
|
tb->eval();
|
|
tb->eval();
|
|
tb->eval();
|
|
|
|
tb->final();
|
|
}
|