public class Interchange
extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
IS_GZIPPED
Flag indicating that files are gzipped on output
|
static boolean |
IS_PACKED
Flag indicating use of Packed Cap'n Proto Serialization
|
static String |
LOG_NETLIST_EXT
Standard file extension for a logical netlist in the FPGA Interchange Format
|
static String |
PHYS_NETLIST_EXT
Standard file extension for a physical netlist in the FPGA Interchange Format
|
Constructor and Description |
---|
Interchange() |
Modifier and Type | Method and Description |
---|---|
static Path |
benchmarkDCPvsInterchange(Path dcpPath,
Path edifPath,
Path workingPath) |
static boolean |
isInterchangeFile(String fileName)
Checks if the provided file name is a logical or physical FPGA Interchange
file.
|
static void |
main(String[] args) |
static Design |
readInterchangeDesign(Path filePath)
Reads an FPGA Interchange Format design from a specified file.
|
static Design |
readInterchangeDesign(String fileName)
Reads an FPGA Interchange Format design from a specified file.
|
static Design |
readInterchangeDesign(String logFileName,
String physFileName,
String xdcFileName,
boolean isOutOfContext,
CodePerfTracker t)
Reads a set of existing FPGA Interchange files and returns a new design.
|
static org.capnproto.MessageReader |
readInterchangeFile(String fileName,
org.capnproto.ReaderOptions readOptions)
Common method used to read Interchange files
|
static void |
writeDesignToInterchange(Design design,
String rootFileName)
Writes out a set of Interchange files for the given design.
|
static void |
writeInterchangeFile(String fileName,
org.capnproto.MessageBuilder message)
Common method to write out Interchange files
|
public static boolean IS_PACKED
public static boolean IS_GZIPPED
public static final String LOG_NETLIST_EXT
public static final String PHYS_NETLIST_EXT
public static Design readInterchangeDesign(String fileName)
fileName
- The name of the logical or physical netlist file.public static Design readInterchangeDesign(Path filePath)
filePath
- The path to the logical or physical netlist file.public static Design readInterchangeDesign(String logFileName, String physFileName, String xdcFileName, boolean isOutOfContext, CodePerfTracker t)
logFileName
- The logical netlist file to be loaded.physFileName
- The physical netlist file to be loaded, this can be
null for no placement or routing information.xdcFileName
- The constraints to associate with the design, this can
be null for no constraints.isOutOfContext
- A flag indicating if the design should be marked out of
context.t
- If using an existing CodePerfTracker, this allows
continuity otherwise the default is null (an instance
will be created each time) and will track runtime of
each loading step. To silence this measurement, provide
CodePerfTracker.SILENT
).public static void writeDesignToInterchange(Design design, String rootFileName)
design
- The design in memory to write out.rootFileName
- The root or common name among the output files.public static boolean isInterchangeFile(String fileName)
fileName
- The file name in question.public static void writeInterchangeFile(String fileName, org.capnproto.MessageBuilder message) throws IOException
fileName
- Name of the output file to writemessage
- The message to write to the fileIOException
public static org.capnproto.MessageReader readInterchangeFile(String fileName, org.capnproto.ReaderOptions readOptions) throws IOException
fileName
- Name of the file to readreadOptions
- The reader optionsIOException
public static Path benchmarkDCPvsInterchange(Path dcpPath, Path edifPath, Path workingPath) throws IOException
IOException
public static void main(String[] args) throws IOException
IOException