MATLAB: Convert tansig to vhdl

anntansigvhdl

I am trying to convert tansig in ANN into VHDL. Can Any body help me. I am unuable to do it.

Best Answer

This seems a bit problematic to me, as tansig is a floating point procedure but devices to be programmed via VHDL seldom have enough room to store floating point cores.
How accurate of an approximation does your tansig() calculation have to be?
Do you have the Fixed Point Toolbox?