我是初学者菜鸟,求大神告诉这个程序是什么意思。

2019-07-15 23:17发布

// gen a 200K CLK for work counter count
always @(posedge sys_clk or negedge sys_rst_n) begin
if (sys_rst_n ==1'b0)
clk_200k <= 10'b0;
else if ((counter_div >= 0 ) && (counter_div < 125))
clk_200k <= 10'b0;
else if ((counter_div >= 125) && (counter_div < 250))
clk_200k <= 10'b1;
else if ((counter_div >= 250) && (counter_div < 375))
clk_200k <= 10'b0;
else if ((counter_div >= 375) && (counter_div < 500))
clk_200k <= 10'b1;
else if ((counter_div >= 500) && (counter_div < 625))
clk_200k <= 10'b0;
else if ((counter_div >= 625) && (counter_div < 750))
clk_200k <= 10'b1;
else if ((counter_div >= 750) && (counter_div < 875))
clk_200k <= 10'b0;
else if ((counter_div >= 875) && (counter_div < 1000))
clk_200k <= 10'b1;
else ;


友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。