if( Max < "0000000000000100") then po := 0; elsif(Max < "0000000000011000") then po := 1; elsif(Max < "0000000001101100") then po := 2; elsif(Max < "0000001100000000") then po := 3; elsif(Max < "0001100000000000") then po := 4; elsif(Max < "0010110000000000") then po := 5; elsif(Max < "0101000000000000") then po := 6; elsif(Max < "0111110000000000") then po := 7; elsif(Max < "1011000000000000") then po := 8; elsif(Max < "1111000000000000") then po := 9; else po := 10; end if; 这里面随便更改比较对象,就会引起重启 或 死机 或 逻辑混乱等现象,请教版主,这是为什么?谢谢! |