Re: Convert time to string for textio?

Discussion in 'VHDL' started by bknpk@hotmail.com, Aug 13, 2013.

  1. Guest

    בת×ריך ×™×•× ×—×ž×™×©×™, 17 בינו×ר 2002 15:10:08 UTC+2, מ×ת Pamm:
    > How can I solve this problem?


    code example:
    First call the text library:
    use STD.textio.all;
    use IEEE.STD_LOGIC_TEXTIO.all;

    In the process declare a line variable like this:
    variable my_line : line;


    Now you can print in your code. Here is an example:
    write(my_line, string'(" HMASTER_q "));
    STD.textio.hwrite(my_line, HMASTER_q);
    write(my_line, string'(" at "));
    write(my_line, now);
    writeline(output, my_line);

    taken from bknpk vhdl
    http://bknpk.no-ip.biz/my_web/MiscellaneousHW/vhdl_print_debug_tip.html
    , Aug 13, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pedro Claro

    the textio lib and std_logic_textio

    Pedro Claro, Jul 25, 2003, in forum: VHDL
    Replies:
    3
    Views:
    10,561
    Mike Treseler
    Jul 28, 2003
  2. Pasacco

    textio error

    Pasacco, May 2, 2005, in forum: VHDL
    Replies:
    3
    Views:
    3,187
    Pasacco
    May 3, 2005
  3. Teten
    Replies:
    0
    Views:
    1,301
    Teten
    Sep 1, 2005
  4. Replies:
    1
    Views:
    775
    Paul Boddie
    Mar 11, 2007
  5. Ruwan Budha
    Replies:
    4
    Views:
    1,069
    Kirk Haines
    Mar 9, 2011
Loading...

Share This Page