|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
# ** Error (suppressible): (vsim-12110) All optimizations are disabled because the -novopt option is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features, please see the User's Manual section on Preserving Object Visibility with vopt. -novopt option is now deprecated and will be removed in future releases.
# Error loading design
——————————————————————————————————————————————————————————
module div2(q,clk,reset);
output q;
input reset;
input clk;
reg q;
always @(posedge clk or posedge reset)
if (reset)
q<=1'b0;
else
q<=~q;
endmodule
——————————————————————————————————————————————————————————
module div2_tb;
reg clk;
reg reset;
div2 d2(q,clk,reset);
always #20 clk=~clk;
initial
begin
clk=1'b0;
reset=1'b1;
#24 reset=1'b0;
end
endmodule
|
|