01-16-2018 02:51 PM
I have a Kintex KC705 FPGA with Vivado 2017.4 connected to my PC using a USB-UART cable. I want to upload a .txt file to the FPGA and specifically create a memory region where all the bits of the file are stored, and inspect these bits to see that they match the .txt file. Are there any guides or tutorials to go about doing this, or could anyone shed some light on this? Thanks.
01-17-2018 09:27 AM
You need USB-JTAG to transfer any data to FPGA. Can you provide some more information about what you are trying to do by writing txt files to FPGA?
01-17-2018 10:47 AM
My end goal is to be able to broadcast the file over the GPIO SMA ports. My design approach is:
- Upload a file to the FPGA from my computer, where a ROM is created that stores the bits of the uploaded file
- Connect this memory to pin Y23 and send out each bit triggered on a clock in the form of a physical signal
01-25-2018 08:32 AM
This answer record provides steps to initialize BRAM with text value. This will be fixed to the bitstream and you cannot change values during runtime. If that is what is required, you should be able to set values using xdc file.
For parsing the text file into these xdc commands, you will need to use tcl script commands.please read the following document regarding constraints and tcl:
Another way would be to instantiate a Microblaze in your design and read the txt file and write to GPIO port using the C-language file IO an standalone driver GPIO IO constructs. If you are going with Microblaze, please open the Microblaze Example design in Vivado and follow steps provided here:
01-25-2018 03:42 PM
GPIO through the MicroBlaze is too slow, I want a dedicated hardware module for it in Verilog instead. I found out in the simulation tool how to load the bits in memory and send them out at each positive clock edge, and I need to now generate that physical clock on my FPGA. How would I do this?
01-25-2018 03:50 PM - edited 01-25-2018 03:51 PM
You should be able to get more info about generating clocks from this page of the above document: