printf() function like C in VHDL ?...

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.
 
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
 
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
 
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
 
Στις Παρασκευή, 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
 
Στις Παρασκευή, 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
 
Στις Παρασκευή, 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
 

Welcome to EDABoard.com

Sponsor

Back
Top