flux [options] <source.flux>
flux <source.flux> <--verilog|--blif|--json|--edif> <output-file> [--top <module>]
flux --simulate-build <source.flux> -o <executable>
Option
Result
--version
Compiler version
--list-boards
Registered boards and support levels
--describe-board <id>
Pins, memory and peripherals as JSON
Option
Meaning
--emit=<stage>
board, hardware, circuit, flat-circuit, optimized-circuit, logic, optimized-logic, hardblocks, architecture, lut, packed, placed, routed, timed, verilog, fs
--top=<module>
Choose the top module
--board=<id>
Target a board
--device=<technology>
Target a generic device model
--optimize-for=speed|area
Optimization objective
--stats
Report optimization statistics
--quick-map
Faster mapping
--carry-chains
Use carry chains
--period-ps=<n>
Target period for --emit=timed
--clock-period-ps=<clock:n>
Period for one clock
--clock-uncertainty-ps=<clock:n>
Uncertainty for one clock
Option
Meaning
--image-output=<path>
Where to write the image
--manifest-output=<path>
Where to write the pin and image manifest
--experimental-native
Required for experimental backends
flux design.flux --verilog design.v
--blif, --json and --edif use Yosys. Put yosys on PATH or set FLUX_YOSYS. Each command writes one file. EDIF uses AMD 7 Series cells. Add pin and clock constraints in the downstream tool.