I need a function that will convert a signal (number) to string, in order to be able to display it on LCD. Unfortunately, I have to use Xilinx ISE 14.7 because Spartan 6 is not supported in Vivado, which does not support VHDL 2008.
Is there any alternative for to_string()
function in VHDL 2002, or I have to implement my own function?
I can't use integer'image()
on signals. For example:
signal counter : integer := 0;
integer'image(counter);
produces a compilation error: "Expression is not constant". I know there are a lot of options, for instance, converting the integer to BCD representation. I just want to know is there a simple and elegant solution to this problem.