projects
/
hwmod.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allgemein: konstanten verwenden
[hwmod.git]
/
src
/
display.vhd
diff --git
a/src/display.vhd
b/src/display.vhd
index d67a2e9e3e8c8755c56bfefb5ffbabbf02ae3102..95606a205be81bccd7b5f51aac07a0b11d7d045e 100644
(file)
--- 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 =>
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
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
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;
when others => d_zeile_next <= std_logic_vector(unsigned(d_zeile_int) + 1);
end case;