vivado常见compile和elaborate错误

阅读: 评论:0

vivado常见compile和elaborate错误

vivado常见compile和elaborate错误

complie error类

在错误的位置赋值或assign

module mod();wire w;reg r;assign w = 1;             // 正确,在initial或always之assignr = 0;                    // 错误,在initial或always之外赋值assign r = 0;             // 错误,在initial或always之外赋值initial beginassign w = 0;         // 错误,在initial或always之内assignr = 1;                // 正确,在initial或always之内赋值assign r = 0;         // 正确,在initial或always之内赋值end
endmodule

[USF-XSim 62] ‘compile’ step failed with error(s) while executing ‘D:/vivado/LED_8light/LED_8light.sim/sim_1/behav/compile.bat’ script. Please check that the file has the correct ‘read/write/execute’ permissions and the Tcl console output for any other possible errors or warnings.

使用了未定义的变量

[USF-XSim-62] ‘compile’ step failed with error(s) while executing ‘D:/vivado/LED_8light/LED_8light.sim/sim_1/behav/compile.bat’ script. Please check that the file has the correct ‘read/write/execute’ permissions and the Tcl console output for any other possible errors or warnings.

在always块中声明变量

always @(count or reset) beginreg [7:0] Y;
end

[USF-XSim 62] ‘compile’ step failed with error(s) while executing ‘D:/vivado/LED_8light/LED_8light.sim/sim_1/behav/compile.bat’ script. Please check that the file has the correct ‘read/write/execute’ permissions and the Tcl console output for any other possible errors or warnings.

重复声明变量

reg [7:0] Y;
wire Y;

[USF-XSim 62] ‘compile’ step failed with error(s) while executing ‘D:/vivado/LED_8light/LED_8light.sim/sim_1/behav/compile.bat’ script. Please check that the file has the correct ‘read/write/execute’ permissions and the Tcl console output for any other possible errors or warnings.

语法错误


  • 参数间没有加逗号
  • 参数最后加了分号
  • 参数前面没加input或output
  • 参数个数不匹配

[USF-XSim 62] ‘compile’ step failed with error(s) while executing ‘D:/vivado/LED_8light/LED_8light.sim/sim_1/behav/compile.bat’ script. Please check that the file has the correct ‘read/write/execute’ permissions and the Tcl console output for any other possible errors or warnings.

在错误的地方使用inut/output

module multiplier_sim();input reg[31:0] multiplicand;input reg[31:0] multiplier;input wire[31:0] product;// 错误:input/output不能定义在模块参数列表之外
endmodule

[USF-XSim 62] ‘compile’ step failed with error(s) while executing ‘D:/vivado/LED_8light/LED_8light.sim/sim_1/behav/compile.bat’ script. Please check that the file has the correct ‘read/write/execute’ permissions and the Tcl console output for any other possible errors or warnings.

在input中使用reg

module ALU(input reg y);
endmodule

[USF-XSim-62] ‘compile’ step failed with error(s) while executing ‘D:/vivado/SinglePeriodCPU/SinglePeriodCPU.sim/sim_1/behav/compile.bat’ script. Please check that the file has the correct ‘read/write/execute’ permissions and the Tcl console output for any other possible errors or warnings.

elaborate error类

参数名字不符

module clock_div(input clk,output reg clk_div = 0);// 函数定义
endmodule// 错误调用
clock_div U1(.clock(clock), // 参数名应为clk,而不是clock.clk_div(clk_sys)
);

[USF-XSim-62] ‘elaborate’ step failed with error(s). Please check the Tcl console output or ‘D:/vivado/LED_8light/LED_8light.sim/sim_1/behav/elaborate.log’ file for more information.

匿名的组件调用

// 禁止匿名调用,应该为
// clock_div U1 (
clock_div ( .clk(clock),.clk_div(clk_sys)
);

[USF-XSim-62] ‘elaborate’ step failed with error(s). Please check the Tcl console output or ‘D:/vivado/LED_8light/LED_8light.sim/sim_1/behav/elaborate.log’ file for more information.
[VRFC 10-1047] module instantiation should have an instance name [“D:/vivado/SinglePeriodCPU/SinglePeriodCPU.srcs/sources_1/new/CPU.v”:95]

传入reg变量给reg参数

// 模块
module led_8lights(input clock,input reset,output reg [7:0] Y);// 模块内容
endmodule// 调用
reg [7:0] Y;  // 错误
wire [7:0] Y; // 正确
led_8lights uut(.clock(clock),.reset(reset),.Y(Y)
);

[VRFC 10-529] concurrent assignment to a non-net Y is not permitted [“D:/vivado/LED_8light/LED_8light.srcs/sim_1/new/led_sim.v”:56]

本文发布于:2024-02-04 05:21:24,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170700026452485.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:常见   错误   vivado   elaborate   compile
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23