|
quartus ii调用modelsim仿真的一些问题
[复制链接]
给位fpga爱好者们,你们好,有谁知道下面的错误是错在哪里了吗?
下面是quartus调用modelsim仿真时出现的错误,波形出不来
Info: Starting NativeLink simulation with ModelSim software
Sourced NativeLink script f:/quartus_install/quartus/common/tcl/internal/nativelink/modelsim.tcl
Warning: File full_add_run_msim_rtl_verilog.do already exists - backing up current file as full_add_run_msim_rtl_verilog.do.bak4
error deleting "msim_transcript": permission denied
Error: NativeLink simulation flow was NOT successful
我验证的是一个全加器的简单的小程序
源程序:
module full_add(a,b,cin,sum,cout);
input a,b,cin;
output sum,cout;
reg sum,cout;
reg m1,m2,m3;
always @(a or b or cin)
begin
sum=(a^b)^cin;
m1=a&b;
m2=b&cin;
m3=a&cin;
cout=(m1|m2)|m3;
end
endmodule
testbench程序:
`include "full_add.v"
module full_add_vlg_tst();
reg eachvec;
reg a;
reg b;
reg cin;
wire cout;
wire sum;
integer i,j,k;
full_add i1 (
.b(b),
.cin(cin),
.cout(cout),
.sum(sum)
);
initial
begin
a=0;
for(i=1;i<16;i=i+1)
#20 a=~a;
end
initial
begin
b=0;
for(j=1;j<16;j=i+1)
#10 b=~b;
end
initial
begin
cin=0;
for(i=1;i<16;i=i+1)
#5 cin=~cin;
end
initial
begin
$monitor($time,,,"%d+%d+%d={%d,%d}",a,b,cin,cout,sum);
#300 $finish;
end
endmodule
quartus自带的仿真波形没问题,
希望有哪位高人指点下,谢谢
|
|