e3d600fc21
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 13:29:52 up 22:08, 2 users, load average: 1.26, 1.02, 1.00
23 lines
No EOL
448 B
C++
23 lines
No EOL
448 B
C++
#include <cstdlib>
|
|
#include <cassert>
|
|
#include <cstdlib>
|
|
#include <verilated.h>
|
|
#include <verilated_vcd_c.h>
|
|
#include <Vexample.h>
|
|
#include <nvboard.h>
|
|
|
|
const int MAX_SIM_TIME=100;
|
|
|
|
void nvboard_bind_all_pins(Vexample* top);
|
|
|
|
int main(int argc, char **argv, char **env) {
|
|
Vexample *top = new Vexample;
|
|
|
|
nvboard_bind_all_pins(top);
|
|
nvboard_init();
|
|
while (true) {
|
|
nvboard_update();
|
|
top->eval();
|
|
}
|
|
delete top;
|
|
} |