Visible to Intel only — GUID: lga1523608318240
Ixiasoft
1.1. Release Information
1.2. Device Family Support
1.3. Signals
1.4. Parameters
1.5. Register Map
1.6. Using Generic Serial Flash Interface Intel® FPGA IP
1.7. Generic Serial Flash Interface Intel® FPGA IP Reference Design
1.8. Flash Access Using the Generic Serial Flash Interface Intel® FPGA IP
1.9. Nios II HAL Driver
1.10. Generic Serial Flash Interface Intel® FPGA IP User Guide Archives
1.11. Document Revision History for the Generic Serial Flash Interface Intel® FPGA IP User Guide
Visible to Intel only — GUID: lga1523608318240
Ixiasoft
1.7.2.2. Reference Design Application Program
Figure 6. Reference Design Application Program Flow Diagram
Flow diagram sequence description:
- The application program starts with identifying the flash device attached to the FPGA.
Note: The flash devices serve as samples to demonstrate this reference design only.
- The application program performs sector protection and erases the protected sector:
- To perform sector protect, the application program:
- Performs write enable command.
- Performs write status register command to set block protect (BP) bit and Top/Bottom(TB) bit.
- Polls write in progress (WIP) bit ( bit 0 of status register) until it returns a 0 (ready).
- Performs read status register command to check if sector protect operation succeeded or failed.
- To perform sector erase, the application program:
- Performs write enable command.
- Performs sector erase command.
- Polls write in progress (WIP) bit ( bit 0 of status register) until it return a 0 (ready).
- Performs read status register to check whether erase operation succeeded or failed.
- To perform sector protect, the application program:
- Erase error occurred because the sector is protected. The application program clears the error bit through:
- Clear flag status register command (EPCQ-L or Micron*).
- Clear status register command (Cypress*).
- The application program disables the sector protect:
- Performs write enable command.
- Performs write status register command to clear BP bit and TB bit.
- Polls WIP bit ( bit 0 of status register) until it returns a 0 (ready).
- Performs read status register command to check whether BP bit and TB bit has succeeded clear.
- The application program performs flash device programming after the sector is not protected. The application program:
- Performs write memory into the address with empty memory.
- Polls WIP bit (bit 0 of status register) until it returns a 0 (ready)
- Performs read back memory of the address to confirm the address has programmed.
- Repeat Step 2 and read back memory of the address. Memory is not erased because the sector is protected.