用verilog控制蜂鸣器发声 module fp_verilog(out,clk); output out; input clk; reg[13:0] cn; reg out; always@(posedge clk) begin cn<=cn+1'b1; if (cn==14'd12000) begin cn<=14'd0; out<=~out; end end endmodule
评论星级较低,若资源使用遇到问题可联系上传者,3个工作日内问题未解决可申请退款~