Integer to real conversion function

27.7k Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

You can convert integer to real as follows:

signal i: integer;
signal R: Real;

...

R <= Real(i);