我写了一个程序功能是两个按钮(Din)根据不同的组合在16*16点阵上显示三个字,一种组合动态显示一个字(lout),用状态机来实现,程序编译时没问题,但功能仿真时就出现了很多警告(图1和图2)。不知道为什么,请大家帮忙解决下,如果问题有说不清楚的,请提出。谢谢
以下是显示一个字的程序:
always @(Din or sel_cs)
begin
case(Din)
2'b00: //
begin
case(sel_cs)
s0:
begin
lout<=16'h0000;
NS<=s1;
end
s1:
begin
lout<=16'h100c;
NS<=s2;
end
s2:
begin
lout<=16'h3098;
NS<=s3;
end
s3:
begin
lout<=16'h11a0;
NS<=s4;
end
s4:
begin
lout<=16'h1080;
NS<=s5;
end
s5:
begin
lout<=16'h17fe;
NS<=s6;
end
s6:
begin
lout<=16'hf081;
NS<=s7;
end
s7:
begin
lout<=16'h1c82;
NS<=s8;
end
s8:
begin
lout<=16'h12b0;
NS<=s9;
end
s9:
begin
lout<=16'h1188;
NS<=s10;
end
s10:
begin
lout<=16'h1004;
NS<=s11;
end
s11:
begin
lout<=16'h61e0;
NS<=s12;
end
s12:
begin
lout<=16'h5a10;
NS<=s13;
end
s13:
begin
lout<=16'h4420;
NS<=s14;
end
s14:
begin
lout<=16'h7fff;
NS<=s15;
end
s15:
begin
lout<=16'h0000;
NS<=s0;
end
endcase
end
我刚刚关掉软件重新打开编译仿真了一次,那些警告都没了,其他的情况跟上面的一样,我都不知道为什么,但当我前面的步骤做完后下载时又出现新的问题:下面两个错误
Error: Unable to reset device before configuration
Error: Configuration failed
这是为什么,有谁知道吗,我都想了很多天了,一直卡着,请大家帮忙解决下,感激不尽[attachimg]133910[/attachimg][attachimg]133911[/attachimg][attachimg]133912[/attachimg][attach]133913[/attach]
文章评论(0条评论)
登录后参与讨论