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 @(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.
[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.
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.
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.
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]
// 模块
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小时内删除。
留言与评论(共有 0 条评论) |