大家帮看看这小段代码为什么 蜂鸣器一直响啊?我想让他响1/3时间周期,不响2/3,循环.查了好久啊,高手帮帮忙 feng接到蜂鸣器上,feng=0开始响 module zoumadeng(clk,feng); input clk; output feng; reg feng; reg [26:0]count1;
always@(posedge clk) begin count1<=count1+1; if(count1==30000000) feng=0; / _ring else (count1==90000000) begin feng=1; //ring count1=0; end end endmodule
|