ysyx-workbench/npc/csrc_nvboard/Flow/main.cpp
tracer-ysyx 8fc1f3838b > configure(npc)
ysyx_22040000 李心杨
 Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
  23:25:23  up 2 days 14:15,  2 users,  load average: 0.55, 0.82, 0.95
2024-03-11 23:25:23 +08:00

23 lines
No EOL
436 B
C++

#include <cstdlib>
#include <cassert>
#include <cstdlib>
#include <verilated.h>
#include <verilated_vcd_c.h>
#include <nvboard.h>
#include <VFlow.h>
const int MAX_SIM_TIME=100;
void nvboard_bind_all_pins(VFLow* top);
int main(int argc, char **argv, char **env) {
VFlow *top = new VFlow;
nvboard_bind_all_pins(top);
nvboard_init();
while (true) {
nvboard_update();
top->eval();
}
delete top;
}