Hallo, how much clock cycles takes a conv_integer operation?
Many Thanks Marco
Hallo, how much clock cycles takes a conv_integer operation?
Many Thanks Marco
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
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"?
they are from different libraries ...
you should use numeric_std, you should *not* use std_logic_unsigned or std_logic_signed, for reasons see:
overview of conversion functions:
tricks and examples of the numerics:
bye, Michael
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.
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.