Forum Discussion
Altera_Forum
Honored Contributor
11 years ago'real' bit-accuracy, and bypassing 'integer' to make 'signed/unsigned' constant value
Greetings All: I am currently working on some DSP filtering. I create constant values for the coefficients required based on the generic values. For example...
calc_coef := to_signe...
Altera_Forum
Honored Contributor
11 years agoHave a look at the float_pkg (that is part of the VHDL 2008 spec). I wouldnt try using any of the float types for actual logic, but for constant calculation it should work and bypass the integer. You can get a '93 compatible version (that should work with quartus) here:
http://www.vhdl.org/fphdl/