Forum Discussion
I'm going to assume CFI flash and answer from perspective of FPGA design. (If not correct, you can clarify your question.) You can instantiate a Nios II cpu core to interface to the flash and then use driver (i.e., C code) or Nios Flash Programmer to read/write the flash. Another way is to instantiate only the Flash CFI core from Altera and a couple of Avalon MM Masters to interface your application logic to the flash. This way, writing to a set of registers in your application logic will read/write flash. (See attachment for example instantiation, it may help or it may confuse you further.) Yet another way is to write your own state machine to bridge between your application logic and the flash. This is what the Altera's CFI Flash core basically is, just a simple state machine. Hope this points you in the right direction.
--- Quote Start --- hello all I want to save some setting for my application need, so i want to use the flash, so how can i write and read from flash using driver or directly from applcation --- Quote End ---