Modelsim仿真出现的问题,求助大家!!
程序和错误如下:`timescale1ps/1psmodulemuxtwo_vlg_tst();rega;regb;regsl;wireout;muxtwoi1(.a(a...
程序和错误如下:
`timescale 1 ps/ 1 ps
module muxtwo_vlg_tst();
reg a;
reg b;
reg sl;
wire out;
muxtwo i1 (
.a(a),
.b(b),
.out(out),
.sl(sl)
);
initial
begin
a=1;
b=0;
sl=0;
#100 $finish;
end
always
begin
#2 sl=~sl;
#5 a=~a;
#3 b=~b;
end
endmodule
# vsim work.muxtwo_vlg_tst
# ** Note: (vsim-3812) Design is being optimized...
# ** Error: E:/FPGA_Study/modelsim/3/muxtwo_vlg_tst.v(18): Module 'muxtwo' is not defined.
# Optimization failed
# Error loading design 展开
`timescale 1 ps/ 1 ps
module muxtwo_vlg_tst();
reg a;
reg b;
reg sl;
wire out;
muxtwo i1 (
.a(a),
.b(b),
.out(out),
.sl(sl)
);
initial
begin
a=1;
b=0;
sl=0;
#100 $finish;
end
always
begin
#2 sl=~sl;
#5 a=~a;
#3 b=~b;
end
endmodule
# vsim work.muxtwo_vlg_tst
# ** Note: (vsim-3812) Design is being optimized...
# ** Error: E:/FPGA_Study/modelsim/3/muxtwo_vlg_tst.v(18): Module 'muxtwo' is not defined.
# Optimization failed
# Error loading design 展开
1个回答
展开全部
很明显错误的是Error:E:/FPGA_Study/modelsim/3/muxtwo_vlg_tst.v(18): Module 'muxtwo' is not defined.
也就是muxtwo这个模块没定义,你的这个模块的.v文件添加到modelsim工程里了吗?
也就是muxtwo这个模块没定义,你的这个模块的.v文件添加到modelsim工程里了吗?
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询