Visible to Intel only — GUID: xfo1539849843090
Ixiasoft
Visible to Intel only — GUID: xfo1539849843090
Ixiasoft
1.8. Flash Access Using the Generic Serial Flash Interface Intel® FPGA IP
- Clock and Reset Bridge Intel® FPGA IP
- Generic Serial Flash Interface Intel® FPGA IP
- JTAG to Avalon Master Bridge Intel® FPGA IP
For more information about other components, refer to the Embedded Peripherals IP User Guide.
For SDM-based devices, use the Mailbox Client Intel FPGA IP to access the AS configuration flash.
For Intel® MAX® 10 devices, enable the Disable Dedicated Active Serial Interface and Enable SPI Pins Interface parameter of this IP to access the general purpose QSPI flash.
In this example, System Console is used to access the GSFI Intel® FPGA IP and flash memory. The System Console utilizes the JTAG to Avalon Master Bridge Intel® FPGA IP along with a TCL script.
Example : Sample .tcl script
#set GSFI CSR base address and register map according to Platform Designer #system set base 0x8000000 set control_register [expr {$base + 0x0}] set spi_clock_baud_rate_register [expr {$base + 0x4}] set cs_delay_setting_register [expr {$base + 0x8}] set read_capturing_register [expr {$base + 0xc}] set operating_protocols_setting [expr {$base + 0x10}] set read_instr [expr {$base + 0x14}] set write_instr [expr {$base + 0x18}] set flash_cmd_setting [expr {$base + 0x1c}] set flash_cmd_ctrl [expr {$base + 0x20}] set flash_cmd_addr_register [expr {$base + 0x24}] set flash_cmd_write_data_0 [expr {$base + 0x28}] set flash_cmd_write_data_1 [expr {$base + 0x2c}] set flash_cmd_read_data_0 [expr {$base + 0x30}] set flash_cmd_read_data_1 [expr {$base + 0x34}] #claims JTAG to Avalon Master Bridge service set mp [claim_service master [lindex [get_service_paths master] 0] top] #print the value of Control Register set reg [master_read_32 $mp $control_register 0x1] puts "Control Register : $reg" #you may perform the flash operation here #close JTAG to Avalon Master Bridge service close_service master $mp
For more information on System Console services and commands, refer to the Analyzing and Debugging Designs with System Console.
Flash operations are divided into several categories. Example of operations, registers to use, and sample .tcl scripts for each category are provided.