马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
Quartus 16.1 的Simulator waveform editor無法模擬仿真波形200us,所以利用quartus II 16.1 + modelsim SE進行波形仿真
我使用quartus II 16.1軟件編譯了下列程式:
//////////////////////////////////////////////////////////////////////////
module and_or_gate (a,b,c,d,o1,o2,o3);
input a, b, c, d;
output o1, o2, o3;
reg o2, o3;
assign o1 = ~( (a&b) | (c&d) );
always @ (a or b or c or d) // events only used by simulators
begin
o2 = ~( (a&b) | (c&d) );
end
always
begin
o3 = ~( (a&b) | (c&d) );
end
endmodule
////////////////////////////////////////////////////////////////////////////////
編譯完後沒有任何錯誤報告產生,然後再generate Modelsim Testbench and Script產出兩個
and_or_gate.vwf.vt 和 and_or_gate.vwf.do檔案
完成後開啟modelsim將and_or_gate.vo, and_or_gate.vwf.do, and_or_gate.vwf.vt三個檔案加入到專案進行組譯, 如下圖1
圖1
完成組譯後在Simulatate\start simution進行設置SDF,將reduce SDF error to warmings and disable SDF warmings打勾,如下圖2,3
圖2
圖3
完成後卻出現Error loading Design,如下圖4
圖4
要如何才能進行modelsim 波形仿真???? |