Visible to Intel only — GUID: ees1539854226953
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
1.8.1. Flash Operations that Require Operation Code
Perform the Write Enable Operation for the Flash
1.8.2. Flash Operations to Read Flash Registers
1.8.3. Flash Operations to Write Flash Registers
1.8.4. Flash Operations that Require An Address
1.8.5. Read Memory from the Flash
1.8.6. Program Flash
Visible to Intel only — GUID: ees1539854226953
Ixiasoft
1.8.1. Flash Operations that Require Operation Code
The following flash operations require an operation code:
- Write enable
- Enter 4-byte addressing mode
- Exit 4-byte addressing mode
- Clear flag status register
- Clear status register
The following registers are used for operations that require an operation code:
- Flash command setting register
- Flash command control register
Perform the Write Enable Operation for the Flash
proc write_enable { } {
global mp flash_cmd_setting flash_cmd_ctrl flash_cmd_write_data_0
master_write_32 $mp $flash_cmd_setting 0x00000006
master_write_32 $mp $flash_cmd_ctrl 0x1
}
To perform the write enable operation for the flash, follow these steps:
- Define the global variables.
- Customize the write enable operation by writing to the flash command setting register.
- Set bit [7:0] of this register to 06 as 06h is the operation code of the write enable operation.
- Write 1 to bit 0 of the flash command control register to start the write enable operation.