Example for Parameter File upon FPGA load from Flash
Hello all and Happy Monday.
I have been going through the tedious task of recompiling code every time I want to change a parameter within my HDL code. For example, I have a PID-loop controller that has Kp, Ki and Kd for the Proportional, Integral and Derivative Gains. We changed hardware and as a result, I needed to retune these values. So, as it takes 5+ minutes to recompile to see the difference between a set of parameters, I got to thinking...is it possible to load some of these values in at boot-time from the Flash after the FPGA has loaded itself? This way, I'd add some text file or a binary file to the *.bit file when I'm making the *.mcs file and jamming it into the Flash. Technically, I could even address some specific part of the Flash and read parameters until I get to some ENDFILE parameter.
Presently, I'm using the Spartan-3E Development Board as a tester.
Has anyone ever done this or is there an example of this out there? I'd probably dump the majority of my parameters into the Flash so that the code is highly configurable without a recompile.