Vivado编译常见错误合集(一)

引言:本文对Vivado编译时常见的错误或者关键警告做一些梳理汇总,便于日后归纳总结。

1. 普通IO引脚约束为时钟时报错。

原因:Xilinx Vivado开发环境编译HDL时,对时钟信号设置了编译规则,如果时钟由于硬件设计原因分配到了普通IO上,而非_SRCC或者_MRCC专用时钟管脚上时,编译器就会提示错误。

措施:可在XDC引脚约束中添加一条语句:

set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets adc_clk]
2. [Synth 8-1751] cannot index into non-array adc_data。

原因:数据位宽不对,定义数据时定义了一位位宽,实际需要16位位宽。

措施:修改位宽为16位。
3. [Synth 8-2715] syntax error near。

原因:此类错误大多是语法问题,如逗号,括号,冒号之类。

措施:根据错误信息提示,定位到错误的行数,仔细查看是否存在上述问题。
4. [Synth 8-3352] multi-driven net Q with 2nd driver pin 'GND。

原因:信号被多处驱动,在多个 always 语句块中被赋值。

措施:程序设计应避免此类情况的发生,此时应该考虑重新设计程序。
5. [Opt 31-67] Problem: A LUT2 cell in the design is missing a connection on input pin I0, which is used by the LUT equation. This pin has either been left unconnected in the design or the connection was removed due to the trimming of unused logic. The LUT cell name is: logic_[0]_i_1

原因:某个input没有上层数据的输入。

措施:set_property DONT_TOUCH true [get_cells <lut1_name>]。
6. [Synth 8-3352] multi-driven net count[9] with 2nd driver pin 'cnt_reg[9]/Q'

原因:在程序设计过程中出现了变量的重复定义。

措施:把重复定义的变量去除即可。
7. [Synth 8-1031] cnt is not declared

原因:信号没有被声明,多出现在中间信号。

措施:给中间信号添加声明,如 reg、wire。
8. The debug port 'u_ila_0/probe4' has 1 unconnected channels (bits). This will cause errors during implementation。

原因:使用ILA时常见的错误,意思是有一些接口没有连接。

措施:检查ILA的例化,1)是不是全部的probe都连到了信号上。

2)每一个probe和连接的信号位宽是否一致,不一致的话也会出现这个错误。
9.[Synth 8-2576] procedural assignment to a non-register data is not permitted。

原因:信号没有被声明,多出在输出信号下。

措施:信号在 always 语句块中,被赋值的信号应该添加类型 reg。
10. [Common 17-680] Path length exceeds 260-Byte maximum allowed by Windows。

原因:文件路径太长。

措施:缩短工程路径。
11. [Synth 8-7023] instance 'u_count' of module 'count' has 7 connections declared, but only 6 given。

原因:信号位宽多余。

措施:给与信号正确的位宽,或不管也可以,Vivado 会自动优化多余的位线。
12. ordered port connections cannot be mixed with named port connections。

原因:语法错误。

措施:例化模块时符号错误,检查 "." 和 "," 有没有多和少,最后例化的参数后面没有 ","。
13. [Common 17-39] 'open_hw_target' failed due to earlier errors。

原因:无法找到下载链。

措施:查看下载器连接,连接是否牢固,或开发板是否上电。
14. [[DRC BIVC-1] the following port in this bank have conflicting VCCOs: sys_clk (LVCMOS18,requiring VCCO=1.800)。

原因:管脚未做约束。

措施:可以在XDC约束文件中加入时钟约束:set_property IOSTANDARD LVCMOS33 [get_ports sys_clk] set_property PACKAGE_PIN R4 [get_ports sys_clk]。
15. [Common 17-55] 'set_property' expects at least one object。

原因:XDC约束文件中存在一个无用的管脚约束,可能是上个设计遗留或者疏忽造成。

措施:删除该管脚约束即可。
16. [Opt 31-67] Problem: A LUT4 cell in the design is missing a connection on input pin l1, which is used by the LUT equatoin. This pin has either been left unconnected in the design or the connection was removed due to the trimming of unused。

原因:存在port没有连接。

措施:error会指出出问题cell的path,去追一下就可以了,一般来说不用追到最底层,在前面几级就能发现有些port没连。

欢迎关注FPGA技术实战公众号,喜欢就多多转发吧!

相关推荐
步达硬件1 天前
【FPGA】DP、HDMI、USB4、GPMI、eDP、LVDS等音视频协议及性能对比
fpga开发
-木槿昔年-2 天前
【米尔-安路MYD-YM90X创意秀】飞龙派学习和PS串口实践
学习·fpga开发
Aaron15882 天前
基于RFSOC+VU13P+GPU架构在雷达电子战的技术
人工智能·算法·fpga开发·架构·硬件工程·信号处理·基带工程
jifengzhiling2 天前
伺服驱动器中DSP与FPGA高效协同架构解析
fpga开发·foc电机控制
太爱学习了2 天前
FPGA图像处理之:图像畸变矫正原理及matlab与fpga实现
图像处理·matlab·fpga开发
技术性摸鱼3 天前
FPGA选型参数
fpga开发
FPGA_小田老师3 天前
ibert 7 Series GT:IBERT远近端(内外)环回测试
fpga开发·ibert·gt测试·近端pcs环回·近端pma环回·远端pcs环回·远端pma环回
尤老师FPGA3 天前
【无标题】
fpga开发
175063319453 天前
VIVADO VLA VIO 硬件调试 降采样
fpga开发
FPGA小迷弟3 天前
基于FPGA开发高速ADC/DAC芯片笔记
图像处理·fpga开发·数据采集·fpga·adc