Using the Command-Line Programmer
To run the Programmer using the command line, use the command:
Command-Line Programmer
Linux:
efx_run.py <project name>.xml --flow program [--pgm_opts [mode=MODE] [settings_file]]
Windows:
efx_run.bat <project name>.xml --flow program [--pgm_opts [mode=MODE] [settings_file]]
Options
--pgm_opts mode specifies the configuration mode. The available modes
are:
| Mode | Description |
|---|---|
| active | SPI Active configuration. |
| passive | SPI Passive configuration. |
| jtag | JTAG programming. See the Efinity Programmer User Guide for more information about programming with the JTAG interface. |
| jtag_bridge | SPI Active using JTAG bridge mode. |
| jtag-bridge_x8 | SPI Active x8 using JTAG bridge mode (used with two flash devices). 1 |
In active mode, the FPGA configures itself from flash memory; in passive
mode, a CPU drives the configuration. If you do not specify the mode, it defaults to
active. For example, to use JTAG mode, use the
command:
efx_run.py <project name>.xml --flow program --pgm_opts mode=jtag--pgm_opts
settings_file specifies a file in which you have saved all of the
programming options. A settings file is useful for performing batch programming of
multiple devices.
Note: See Programming Options for more programming options.
1 Used with two flash devices. Only supported in some
Titanium
Topaz
FPGAs. Refer to the data sheet for the
modes your FPGA supports.