Altera_Forum
Honored Contributor
16 years agoread/write CFI compatible flash
I am in the process of extending the capability of a custom FPGA board that contains a Cyclone III and a StrataFlash 256 MByte flash. Currently the board only uses the flash to store configuration data. The FPGA flash interface is configured in AP mode and the flash is currently loaded by an instantiation of the Programmable Flash Loader in HDL. I would like to use this flash as a storage medium for configuration data and user data that would be accessed during operation. Is this a problem somebody has tackled?
As a first step I would like to be able to load the flash with the configuration and user data. Then I would like to configure the device and be able to read random addresses from the memory space representing user data. If that works then I would need to put appropriate user data in and interface that to my custom processing modules.- Should I use the NIOS II processor to interface to flash?
- If so how would I get the data from the NIOS II processor into custom processing modules on the FPGA.
- How would I inform the NIOS II processor that the custom processing modules are ready for a new piece of data from flash?
- How generalized is the tie in for custom modules in the SOPC Builder?
- Would it be a better approach to write a CFI controller because of ties to custom processing modules?
- Is there a core for a CFI controller that I have overlooked?