仿真错误描述:
作为新手在学习FPGA时的问题,使用Verilog语言在Vivado中编程,在进行仿真时出现错误提示如下:
- [USF-XSim-62] 'compile' step failed with error(s). Please check the Tcl console output or 'G:/FPGA_code/FPGA_Artix7/14_fsm/complex_fsm/complex_fsm/complex_fsm.sim/sim_1/behav/xsim/xvlog.log' file for more information.
- [Vivado 12-4473] Detected error while running simulation. Please correct the issue and retry this operation.

当你会发现你的代码并无语法错误,也无法通过界面进行错误定位:
错误原因:
大部分是由于在你敲代码时有些变量敲的有问题,如本人出现的问题:
module complex_fsm(...);
...
reg [4:0] state;
...
...
always@(posedge sys_clk or negedge sys_rst_n)
if(sys_rst_n == 1'b0)
po_cola <= 1'b0;
else if((stat ==

本文介绍了在学习FPGA过程中遇到的Verilog仿真错误,具体表现为编译失败,错误提示指向xvlog.log文件。问题源于代码中变量拼写错误,将`state`误写为`stat`。解决方法是通过检查xvlog.log文件定位错误位置并修正代码。此案例提醒开发者在编程时要细心检查变量名,确保正确无误。
最低0.47元/天 解锁文章
8万+





