Gast
#387993
Ich will mit folgendem VHDL-Code 48 Bit Hex aus einer Zeile einer Textdatei lesen und die Werte in eine andere Datei schreiben.Das Problem ist,bis 40 Bit funktioniert das wunderbar.Bei 48 Bit bekomme ich die Fehlermeldung "at 0 ns: Error: HREAD Error: Failed to read the STRING".Vielleicht hat hier jemand eine Idee,woran das liegen könnte. Mfg Heino library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_textio.all; use std.textio.all; entity test is end; architecture behave of test is subtype WORD is std_logic_vector(7 downto 0); begin fillram : process variable invec : WORD; variable line_in : line; variable line_out : line; file in_txt : text is in "E:/Input.txt"; file out_txt : text is out "E:/output.txt"; begin readline(in_txt,line_in); for i in 0 to 5 loop hread(line_in,invec); hwrite(line_out,invec); end loop; writeline(out_txt,line_out); wait; end process; end;