add comment for unused RTS pin

This commit is contained in:
Zihao Yu 2023-07-27 11:44:11 +08:00
parent 68ffd2115a
commit 079dd0e643
2 changed files with 8 additions and 0 deletions

View File

@ -89,6 +89,9 @@ signal (pin1, pin2, ..., pink)
可以在`board`目录下的引脚说明文件中查看引脚信息。
其中,复位引脚`RST`不使用因为NVBoard在cpp文件中包含一些内部状态仅复位RTL设计部分会使其与NVBoard状态不一致。
一个实现全系统复位效果的简单方法是退出NVBoard并重新运行。RTL设计的复位工作由verilator的wrapper完成具体见`example/csrc/main.cpp`。
### 调用API
在C++仿真代码中调用NVBoard提供的API

View File

@ -3,6 +3,11 @@
#include <stdint.h>
// RST is defined but not used. NVBoard contains some internal states in *.cpp
// file. Only resetting the RTL design in *.v file may make the RTL design and
// NVBoard inconsistent. The easy way to reset the whole system is to exit
// NVBoard and re-run. The reset work for RTL design is done by the verilator
// wrapper. See `example/csrc/main.cpp` for more details.
#define BTN_INPUT BTNC, BTNU, BTND, BTNL, BTNR, RST
#define SW_INPUT SW0, SW1, SW2, SW3, \