--flow Option

The efx_run.py script is used to run the flow at the command line. You can use --flow option to direct the software through set actions in the flow.

Table 1. Compilation Commands
Command Description
--flow compile Default. Performs synthesis, place and route, and generates the bitstream hex file.
--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 Runs timing analysis.
If the --tcl_script option is passed, the timing analysis commands in the script are processed and the flow completes. If no script is specified, enters an interactive Tcl console.
Table 2. Simulation Commands
Command Description
--flow rtlsim Performs RTL simulation on the design's source files.
--flow mapsim Performs simulation with the post-synthesis netlist file.
--flow ptsimrtl Simulate the interface after generating interface constraints with the unified netlist option (--un_flow).
--flow ptsimfc Perform full-chip simulation after generating interface constraints with the unified netlist option (--un_flow).
--flow setup_efxlib Creates the initial elaborated library of Efinix primitives for use in VHDL simulation.
Table 3. Programming Commands
Command Description
--flow pgm Creates the bitstream hex file used to configure the device.
--flow program Programs the target device.

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

Run the Complete Flow from the Command Line

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