2024-01-01 05:29:52 +00:00
|
|
|
#include <cstdlib>
|
|
|
|
#include <cassert>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <verilated.h>
|
|
|
|
#include <verilated_vcd_c.h>
|
2024-01-04 09:23:05 +00:00
|
|
|
#include <VMain.h>
|
2024-01-01 05:29:52 +00:00
|
|
|
#include <nvboard.h>
|
|
|
|
|
|
|
|
const int MAX_SIM_TIME=100;
|
|
|
|
|
2024-01-04 09:23:05 +00:00
|
|
|
void nvboard_bind_all_pins(VMain* top);
|
2024-01-01 05:29:52 +00:00
|
|
|
|
|
|
|
int main(int argc, char **argv, char **env) {
|
2024-01-04 09:23:05 +00:00
|
|
|
VMain* top = new VMain;
|
2024-01-01 05:29:52 +00:00
|
|
|
|
|
|
|
nvboard_bind_all_pins(top);
|
|
|
|
nvboard_init();
|
|
|
|
while (true) {
|
|
|
|
nvboard_update();
|
|
|
|
top->eval();
|
|
|
|
}
|
|
|
|
delete top;
|
|
|
|
}
|