Run the Flow from the Command Line

You can run the software flow from the command line using the efx_run.py Python 3 script. This script is available in the scripts directory.

Compilation commands:

  • --flow compile performs synthesis, place and route, and generates a bitstream hex file (default)
  • --flow map performs synthesis
  • --flow pnr performs place and route
  • --flow full runs the full flow, including RTL and post-synthesis simulation
  • --flow interface generates the interface constraint files
  • --flow sta_tclsh enters the Tcl Console

Simulation only commands:

  • --flow rtlsim performs RTL simulation on the design’s source files
  • --flow mapsim performs simulation with the post-synthesis netlist file

Programming commands:

  • --flow pgm creates the bitstream hex file used to configure the device
  • --flow program programs the target device
Tip: Use --help to display the command-line help and additional options.
The Console supports color output. See Console.

The following example command runs the complete flow on the helloworld design:

Run Complete Flow from Command Line

Linux:
efx_run.py helloworld.xml --flow full
Windows:
efx_run.bat helloworld.xml --flow full