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
/
post_parser_tb.vhd
diff --git
a/src/post_parser_tb.vhd
b/src/post_parser_tb.vhd
index 8ba3dd5fbd6ea8d3c806bc94f945ce02afe2175d..e80193c63a643c30104066001889736933cb77f4 100644
(file)
--- a/
src/post_parser_tb.vhd
+++ b/
src/post_parser_tb.vhd
@@
-91,12
+91,12
@@
begin
i := 1;
f_loop : while not endfile(f) loop
i := 1;
f_loop : while not endfile(f) loop
- realresult := (
72
=> nul, others => ' ');
+ realresult := (
HSPALTE_MAX+1
=> nul, others => ' ');
f1_loop : while not endfile(f) loop
readline (f, l);
input := (others => nul);
f1_loop : while not endfile(f) loop
readline (f, l);
input := (others => nul);
- if (l'length <=
72
) then
+ if (l'length <=
HSPALTE_MAX+1
) then
input(1 to l'length) := l.all;
if (input(1) = '#') then
next f1_loop;
input(1 to l'length) := l.all;
if (input(1) = '#') then
next f1_loop;
@@
-112,7
+112,7
@@
begin
f2_loop : while not endfile(f) loop
readline (f, l);
expectedresult := (others => nul);
f2_loop : while not endfile(f) loop
readline (f, l);
expectedresult := (others => nul);
- if (l'length <=
72
) then
+ if (l'length <=
HSPALTE_MAX+1
) then
expectedresult(1 to l'length) := l.all;
if (expectedresult(1) = '#') then
next f2_loop;
expectedresult(1 to l'length) := l.all;
if (expectedresult(1) = '#') then
next f2_loop;
@@
-128,10
+128,10
@@
begin
-- ergebnis string richtig formatieren
hstrtmp := expectedresult;
-- ergebnis string richtig formatieren
hstrtmp := expectedresult;
- expectedresult := (
72
=> nul, others => ' ');
- for x in 1 to
71
loop
+ expectedresult := (
HSPALTE_MAX+1
=> nul, others => ' ');
+ for x in 1 to
HSPALTE_MAX
loop
if hstrtmp(x) /= nul then
if hstrtmp(x) /= nul then
- expectedresult((
71
-y) + x) := hstrtmp(x);
+ expectedresult((
HSPALTE_MAX
-y) + x) := hstrtmp(x);
end if;
end loop;
end if;
end loop;
@@
-143,7
+143,7
@@
begin
icwait(sys_clk, 5);
do_it <= '1';
run_tc := true;
icwait(sys_clk, 5);
do_it <= '1';
run_tc := true;
- j := 1; k :=
71
;
+ j := 1; k :=
HSPALTE_MAX
;
while run_tc loop
wait on p_rget, p_wtake, p_finished, finished;
while run_tc loop
wait on p_rget, p_wtake, p_finished, finished;