Integer to real conversion function
-
05-06-2021 - |
Pergunta
Is there a common conversion function to convert a integer type object to a real type in VHDL? This is for a testbench so synthesizability is a non-issue.
Solução
You can convert integer to real as follows:
signal i: integer;
signal R: Real;
...
R <= Real(i);
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow