拓冰建站拓冰建站
首页 / 资讯中心 / 正文

verilog HDLBits刷题[Building Larger Circuits]“Exams/review2015 count1k”---Counter with period 1000

1、题目Build a counter that counts from 0 to 999, inclusive, with a period of 1000 cycles. The reset input is synchronous, and should reset the counter to 0.2、代码module top_module ( input clk, input reset, output [9:0] q); reg [9:0]cnt; always(posedge clk)begin if(reset) cnt10d0; else if(cnt999) cnt10d0; else cntcnt1; end assign qcnt; endmodule
分享:

看完干货,该让你的企业上线了

免费需求沟通 · 48 小时内出具建站方案 · 河南本地可上门