public class YosysTools
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SYNTH_XILINX |
static String |
SYNTH_XILINX_FLAG_EDIF |
static String |
SYNTH_XILINX_FLAG_FAMILY_XCUP |
static String |
SYNTH_XILINX_FLAG_FLATTEN |
static String |
SYNTH_XILINX_FLAG_OUT_OF_CONTEXT |
static String |
yosysExec |
Constructor and Description |
---|
YosysTools() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isYosysOnPath()
Checks if yosys is available on current PATH (uses unix 'which' or windows 'where').
|
static void |
run(String command,
Path workDir,
Path... paths)
Run the given command string in Yosys, on the files given.
|
static EDIFNetlist |
synthXilinx(Path... paths)
Call Yosys' 'synth_xilinx' command with the default flags '-family xcvup -flatten
-edif
|
static EDIFNetlist |
synthXilinx(String flags,
Path... paths)
Call Yosys' 'synth_xilinx' command with the given flags on the files given.
|
static EDIFNetlist |
synthXilinxWithWorkDir(Path workDir,
Path... paths)
Call Yosys' 'synth_xilinx' command with the default flags '-family xcvup -flatten
-edif
|
static EDIFNetlist |
synthXilinxWithWorkDir(String flags,
Path workDir,
Path... paths)
Call Yosys' 'synth_xilinx' command with the given flags on the files given.
|
public static final String yosysExec
public static final String SYNTH_XILINX
public static final String SYNTH_XILINX_FLAG_FAMILY_XCUP
public static final String SYNTH_XILINX_FLAG_EDIF
public static final String SYNTH_XILINX_FLAG_FLATTEN
public static final String SYNTH_XILINX_FLAG_OUT_OF_CONTEXT
public static void run(String command, Path workDir, Path... paths)
command
- Yosys command(s), separated by ';'workDir
- Working directorypaths
- Path objects of input filespublic static EDIFNetlist synthXilinxWithWorkDir(String flags, Path workDir, Path... paths)
flags
- String with flags to be provided to 'synth_xilinx', in addition to
'-edif workDir
- Working directorypaths
- Path objects of input filespublic static EDIFNetlist synthXilinxWithWorkDir(Path workDir, Path... paths)
workDir
- Working directorypaths
- Path objects of input filespublic static EDIFNetlist synthXilinx(String flags, Path... paths)
flags
- String with flags to be provided to 'synth_xilinx', in addition to
'-edif paths
- Path objects of input filespublic static EDIFNetlist synthXilinx(Path... paths)
paths
- Path objects of input filespublic static boolean isYosysOnPath()