这是我按demo写的0:if(C1==T1MS)i<=i+1'b1;
else rNumber<=Number_Sig[23:20];
1:
if(C1==T1MS)i<=i+1'b1;
else rNumber<=Number_Sig[19:16];
2:
if(C1==T1MS)i<=i+1'b1;
else rNumber<=Number_Sig[15:12];
3:
if(C1==T1MS)i<=i+1'b1;
else rNumber<=Number_Sig[11:8];
4:
if(C1==T1MS)i<=i+1'b1;
else rNumber<=Number_Sig[7:4];
5:
if(C1==T1MS)i<=i+1'b1;
else rNumber<=Number_Sig[3:0];
这是demo里的程序
0:
if( C1 == T1MS ) i <= i + 1'b1;
else rNumber <= Number_Sig[23:20]; //十万位数码管显示
1:
if( C1 == T1MS ) i <= i + 1'b1;
else rNumber <= Number_Sig[19:16]; //万位数码管显示
2:
if( C1 == T1MS ) i <= i + 1'b1;
else rNumber <= Number_Sig[15:12]; //千位数码管显示
3:
if( C1 == T1MS ) i <= i + 1'b1;
else rNumber <= Number_Sig[11:8]; //百位数码管显示
4:
if( C1 == T1MS ) i <= i + 1'b1;
else rNumber <= Number_Sig[7:4]; //十位数码管显示
5:
if( C1 == T1MS ) i <= 4'd0;
else rNumber <= Number_Sig[3:0];
应该是一模一样的啊,但是为啥我的程序功能就会出错,而demo的就没问题呢?谢谢各位了
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>