Skip to content

Commit

Permalink
add comment for unused RTS pin
Browse files Browse the repository at this point in the history
  • Loading branch information
sashimi-yzh committed Jul 27, 2023
1 parent 68ffd21 commit 079dd0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions include/constrs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down

0 comments on commit 079dd0e

Please sign in to comment.