Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The SPI bus can be used during configuration and operation in a plurality of ways as summarized respectively in Table 9 and Table 10. Any other usage of the SPI bus is neither supported nor recommended.

SPI bus for configuration

The SPI bus is used for configuration in two ways by default:

  1. EZ-USB â-º Flashthe USB FX2 microcontroller (master) writes the PROM file (containing the FPGA configuration bitstream) to the SPI serial Flash memory (slave)
  2. FPGA â—„ Flashthe FPGA (master) configures itself in Master SPI mode from the SPI serial Flash memory (slave).

In case (a), the FPGA shall be turned off to release its shared SPI pins.
In case (b), the USB FX2 microcontroller shall three-state (Z = high impedance) its shared SPI pins.

description

usage

EZ-USB FX2LP

FPGA

B2B JM5

serial Flash

EZ-USB â-º Flash

OpenFUT
API

master

off
(S2 = FX2PON,
FX2_PS_EN = 0)

deselected

slave

FPGA â—„ Flash

OpenFUT
API

inactive
SPI_* = Z

master
(SPI_/S = 1)

deselected

slave

B2B JM5 â-º Flash

custom

inactive
SPI_* = Z

off
(S2 = FX2PON,
FX2_PS_EN = 0)

master
(SPI_/S = 0)

slave

Table 9: SPI bus modes for configuration.
The PROM file (containing the FPGA configuration bitstream) can be written to the SPI serial Flash memory (slave) also through the SPI pins of B2B connector JM5 (attached device set to master mode). In this case, the FPGA shall be turned off or three-stated to release its shared SPI pins and the USB FX2 microcontroller shall three-state (Z = high impedance) its shared SPI pins.