16 www.xilinx.com Spartan-3 Generation Configuration User Guide
UG332 (v1.6) October 26, 2009
Figure 3-16: Bypass Programming the FPGA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Figure 3-17: Select the Platform Flash Programming File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Figure 3-18: Program the Platform Flash PROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Figure 3-19: PROM Programming Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Chapter 4: Master SPI Mode
Figure 4-1: SPI Flash Configuration Interface for M25P-compatible Devices . . . . . . . . . . . . . . . . . . . . . . . . 102
Figure 4-2: SPI Flash Configuration Interface for Atmel DataFlash Devices . . . . . . . . . . . . . . . . . . . . . . . . . 103
Figure 4-3: SPI Flash PROM/FPGA Power-On Timing if 3.3V Supply is Last in Power-On Sequence . . 113
Figure 4-4: If Not Using SPI after Configuration, Drive CSO_B Pin High . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Figure 4-5: Using the SPI Flash Interface After Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Figure 4-6: Daisy Chaining from SPI Flash Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Figure 4-7: Multiple, Identical FPGAs Programmed with the Same Bitstream . . . . . . . . . . . . . . . . . . . . . . . 120
Figure 4-8: Using FPGA’s JTAG Test Chain to Program Attached SPI Flash . . . . . . . . . . . . . . . . . . . . . . . . . 125
Figure 4-9: Double-click Generate PROM, ACE or JTAG File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Figure 4-10: Prepare a PROM File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Figure 4-11: Set Options for a 3rd-Party SPI PROM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Figure 4-12: Select SPI PROM Density . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Figure 4-13: Review PROM Formatting Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Figure 4-14: Add FPGA Configuration Bitstream File(s). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Figure 4-15: Generate PROM File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Figure 4-16: iMPACT Supports Direct Programming for SPI Serial Flash Memories. . . . . . . . . . . . . . . . . . 131
Figure 4-17: Select a Previously-formatted PROM File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Figure 4-18: Select a Supported SPI Flash Memory Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Figure 4-19: Directly Program Supported SPI Flash PROM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Figure 4-20: SPI PROM Programming Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Figure 4-21: Indirect Programming Method Uses JTAG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Figure 4-22: Select the FPGA Bitstream File and Enable SPI Programming . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Figure 4-23: iMPACT Uses the JTAG Clock Input TCK for Startup Clock when Programming via JTAG . . .
136
Figure 4-24: Select the SPI PROM Programming FIle
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Figure 4-25: Select SPI Flash PROM Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Figure 4-26: Bypass the Platform Flash PROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Figure 4-27: iMPACT Presents JTAG Chain, Shows Attached Flash PROM . . . . . . . . . . . . . . . . . . . . . . . . . 137
Figure 4-28: SPI PROM Programming Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Figure 4-29: Waveforms for Serial Peripheral Interface (SPI) Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 139
Figure 4-30: Multi-Package Layout for the M25Pxx Family on Spartan-3E Starter Kit . . . . . . . . . . . . . . . . . 142
Chapter 5: Master BPI Mode
Figure 5-1: Spartan-3E FPGA Configured from Parallel NOR Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Figure 5-2: Extended Spartan-3A Family FPGA Configured from Parallel NOR Flash . . . . . . . . . . . . . . . . 145
Figure 5-3: FPGA Supports x8 Interface before Configuration and Optional x16 Interface after Configuration
154