module div50m(clk,co);
input clk;
output co;
reg co;
reg[32:0]q;
[email=always@(posedge]always@(posedge[/email] clk)
begin
if(q==50000000-1)
begin
q<=0;
co<=1;
end
else
begin
q<=q+1;
co<=0;
end
end
endmodule
是个很简单的程序,其中[email=always@(posedge]always@(posedge[/email] clk)程序,input clk并没有对clk赋初值这个程序为什么会有仿真波形图啊? |