This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:ztex_boards:ztex_fpga_boards:standalone [2016/05/25 08:26] – [Supported FPGA Boards] stefan | en:ztex_boards:ztex_fpga_boards:standalone [2016/09/15 08:01] – [Standalone Firmware for the EZ-USB FX2] stefan | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Standalone applications ====== | ====== Standalone applications ====== | ||
- | In order to implement standalone applications the Firmware | + | In order to implement standalone applications the Firmware and the Bitstream |
- | At power-on the USB controller boots the Firmware from EEPROM and the Firmware configures the FPGA using a Bitstream stored in Flash. | + | At power-on the USB controller boots the Firmware from EEPROM |
- | The standalone functionality is enabled by two macros in the Firmware source: | + | The Default Firmwares for [[http:// |
+ | standalone functionality can be enabled in user defined Firmware. | ||
+ | |||
+ | ===== Standalone Firmware for the EZ-USB FX2 ===== | ||
+ | On FX2 based FPGA Boards the standalone functionality is enabled by two macros in the Firmware source | ||
<code c> | <code c> | ||
Line 11: | Line 15: | ||
</ | </ | ||
- | The first macro enables flash support and the second one enables automatic FPGA configuration if the Firmware finds a Bitstream in Flash memory | + | The first macro enables flash support and the second one enables automatic FPGA configuration if the Firmware finds a Bitstream in Flash at start-up. |
+ | ===== Standalone Firmware for the EZ-USB FX3 ===== | ||
+ | On FX3 based FPGA Boards the Flash support is always enabled. Automatic FPGA configuration is enabled by default, but can be disabled by < | ||
+ | |||
+ | ===== Loading the Bitstream ===== | ||
There are several ways to upload the Bitstream to the Flash memory: | There are several ways to upload the Bitstream to the Flash memory: | ||
Line 18: | Line 26: | ||
* Using '' | * Using '' | ||
* Using the API: [[http:// | * Using the API: [[http:// | ||
- | * Some FPGA Boards only (see [[standalone&# | + | * FX2 based Series 2 FPGA Boaords: Through JTAG using [[en:ztex_boards:ztex_fpga_boards:indirect_flash_programming|indirect |
- | + | ||
- | ===== Default firmware / Standalone example ===== | + | |
- | + | ||
- | The SDK contains either a default firmware (which is also factory installed on [[http:// | + | |
- | or a '' | + | |
- | + | ||
- | <code c> | + | |
- | # | + | |
- | # | + | |
- | + | ||
- | // selects the target FPGA Board | + | |
- | IDENTITY_UFM_1_11(10.12.0.0, | + | |
- | + | ||
- | // this product string can also used for identification by the host software | + | |
- | # | + | |
- | + | ||
- | // enable Flash support | + | |
- | ENABLE_FLASH; | + | |
- | ENABLE_FLASH_BITSTREAM; | + | |
- | + | ||
- | # | + | |
- | + | ||
- | void main(void) | + | |
- | { | + | |
- | init_USB(); | + | |
- | + | ||
- | while (1) { } // | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | ===== Supported FPGA Boards ===== | + | |
- | + | ||
- | The SDK supports standalone functionality for all ZTEX FPGA Boards with Flash memory, in particular: | + | |
- | + | ||
- | ^ FPGA Board ^ Flash type ^ Configuration speed ^ Indirect | + | |
- | |[[http:// | + | |
- | |[[http:// | + | |
- | |[[http:// | + | |
- | |[[http:// | + | |
- | |[[http:// | + | |
- | |[[http:// | + | |
- | |[[http:// | + | |
- | + | ||
===== Hints for Vivado ===== | ===== Hints for Vivado ===== | ||
With the default bitstream settings of Vivado configuration from SPI Flash may not work. The required setting can be found in the constraints file '' | With the default bitstream settings of Vivado configuration from SPI Flash may not work. The required setting can be found in the constraints file '' |