12-03-2014 06:58 AM
I'm working on a project that is using a BPI flash for configuring a series 7 device. How can I save data to the flash after configuation? Do I use the xilflash library? I would like to use it as a storage device so I can restore the state of my program after a power cycle.
Also, I have another project using a series 7 device, but it uses a SPI flash for configuration and also has a parallel flash similar to the BPI flash. What kind of IP core do I use in Vivado to be able to access the parallel flash?
I hope I have this in the correct forum.
12-03-2014 08:06 AM - edited 12-03-2014 08:06 AM
There are two relevant libraries provided as part of install:
1. LibXil Flash that provides APIs for parallel flash. Usually, the parallel flash device require AXI External Memory Controller (AXI EMC) IP to be present in the hardware.
2. LibXil Isf that provides APIs for serial flash. The serial devices require AXI Quad SPI (or PS7 QSPI/SPI when using zynq) IP to be present in the hardware.
The OS and Libraries Document contains the details on the APIs provided by these libraries:
Both these libraries provide 'write' API that allows the user to write to the flash. You can try them out.
12-08-2014 09:17 AM
I noticed that AXI EMC doesnt have a STARTUP primative like AXI QSPI to allow the use of CCLK after configuration. If I use the parallel flash as a boot device, how do I hook up the clock to it if I want to read/write after configuration. Can I still use CCLK? I know Vivado will tell me I cant touch the pin.
12-14-2014 05:33 PM
Would that be possible to instantiate the startup primitive and stich this to the EMC IP?
12-15-2014 10:19 AM
I guess you could try connecting a startup primative to the AXI_EMC IP. I could also just tie another pin to the CCLK pin on a board and use that extra pin as the clock for the parallel flash after configuration. I'm just curious if there was something that took care of clocking configuration PROMs after the FPGA is configured internally so I don't have to make an external modification.
08-31-2017 10:14 AM
hi... i dnt know how read and write data from bpi flash in ml605 board. can anyone help me?