本帖最后由 jakfens 于 2011-9-16 16:26 编辑
//----------------------------------------------------------//
always@(posedge clk_divide or posedge rst)
begin
if(rst)
begin
{rs,rw,en}<=3'b000;
data<=8'b00000001;
sta<=0;
end
/*while(sta<1023)
begin
sta<=sta+1;
end*/
/*else if(sta<1023)
sta<=sta+1;*/
else repeat(1022)
sta<=sta+1;
case(sta)
400: //0x38 set of the display
begin
{rs,rw,en}<=3'b001;
data<=8'b00111000;
end
410: //0x0c open the display and close the sursor
begin
{rs,rw,en}<=3'b001;
data<=8'b00001100;
end
“Xst:1312 - Loop has iterated 64 times. Use "set -loop_iteration_limit XX" to iterate more.”
RT 设置循环重复次数??怎么设? |