|
1 | 1 | # 开发环境
|
2 | 2 |
|
3 |
| -[Xilinx Vivado](https://www.xilinx.com/products/design-tools/vivado.html) 2018.3 (64-bit),版本:Vivado HL WebPACK |
| 3 | +[Xilinx Vivado](https://www.xilinx.com/products/design-tools/vivado.html) WebPACK 2018.3 (64-bit) |
4 | 4 |
|
5 |
| -> Vivado 项目路径仅支持 ASCII 字符,注意避免使用中文路径。 |
| 5 | +> Vivado 项目路径仅支持 ASCII 字符,请注意避免使用中文路径。 |
6 | 6 |
|
7 |
| -代码文件均使用 `UTF-8` 编码及 `LF` 行尾,建议使用第三方编辑器,Vivado 相关配置项:`Tools`/`Settings`/`Text Editor`/`Current Editor`/`Custom Editor` |
| 7 | +## 编辑器 |
8 | 8 |
|
9 |
| -笔者使用的编辑器及其插件: |
10 |
| -- [Visual Studio Code](https://code.visualstudio.com/download) |
| 9 | +代码文件均使用 `UTF-8` 编码及 `LF` 行尾,Vivado 内置编辑器功能十分有限,建议使用第三方编辑器。Vivado 相关配置项:`Tools`/`Settings`/`Text Editor`/`Current Editor`/`Custom Editor`。 |
| 10 | + |
| 11 | +推荐使用 [Visual Studio Code](https://code.visualstudio.com/download),对应的第三方编辑器配置定义:`/path/to/vscode -g [file name]:[line number]`,如`"C:\Users\liolok\AppData\Local\Microsoft VS Code\Code.exe" -g [file name]:[line number]`。 |
| 12 | + |
| 13 | +VS Code 相关扩展: |
11 | 14 | - [Verilog HDL - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=leafvmaple.verilog)(`*.v`)
|
12 | 15 | - [Tcl - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=sleutho.tcl)(`*.xdc`)
|
13 | 16 |
|
14 |
| -> VSCode 对应的 Vivado 第三方编辑器配置定义为:`/path/to/vscode -g [file name]:[line number]`,如 `"C:\Users\liolok\AppData\Local\Microsoft VS Code\Code.exe" -g [file name]:[line number]`。 |
15 |
| -
|
16 | 17 | # 实验板卡
|
17 | 18 |
|
18 | 19 | [Xilinx Artix-7](https://www.xilinx.com/products/silicon-devices/fpga/artix-7.html) xc7a100tfgg484-2L
|
|
21 | 22 |
|
22 | 23 | # 配置管脚
|
23 | 24 |
|
24 |
| -> Xinlinx reference: [https://www.xilinx.com/support/packagefiles/a7packages/xc7a100tfgg484pkg.txt](https://www.xilinx.com/support/packagefiles/a7packages/xc7a100tfgg484pkg.txt) |
| 25 | +> Xinlinx 官方资料: [https://www.xilinx.com/support/packagefiles/a7packages/xc7a100tfgg484pkg.txt](https://www.xilinx.com/support/packagefiles/a7packages/xc7a100tfgg484pkg.txt) |
25 | 26 |
|
26 | 27 | ## 快速索引
|
27 | 28 |
|
|
43 | 44 | 表格说明:
|
44 | 45 |
|
45 | 46 | - `PCB`为电路级别的引脚编号,在[板卡图片](#实验板卡)中已标出对应位置;
|
46 |
| -- `Pin`为 FPGA 级别的引脚编号,**约束文件**中配置管脚时需要填写这一项; |
47 |
| -- `Pin Name / Site Type`为芯片级别的引脚名称,前一种命名来自上文中的 Xilinx 官方资料,后一种则来自 Vivado 的 I/O Ports 查询窗口。 |
| 47 | +- `Pin`为 FPGA 级别的引脚编号,在**约束文件**中配置管脚时将会填写这一项,如`set_property PACKAGE_PIN T3 [get_ports {sw[32]}]`; |
| 48 | +- `Pin Name / Site Type`为芯片级别的引脚名称,前者出自上文的 Xilinx [官方资料](#配置管脚),后者出自 Vivado 的 I/O Ports 查询窗口。 |
48 | 49 |
|
49 | 50 | > 每个开关上方均对应一个指示灯,用于指示开关当前状态,亮为高电平,灭为低电平。
|
50 | 51 |
|
|
171 | 172 |
|
172 | 173 | 各段定义参见下图(取自[维基百科](https://zh.wikipedia.org/wiki/七劃管)):
|
173 | 174 |
|
174 |
| - |
| 175 | + |
175 | 176 |
|
176 | 177 | 段选信号为低电平有效,如数码`0`对应`seg = 8b'0000_0011`(从高到低定义为a, b, c, ... g, dp)。
|
177 | 178 |
|
|
0 commit comments