标签:脉冲 div mod lse nbsp style color end class
按时间周期性产生脉冲:
module maichong ( output q1,q2,q3,
input clk, input d, input rst ); reg q; always @ (posedge clk or negedge clk) begin if(!rst) q<=0; else d[2:1]<=d[1:0];
d[0]<=d[2];
q1<=d[2];
q2<=d[1];
q3<=d[0]; end
标签:脉冲 div mod lse nbsp style color end class
原文地址:https://www.cnblogs.com/baihuashan/p/11757493.html