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