模100 计数器module counter100 #(parameter N=100, WIDTH=7)( input clk, input rst_n_a, output reg [WIDTH-1:0] counter, output reg en);always@(posedge clk or negedge rst_n_a) if(!rst_n_a) begin counter<=0; en<=0;end else if(counter==N-1) beg
verilog
2023-06-02
41 点赞
0 评论
62 浏览