FEATURED · 精选文章

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

发布时间 / 2026/8/6 23:17:42
来源 / 创域科博编辑部
栏目 / 资讯中心
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
RELATED — 相关阅读

相关资讯

LATEST — 最新资讯

最新发布

TODAY — 本日精选

新闻

WEEKLY — 本周精选

新闻

MONTHLY — 本月精选

新闻