Guest
#6596690
What is the fastest / most efficient way to generate a lookup table in VHDL? I have a nonlinear function which I would like to implement and my data is currently available as an array in Matlab. For the lookup table I intended to us a simple case statement but that implies that I had to manually code all the different cases in the VHDL editor, i.e. filling in the data of the table manually into the source file. Is there a proper way how this is done? The only way I see so far would be, to write a MATLAB script which prints the VHDL code based on my data array into a file. This would probably work but seems to be reinventing the wheel since I'm for sure not the first one who has to generate a lookup table in VHDL. So what's the correct solution for such a task?