background image

 

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 

www.latticesemi.com/legal

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 

 

4.4.

 

Configuration 

The FPGA is able to accept the configuration bitstream created by the Lattice Diamond

®

 development tools. 

CrossLink begins fetching configuration data from non-volatile memory. The memory used to configure CrossLink is 
either the internal NVCM, or an external SPI Flash.  

During configuration, the external SPI Flash is accessed in MSPI mode in the following two cases: 

 

Case 1: At HW default state, with NVCM-EXT boot up sequence. 

 

Case 2: If the BOOT_UP_SEQUENCE configuration option has been set as EXT, NVCM-EXT, EXT-NVCM and EXT-EXT 
in the device feature row, the configuration engine uses the MSPI mode. The only setting for BOOT_UP_SEQUENCE 
that does not use the MSPI mode is NVCM.  

Note

: The MSPI persistence has no effect with the availability of MSPI mode to the configuration engine during device 

configuration. 

CrossLink does not leave the Configuration state if there are no memories with valid configuration data. In this case, 
only the SSPI and I

2

C modes may be used to program the device when it is in a blank/erased state. An external SPI 

Master or I2C Master needs to write the Activation Key to the FPGA while CRESETB is held LOW and within 9.5 ms from 
V

CC

 min during power up to enter into SSPI or Slave I

2

C mode. 

4.5.

 

Wake-up 

Wake-up is the transition from configuration mode to User Mode. CrossLink’s fixed four-phase Wake-up sequence 
starts when the device has correctly received all of its configuration data. When all configuration data is received, the 
FPGA asserts an internal DONE status bit. The assertion of the internal DONE causes a Wake-up state machine to run 
that sequences four controls. The four control strobes are: 

 

External CDONE 

 

Global Write Disable (GWDIS) 

 

Global Output Enable (GOE) 

 

Global Set/Reset (GSR) 

In the first phase of the Wake-up process at default software settings, CrossLink releases the Global Output Enable and 
asserts the Global Write Disable. 

When Global Output Enable is asserted, it permits the FPGA’s I/O to exit a high-impedance state and take on their 
programmed output function. The FPGA inputs are always active. The input signals are prevented from performing any 
action on the FPGA flip-flops by the assertion of the Global Set/Reset (GSR). 

The Global Write Disable is a control that overrides the write enable strobe for all RAM logic inside the FPGA. The 
inputs on the FPGA are always active, as mentioned in the Global Output Enable section. Keeping GWDIS asserted 
prevents accidental corruption of the instantiated RAM resources inside the FPGA. 

The second phase of the Wake-up process releases the Global Set/Reset and the Global Write Disable controls. 

The Global Set/Reset is an internal strobe that, when asserted, causes all I/O flip-flops, Look Up Table (LUT) flip-flops, 
distributed RAM output flip-flops, and Embedded Block RAM output flip-flops that have the 

GSR enabled

 attribute to 

be set/cleared per their hardware description language definition. 

The last phase of the Wake-up process is to assert the external CDONE pin. The CDONE pin may also be held LOW 
externally to delay the User Mode entry in order to synchronize with other devices. This behavior is configurable, see 
th

sysCONFIG Pins

 section on page 10 for details on the CDONE pin.  

When the final Wake-up phase is complete, the FPGA enters User Mode. 

4.6.

 

User Mode 

CrossLink enters User Mode immediately when the Wake-up sequence has completed. User Mode is the point in time 
when CrossLink begins performing the logic operations you designed. CrossLink remains in this state until the 
configuration memory is cleared or power is lost. 

Содержание CrossLink

Страница 1: ...CrossLink Programming and Configuration Usage Guide Technical Note FPGA TN 02014 Version 1 2 December 2017...

Страница 2: ...s Default Behavior and Arbitration 8 4 4 Configuration 9 4 5 Wake up 9 4 6 User Mode 9 4 7 Clearing the Configuration Memory and Re initialization 10 4 8 Bitstream PROM Sizes 10 4 9 Configuration Mode...

Страница 3: ...Figure 5 2 I2 C Configuration Logic 20 Figure 5 3 Bitstream Update Using TransFR 21 Figure 5 4 Example Process Flow 22 Figure 6 1 sysCONFIG Preferences in Global Preferences Tab Diamond Spreadsheet Vi...

Страница 4: ...The specifications and information herein are subject to change without notice 4 FPGA TN 02014 1 2 Acronyms in This Document A list of acronyms used in this document Acronym Definition CRC Cyclic Red...

Страница 5: ...an internal Non Volatile Configuration Memory NVCM as well as flexible SPI and I2 C configuration modes CrossLink provides a rich set of features for the programming and configuration of the FPGA Many...

Страница 6: ...the configuration data from the non volatile memory Dummy Byte A dummy byte is any data in which the numeric value is considered to be invalid In some cases external devices controlling the resident...

Страница 7: ...Flow Before it is operational the FPGA goes through a sequence of states including initialization configuration and wake up Figure 4 1 shows the configuration flow Figure 4 1 Configuration Flow The Cr...

Страница 8: ...ring power up or when CRESETB pin toggles from LOW to HIGH or REFRESH command execution the Configuration Logic puts the device into master auto boot mode The device boots either from internal NVCM or...

Страница 9: ...eived the FPGA asserts an internal DONE status bit The assertion of the internal DONE causes a Wake up state machine to run that sequences four controls The four control strobes are External CDONE Glo...

Страница 10: ...mory must be loaded with valid configuration data before the FPGA operates CrossLink provides four modes of loading the configuration data into the SRAM memory The four modes available are Self Downlo...

Страница 11: ...r Mode Table 4 4 Default State in Diamond for each Port sysConfig Port Diamond Default1 CDONE_PORT CDONE_USER_IO SLAVE_SPI_PORT Enable I2C_PORT Disable MASTER_SPI_PORT Disable2 Note 1 This default set...

Страница 12: ...ternal DONE bit defines the beginning of the FPGA Wake up state The CDONE output pin is controlled by the CDONE_PORT and DONE_EX configuration parameter that is modified in the Diamond Spreadsheet Vie...

Страница 13: ...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 Cr...

Страница 14: ...MISO and MCK SPI_SS They are not permitted to be accessed at the same time In Diamond if both the ports are enabled at the same time the flow fails SPI_SS must be deasserted even if recovered for GPIO...

Страница 15: ...iguration sequence at the Initialization phase as described in this Tech Note Holding the CRESETB pin LOW prevents CrossLink from leaving the Initialization phase An external SPI Master can also write...

Страница 16: ...you to recover CrossLink in the event of a programming error For CrossLink to operate correctly using the MSPI configuration mode ensure that The POR of the SPI Flash device is lower than the POR of...

Страница 17: ...tored in external SPI Flash or NVCM If the primary image configuration fails CrossLink attempts to configure itself using a failsafe golden image stored in either external SPI Flash or NVCM The load o...

Страница 18: ...the external SPI Flash 3 Refresh or power cycle Option B Using offline mode to program external SPI Flash 1 Program the external SPI Flash first may be none background mode 2 Program CrossLink interna...

Страница 19: ...ode as per the user specific environment programming master refer to the Programming Tools User Guide document 5 5 I2 C Configuration Mode CrossLink has an I2 C Configuration port for use in accessing...

Страница 20: ...sses Note Although there are four possible combinations of the reserved address bits 1000 0XX only the two combinations listed above are used The remaining two addresses are reserved for future I2C bu...

Страница 21: ...ther Lattice FPGAs provides for the TransFR capability TransFR is described in Minimizing System Interruption During Configuration Using TransFR Technology TN1087 Figure 5 3 is an example of how you c...

Страница 22: ...t is triggered during device wake up after Refresh instruction is issued attention needs to be given in designing I O with following conditions Register output pins Impact on the system board level wh...

Страница 23: ...As provide dedicated I O pins to select the configuration mode CrossLink uses the non volatile Feature Row to select how it will configure The Feature Row s default state needs to be modified in almos...

Страница 24: ...ents you from over assigning I O to the port pins DISABLE This setting disconnects the SPI port pins from the Configuration Logic By itself it does not make the port pins general purpose I O Both SLAV...

Страница 25: ...default mode for building configuration data The configuration bitstream is stored in the Configuration NVCM NVCM EXT This setting boots up the system using the NVCM first If an error occurs the syste...

Страница 26: ...t receives the configuration data using a USERCODE receives the same USERCODE value The TraceID is 64 bits long with the least significant 56 bits being immutable data The 56 bits are a combination of...

Страница 27: ...uration is completed the SRAM is loaded the device wakes up in a predictable fashion If the CrossLink device is the only or the last device in the chain the Wake up process begins when configuration i...

Страница 28: ...hange Summary December 2017 1 2 Updated the Configuration Process and Flow section Removed references to Table 4 1 Updated the Power up Sequence section Added information on upstream sources Changed V...

Страница 29: ...e Version Change Summary February 2017 1 1 Updated the Configuration Ports Default Behavior and Arbitration section with default behavior Updated the Configuration section with two cases Added Note 2...

Страница 30: ...7th Floor 111 SW 5th Avenue Portland OR 97204 USA T 503 268 8000 www latticesemi com...

Отзывы: