赞
踩
module second( input wire clk, output reg sec); reg [27:0]q1; always @(posedge clk) begin if(q1==50000000) begin q1<=0; sec<=~sec; end else q1<=q1+1; end endmodule module sixty( input wire clk, output reg [3:0] cnt60_L, output reg [3:0] cnt60_H, output reg carry ); initial begin cnt60_L=8; cnt60_H=5; end always @(posedge clk) begin carry<=0; cnt60_L<=cnt60_L+1; if(cnt60_L==9) begin cnt60_L<=0; cnt60_H<=cn
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。