Hi,
I was wanting to know if there was a way to auto-generate a mif or hexout file in quartus (or in general verilog) based on the set parameters in a verilog file?
The application is for a NCO function that used a memory lookup (for sin table) approach rather that cordic. The sin table can be auto generated by a perl script that I can write in which I can manually set the memory depth and amplitude resolution (which are parameters of the NCO) however I would like the module to allow the end user to set an arbitrary bit width and phase angle width and at synthesis time have a script or some other clever code generate the required memory file for me.
If anyone has any ideas how to achieve this kind of trickery I would apreciate the advise.
Regards
Paul Solomon