X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hwmod.git;a=blobdiff_plain;f=src%2Fdisplay.vhd;h=95606a205be81bccd7b5f51aac07a0b11d7d045e;hp=d67a2e9e3e8c8755c56bfefb5ffbabbf02ae3102;hb=b42b2b9d669e1d12db43c70704b4657901d1ab02;hpb=d070f8eadaa8f62b9c5c0709f9e447eb24d590d9 diff --git a/src/display.vhd b/src/display.vhd index d67a2e9..95606a2 100644 --- a/src/display.vhd +++ b/src/display.vhd @@ -171,7 +171,7 @@ begin istate_next <= IS_RESULT1_2_RESULT2; state_next <= S_WAIT; when S_READ_RESULT_2 => - if unsigned(d_spalte_int) /= 70 then + if unsigned(d_spalte_int) /= HSPALTE_MAX-1 then state_next <= S_COUNTUP; istate_next <= IS_RESULT1_2_RESULT2; else @@ -293,7 +293,7 @@ begin d_spalte_next <= (others => '0'); case d_zeile_int is when - std_logic_vector(to_unsigned((49*2)+1,d_zeile_int'length)) => d_zeile_next <= (others => '0'); + std_logic_vector(to_unsigned(HZEILE_MAX-1,d_zeile_int'length)) => d_zeile_next <= (others => '0'); when others => d_zeile_next <= std_logic_vector(unsigned(d_zeile_int) + 1); end case;