• printf() function like C in VHDL ?

    From francis cagney@21:1/5 to gnuarm.del on Fri Nov 13 03:43:55 2020
    Actually I came here because I was wondering about a printf for vhdl. 21 year old thread updated less than 2 years ago.

    There are 2 printf type implementations

    https://github.com/xcthulhu/coded_aperture_vhdl

    c_vhdl library has null terminated strings, regex, stdio, and variable argument printf or sprintf, fprintf. It has not been maintained since 10 years.

    https://github.com/suoto/hdl_string_format

    This one was last updated 5 years ago and is limited

    On Tuesday, 12 February 2019 at 00:00:21 UTC+2, gnuarm.del wrote:
    Do you realize you just replied to a 20 years old thread ?

    Nicolas
    Some things are timeless.... :)

    Rick C.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?=C3=96mer_Ziya_AYDIN?=@21:1/5 to All on Fri Sep 10 07:16:46 2021
    12 Şubat 2019 Salı tarihinde saat 00:22:50 UTC+3 itibarıyla Nicolas Matringe şunları yazdı:
    On 10/02/2019 22:42, Rubel Ahmed wrote:
    On Thursday, January 28, 1999 at 3:00:00 AM UTC-5, Jerome Chaix wrote:
    Is there an existing function in VHDL which is the equivalent of
    printf(%d, var) in language C ?

    I do the following and it works for me. though I am a noob.

    assert false
    report "show me what you got: "&integer'image(myVar) severity NOTE;
    Do you realize you just replied to a 20 years old thread ?

    Nicolas

    That's amazing lol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nikolaos Kavvadias@21:1/5 to All on Mon Sep 13 10:30:22 2021
    Στις Παρασκευή, 10 Σεπτεμβρίου 2021 στις 4:16:49 μ.μ. UTC+2, ο χρήστης Ömer Ziya AYDIN έγραψε:
    12 Şubat 2019 Salı tarihinde saat 00:22:50 UTC+3 itibarıyla Nicolas Matringe şunları yazdı:
    On 10/02/2019 22:42, Rubel Ahmed wrote:
    On Thursday, January 28, 1999 at 3:00:00 AM UTC-5, Jerome Chaix wrote:
    Is there an existing function in VHDL which is the equivalent of
    printf(%d, var) in language C ?

    I used to have the package described in http://bear.ces.cwru.edu/VHDL/doc/snug2002_20040606_slides.pdf

    and had used it once or twice.


    I do the following and it works for me. though I am a noob.

    assert false
    report "show me what you got: "&integer'image(myVar) severity NOTE;
    Do you realize you just replied to a 20 years old thread ?

    Nicolas
    That's amazing lol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)