conv_integer

Feb 28, 2006 4 Replies

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:

formatting link

overview of conversion functions:

formatting link

tricks and examples of the numerics:

formatting link

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.

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required