conv_integer

Hallo, how much clock cycles takes a conv_integer operation?

Many Thanks Marco

Reply to
Marco T.
Loading thread data ...

You cannot calculate with "clock cycles" when using conversion functions. Conversion functions and the corresponding data formats are dissolved by the synthesis tool during synthesis process so that in the end (real hardware) everything is implemented in std_logic/std_logic_vector.

Use "to_integer" with library "ieee.numeric_std.all" instead of conv_integer.

Rgds Andr=E9

Reply to
ALuPin

Use "to_integer" with library "ieee.numeric_std.all" instead of conv_integer.

Rgds André

What is the difference between "to_integer" and "conv_integer"?

Reply to
Marco T.

they are from different libraries ...

you should use numeric_std, you should *not* use std_logic_unsigned or std_logic_signed, for reasons see:

formatting link

overview of conversion functions:

formatting link

tricks and examples of the numerics:

formatting link

bye, Michael

Reply to
Michael Schöberl

Marco

This is only a VHDL function defined in a library. Effectively it in itself is instant. Your speed, frequency, or number of clocks will be determined by the functions arround it and how data is used.

John Adair Enterpoint Ltd. - Home of Raggesdtone1. The $90 Spartan-3 Development Board.

formatting link

Reply to
John Adair

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.