> configure(npc)

ysyx_22040000 李心杨
 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux
  18:42:28  up 2 days 17:43,  2 users,  load average: 1.11, 0.95, 0.90
This commit is contained in:
tracer-ysyx 2024-01-10 18:42:28 +08:00 committed by xinyangli
parent b8d0ecf1b3
commit f44cedc71d
No known key found for this signature in database
10 changed files with 163 additions and 241 deletions

View file

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