bingling512 当前离线
注册会员
你这个程序如果count=n的话,结果实现的是2n倍的分频。
因为你每个 n 翻转一次,周期就是 2n 嘛
always @(posedge clk)
if(countx==count)
outdata<=~outdata; //计数满, 输出翻转
countx<=0; //计数器清零
else
countx<=countx+1;
TOP