Forum Discussion
Altera_Forum
Honored Contributor
17 years agoImplementing Power operator
Hi, The power operator available with Verilog takes the base value 2 only !! i.e it will only perform operation: Result = 2 ** exponent. But, say if I want to take the base val...
Altera_Forum
Honored Contributor
17 years agoA base of e.g. 1.01 involves float or fixed point arithmetic that isnt't supported by synthesizable Verilog (or VHDL) standard operators. I think, it can be perfectly achieved by a lookup table, calculated at compile time or externally supplied.
I don't know, if the Quartus Verilog implementation offers compile time calculations with float variables and functions, that allow to perform all calculations in the HDL code, as it's possible with VHDL. Another option is to find a polynomial approximating the exponential function.