Forum Discussion
USB Mass storage device - Save data to file
- 2 years ago
Hi,
Probably that'll be easier by looping back the data and writing into text file using python.
Thanks,
Best Regards,
Sheng
This is not synthesizable code for an FPGA. An FPGA on its own has no concept of a file system. This would work for a simulation but not synthesis.
You could save data to an on-chip RAM and then output it in some way or you could add a processor like Nios V, run an OS, and have drivers to access external mass storage.
But as your code is right now, it won't save to a file.
It definitely wont. I actually got a idea, please tell me what do you think about it. My project is basically to combine two boards, the DE10-Lite and SAMD21 M0. The SAMD21 board will send the inputs to the DE10-Lite which will do something and the goal was to save the output to a txt file. But now im thinking if i send the output back to the SAMD21 and then save it to a txt file wouldn't that be easier?
Will try to do some testing and tell you the results.