03-31-2020 04:45 AM
Can I combine the FPGA code for a SPARTAN 6 with other data in a '.bit' file to load into Flash? The application in the FPGA will use these "other data". It could be e.g. a table over one period of the sine function.
How large will the code for a XC6SLX9 be? Always the same or dependent upon the complexity of the Application? Where could I let the "other data" begin? How do I format the '.bit' file? Shall I have one '.bit' file for the FPGA code and one for the "other data"?
/dindea
03-31-2020 06:00 AM - edited 03-31-2020 06:02 AM
The size of the bit file for any particular FPGA, is inherently fixed, as on every configuration, every bit of the FPGA that can be configured is set to a 1 or a 0.
Adding data to a bit file, you can't do as such,
the programming tools are designed to check the bit file length, and have error checking built in, so if you "modify" the bit file, the programming will fail.
Refer back to previous forum post
https://forums.xilinx.com/t5/FPGA-Configuration/Storing-user-defined-data-in-a-configuration-flash-memory/m-p/1090080
03-31-2020 07:41 AM
Thank you.
I am not very surprised at your answer. It seems the way to go is to write my own application,
more correct my two applications: One in VHDL for the FPGA and one in (e.g.) C++ to send the
data to the FPGA over USB.
Is the FPGA erased when I upload the FPGA code? If not, it will not make difference which I do first: Upload the FPGA code or
write my own data.
/dindea
03-31-2020 08:31 AM
03-31-2020 08:40 AM
If you need to use the flash to hold some data that can be accessed while the FPGA is configured, you probably need to use the ICAP primitive. Look in the Spartan6 FPGA Configuration User's Guide UG380.