UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor jkirby
Visitor
11,376 Views
Registered: ‎06-07-2011

lack of support for to-string

Jump to solution

I activated VHDL2008 language support in Vivado 2015.3 and can't seem to get it to recognize the to_string  or to_hstring function.

 

I keep getting ERROR: [VRFC 10-91] to_string is not declared. and

ERROR: [VRFC 10-91] to_hstring is not declared.

 

The libraries I am using are :

library std;            use std.textio.all;
library ieee;           use ieee.std_logic_1164.all;
                        use ieee.numeric_std.all;
                        use ieee.std_logic_textio.all;

 

An example of use is:

report "WARNING : Address : " & to_hstring(rxData(7 downto 1))
   severity warning;

 

 

What am I missing?

 

John K.

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
20,710 Views
Registered: ‎08-10-2015

Re: lack of support for to-string

Jump to solution

Hi john,

 

I think you are running VHDL2008 file with VHDL file type. I tried simple design with VHDL2008 file type It is working fine with to_hstring and to_string is not supported yet.

Please use -vhdl2008 swicth to run VHDL2008.

The following is the usage :

xvhdl -2008 <vhdll2008 filename>

 

 

- Sunilkumar

View solution in original post

0 Kudos
8 Replies
Xilinx Employee
Xilinx Employee
20,711 Views
Registered: ‎08-10-2015

Re: lack of support for to-string

Jump to solution

Hi john,

 

I think you are running VHDL2008 file with VHDL file type. I tried simple design with VHDL2008 file type It is working fine with to_hstring and to_string is not supported yet.

Please use -vhdl2008 swicth to run VHDL2008.

The following is the usage :

xvhdl -2008 <vhdll2008 filename>

 

 

- Sunilkumar

View solution in original post

0 Kudos
Xilinx Employee
Xilinx Employee
11,344 Views
Registered: ‎10-24-2013

Re: lack of support for to-string

Jump to solution

Hi @jkirby

 

Refer to Appendix-E of http://www.xilinx.com/support/documentation/sw_manuals/xilinx2015_3/ug900-vivado-logic-simulation.pdf for details on using VHDL2008 with Vivado simulator.

Thanks,Vijay
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Explorer
Explorer
11,318 Views
Registered: ‎04-28-2015

Re: lack of support for to-string

Jump to solution

Hi @jkirby

 

Were you able to use to_string/to_hstring in Vivado?
Please refer to http://www.xilinx.com/support/answers/62005.html for information on how to set up VHDL 2008 in Vivado 2015.3.

 

Let us know if you are facing any other issue regarding this.

 

Regards,

Tushar.

0 Kudos
Visitor jkirby
Visitor
11,303 Views
Registered: ‎06-07-2011

Re: lack of support for to-string

Jump to solution

I had to create a procedure to do this. Xilinx doesn't seem to support to_string ot to_hstring.

0 Kudos
Advisor ronnywebers
Advisor
3,371 Views
Registered: ‎10-10-2014

Re: lack of support for to-string

Jump to solution

@sunilku, any news on to_string support in Vivado VHDL 2008? Currently we're at 2017.2 ...

** kudo if the answer was helpful. Accept as solution if your question is answered **
Highlighted
Explorer
Explorer
2,994 Views
Registered: ‎11-12-2007

Re: lack of support for to-string

Jump to solution

It's still not workin with 2018.1 :-(

Observer kriskoorndyk
Observer
1,036 Views
Registered: ‎04-24-2019

Re: lack of support for to-string

Jump to solution

https://www.xilinx.com/support/answers/51502.html

"VHDL-2008 is supported in simulation from Vivado 2015.3."

 

That is clearly not the case and It's a shame.

 

0 Kudos
Visitor htanwar922
Visitor
421 Views
Registered: ‎05-03-2019

Re: lack of support for to-string

Jump to solution

If it is only for debugging purposes, then use this code to print in console (or you can modify slightly to convert to string):

library ieee;
use ieee.std_logic_1164.all;

use std.textio.all;
use ieee.std_logic_textio.all;

procedure writeproc(sig: in std_logic_vector; s : string) is
variable li : line;
variable str : string(1 to sig'length);
file f_in : text; -- open read_mode is "output";
file f_out : text; -- open write_mode is "output";
begin
file_open(f_out, "output", write_mode);
write(li, std_logic_vector(sig));
write(li, lf); writeline(f_out, li);
file_close(f_out);
file_open(f_in, "output", read_mode);
readline(f_in, li);
read(li, str);
file_close(f_in);
report "read " & s & str;
end procedure writeproc;

0 Kudos