Arty A7 XADC Demo
描述
这个简单的XADC演示项目展示了Arty A7的XADC引脚功能的简单用法。行为如下:
-
随着所选XADC引脚的电压差变大,8个用户LED从右上到左到左至右侧的递增。
-
四个开关选择要从哪个通道读取。
Inventory
-
Arty A7 with a MicroUSB Programming Cable
-
Vivado installation compatible with the latest release of this demo (2022.1)
-
Wires and a circuit to measure
下载和使用说明
First and foremost, releases - consisting of a set of files for download - are only compatible with a specific version of the Xilinx tools, as specified in the name of the release (referred to as arelease tag)。此外,发布仅与板的指定变体兼容。例如,Zybo Z7标记为“ 20/DMA/2020.1”的版本仅适用于板的-20变体和Vivado 2020.1。
The latest release version for this demo is highlighted in green.
Note:从2020.1之前释放FPGA演示,使用了不同的GIT结构,并使用了不同的释放标签命名方案。
Board Variant | 释放标签 | Release Downloads | Setup Instructions |
---|---|---|---|
Arty A7-35 | 35/XADC/2022.1-1 | Release ZIP Downloads | See使用最新版本, below |
Arty A7-100 | 100/XADC/2022.1-1 | Release ZIP Downloads | See使用最新版本, below |
Arty A7-35 | 35/XADC/2021.1-1 | Release ZIP Downloads | See使用最新版本, below |
Arty A7-100 | 100/XADC/2021.1-1 | Release ZIP Downloads | See使用最新版本, below |
Arty A7-35 | 35/XADC/2020.1-1 | Release ZIP Downloads | See使用最新版本, below |
Arty A7-100 | 100/XADC/2020.1-1 | Release ZIP Downloads | See使用最新版本, below |
Arty A7-35 | v2018.2-1 | Release ZIP Downloads | v2018.2-1 github readme |
Arty A7-100 | v2018.2-1 | Release ZIP Downloads | v2018.2-1 github readme |
Note for Advanced Users:All demos for the Arty A7 are provided through theArty-A7repository on Github. Further documentation on the structure of this repository can be found on this wiki'sDigilent FPGA演示GIT存储库页。
有关使用最新版本的说明可以在此下拉列表中找到:
- 使用最新版本
-
Note:在许多Digilent FPGA演示中,此工作流程很常见。屏幕截图可能与您正在使用的演示不符。
重要的:These steps are only to be used with releases for Xilinx tools versions 2020.1 and newer. Older releases may require other flows, as noted in the table of releases.
首先,从上面链接的演示发布页面下载并提取“*.xpr.zip”文件。
- Open a Vivado Project from a Release
-
Launch Vivado
- 建立一个Vivado项目
-
Generate a Bitstream
为了创建可用于编程目标板的文件,需要运行“编译管道”的每个阶段。
This starts withSynthesis。综合创建了逻辑门的描述,并在XDC文件中包含的约束下执行HDL文件所描述的功能所需的连接。要运行合成单击在里面toolbar or在里面Flow Navigator。The output of Synthesis is then passed to Implementation.
执行有几个步骤。始终运行的步骤是选择设计(Optimize the design to fit on the target FPGA),位置设计(Lay out the design in the target FPGA fabric), andRoute Design(Route signals through the fabric). To run Implementation click either在里面toolbar or在里面Flow Navigator。然后将此输出传递到Bitstream Generator。
TheBitstream Generatorgenerates the final output file needed for programming the FPGA. To run Bitstream Generation click either在里面toolbar or在里面Flow Navigator。With no settings changed, the generator will create a '.bit' file.
Depending on the complexity of the design, the board used, and the strength of your computer, the process of building the project can take between 5 and 60 minutes. When complete, a pop up dialog will appear, prompting you to select one of several options. None are relevant for the purposes of this guide, so click取消。The “write_bitstream complete” status message can be seen in the top right corner of the window, indicating that the demo is ready to be deployed to your board.
- 设置Arty A7
-
将MicroUSB编程电缆插入Arty A7的Prog/UART端口中。设置您的电路。在我们的情况下,我们使用了由8 1k欧姆电阻组成的电阻梯子。
- Program a Bitstream onto an FPGA Board
-
可以通过单击可以打开Vivado的硬件管理器Open Hardware Manager在Vivado窗口左侧的流导航器窗格的底部。
The next screen asks if the hardware server is local or remote. If the board is connected to the host computer choose local, if it is connected to another machine choose remote and fill in the主机名和Portfields.
Click下一个接着说。
The final screen shows a summary of the options selected in the wizard. Verify the information and click结束。板现在已连接到硬件服务器。
To program the device with the bit file generated earlier, either click thelink in thegreen bannerat the top of the window or click thebutton in theFlow Navigatorunder。从打开的下拉下,选择the device to program (Example:) and the following window will open:
TheBitstream文件字段应自动填写,并在前面生成的位文件填充。如果没有,请单击按钮位于字段的右端,导航到
/ /并选择位文件(示例:)。Now clickProgram。这将连接到板,清除当前配置,并使用新的位文件进行编程。.runs/impl_1
功能
Applying a voltage to the XADC port
For this demo, A0-A5 are single ended analog pins while A6-A7, A8-A9, and A10-A11 are differential ports.
警告:Take care not to drive analog inputs below the Arty A7's ground or above 1.0V (for differential inputs) or above 3.3V (for single-ended inputs).
LED
Selecting a channel
To display a different channel on the display and LEDs, change the user switches to the desired channel, as seen in the table below.
Channel Pin/s | SW3 | SW2 | SW1 | SW0 |
---|---|---|---|---|
A0 | Down | Down | Down | Down |
A1 | Down | Down | Down | Up |
A2 | Down | Down | Up | Down |
A3 | Down | Down | Up | Up |
A4 | Down | Up | Down | Down |
A5 | Down | Up | Down | Up |
A6-A7 | Down | Up | Up | Down |
A8-A9 | Down | Up | Up | Up |
A10-A11 | Up | Down | Down | Down |
v_p-v_n | Up | Down | Down | Up |
Additional Resources
All materials related to the use of the Arty A7 can be found on itsResource Center。
有关在Vivado创建简单HDL项目的过程的演练,请参阅开始使用仅硬件设计的Vivado。Information on important parts of theGUI, and indirect discussion of the steps required to modify, rebuild, and run this demo in hardware can also be found here.
要获得技术支持,请访问FPGADigilent论坛的部分。