fixed sim that always assigned the same char
authorAlexander Oh <oh.a@gmx.at>
Tue, 25 May 2010 22:53:01 +0000 (00:53 +0200)
committerAlexander Oh <oh.a@gmx.at>
Wed, 26 May 2010 01:35:01 +0000 (03:35 +0200)
src/beh_pc_communication_tb.vhd

index 9b9a489e4104d05870f44b9184cb9c91a88ee523..7e2d691dee79b73eb52bbf7c90909d0222240adf 100644 (file)
@@ -79,6 +79,7 @@ begin
 
                while not endfile (f) loop
                        readline(f, l);
+                       buf := l.all;
                        i := 1;
                        while i < l'length loop
                                d_done <= '0';
@@ -87,6 +88,7 @@ begin
                                wait for 300 ns;
 
                                d_char <= hbyte(std_logic_vector(to_unsigned(character'pos(buf(i)),8)));
+                               i := i + 1;
                                d_done <= '1';
                                wait for 30 ns;