hstring: length fix
[hwmod.git] / src / beh_parser_tb.vhd
index 92b685c5dc31176dcf2e6aada8487b0281f7932c..cb4c5b5c21188f5fa0756f69955ff4e8d1bcfd6d 100644 (file)
@@ -76,12 +76,12 @@ begin
 
                i := 1;
                f_loop : while not endfile(f) loop
-                       realresult := (71 => nul, others => ' ');
+                       realresult := (72 => nul, others => ' ');
 
                        f1_loop : while not endfile(f) loop
                                readline (f, l);
                                input := (others => nul);
-                               if (l'length <= 71) then
+                               if (l'length <= 72) then
                                        input(1 to l'length) := l.all;
                                        if (input(1) = '#') then
                                                next f1_loop;
@@ -97,7 +97,7 @@ begin
                        f2_loop : while not endfile(f) loop
                                readline (f, l);
                                expectedresult := (others => nul);
-                               if (l'length <= 71) then
+                               if (l'length <= 72) then
                                        expectedresult(1 to l'length) := l.all;
                                        if (expectedresult(1) = '#') then
                                                next f2_loop;
@@ -113,10 +113,10 @@ begin
 
                        -- ergebnis string richtig formatieren
                        hstrtmp := expectedresult;
-                       expectedresult := (71 => nul, others => ' ');
-                       for x in 1 to 70 loop
+                       expectedresult := (72 => nul, others => ' ');
+                       for x in 1 to 71 loop
                                if hstrtmp(x) /= nul then
-                                       expectedresult((70-y) + x) := hstrtmp(x);
+                                       expectedresult((71-y) + x) := hstrtmp(x);
                                end if;
                        end loop;
 
@@ -128,7 +128,7 @@ begin
                        icwait(sys_clk, 5);
                        do_it <= '1';
                        run_tc := true;
-                       j := 1; k := 70;
+                       j := 1; k := 71;
 
                        while run_tc loop
                                wait on p_rget, p_wtake, p_finished, finished;