-
whuer
发布于
模拟电子
-
0评论
-
11864次浏览
-
1702人收藏
-
2019-04-13 11:50
//计数器位数:NBITS
//模数:UPTO
module ModuloN_Cntr(Clock, Clear, Q, QBAR);
parameter NBITS = 2, UPTO = 3;
input Clock, Clear;
output [NBITS-1:0]Q, QBAR;
reg [NBITS-1:0]Counter;
always @(posedge Clock)
if(Clear)
...