CrossLink Programming and Configuration Usage Guide
Technical Note
© 2015-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at
. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-TN-02014-1.2
13
4.10.2.
Master and Slave SPI Configuration Port Pins
Table 4.5. Master SPI Configuration Port Pins
Pin Name
Function
Direction
Description
MCK
MCK
Output with weak pullup
Master clock used to time data transmission/reception from
the CrossLink Configuration Logic to a slave SPI PROM.
CRESET_B
CRESET_B
Input with weak pullup
CRESETB is used to initiate programming / configuration
Optional: Tie HIGH for MSPI mode
MOSI
MO
Output
This is the Master output which carries configuration
commands to the external SPI PROM.
MISO
MI
Input
This is the input to the Master which carries output data from
the slave SPI PROM to the CrossLink Configuration Logic.
CSN
CSN
Output
CrossLink Master SPI chip select output pin for external SPI
Flash.
Table 4.6. Slave SPI Configuration Port Pins
Pin Name
Function
Direction
Description
SPI_SCK
SPI_SCK
Input with weak pullup
Clock used to time data transmission/reception from an
external SPI master device to the CrossLink Configuration
Logic.
CRESET_B
CRESET_B
Input with weak pullup
CRESETB is used to initiate programming / configuration
Optional: Tie to GND for SSPI mode
MOSI
SI
Input
This is the input to the slave which receives data from the
external SPI master to the CrossLink Configuration Logic.
MISO
SO
Output
This is the output from the slave which carries output data
from the CrossLink Configuration Logic to the external SPI
master.
SPI_SS
SPI_SS
Input with weak pullup
CrossLink Configuration Logic slave SPI chip select input.
MCK/SPI_SCK
The MCK/SPI_SCK, when active, are clocks used to sequentially load the configuration data for the FPGA. The pin
functions as:
The MCK/SPI_SCK pin’s default state for a CrossLink in the Feature Row HW Default Mode state is to act as the
configuration clock (that is MCK or SPI_SCK). This allows an external Slave SPI master controller to program CrossLink.
The maximum SPI_SCK frequency and the data setup/hold parameters can be found in the AC timing section of the
CrossLink Family Data Sheet (FPGA-DS-020017)
. The Feature Row must be configured to ENABLE the Slave SPI Port if
you want to use the port to reprogram CrossLink after it enters User Mode.
The MCK/SPI_SCK pin functions as a Master Clock (MCK) when CrossLink is configured in Dual Boot or External Boot
modes. The MCK becomes an output and provides a reference clock for a SPI Flash attached to the CrossLink’s Master
SPI Configuration port. MCK actively drives until all of the configuration data has been received. When CrossLink enters
User Mode, the MCK output tri-states. This allows the MCK to become a general purpose I/O. The MCK is reserved for
use, in most post-configuration applications, as the reference clock for performing memory transactions with the
external SPI PROM.
CrossLink generates MCK from an internal oscillator. The initial frequency of the MCK is nominally 2 MHz. The MCK
frequency can be altered using the MCCLK_FREQ parameter. You can select the MCCLK_FREQ using the Diamond
Spreadsheet View. Following is a complete list of supported MCCLK frequencies:
2 MHz
3 MHz
6 MHz
12 MHz
24 MHz
48 MHz