And now the solution, thank you for all hints.

Hello World
1111



And now the correct code:

LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
--USE ieee.std_logic_unsigned.all;
USE ieee.numeric_std.ALL;

use STD.textio.all;                     -- basic I/O

 
ENTITY t_tb IS
END t_tb;
 
ARCHITECTURE behavior OF t_tb IS
  signal data : signed (15 downto 0);


BEGIN

process

variable my_line : line;  -- type 'line' comes from textio

begin
data<=to_signed(1111,16);
wait for 5 ns;
write(my_line, string'("Hello World"));   -- formatting
               writeline(output, my_line);               -- write to
"output"

 write(my_line,to_integer(data));
 

writeline(output, my_line);   
wait;
   end process;

END;





_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to