我写了一个程序功能是两个按钮(Din)根据不同的组合在16*16点阵上显示三个字,一种组合动态显示一个字(lout),用状态机来实现,程序编译时没问题,但功能仿真时就出现了很多警告(图1和图2)。不知道为什么,请大家帮忙解决下,如果问题有说不清楚的,请提出。谢谢
以下是显示一个字的程序:
[email=always@(Din]always@(Din[/email] 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 |