public class XDCParser
extends Object
EdifCellLookup to specify how to rewrite constraints.
For a regular, non-rewritten netlist, users should use RegularEdifCellLookup.
If no netlist is present, a null lookup will leave more complex get_cells calls unevaluated
as unsupported constraints.
Created on: Jul 27, 2015| Constructor and Description |
|---|
XDCParser() |
| Modifier and Type | Method and Description |
|---|---|
static <T> tcl.lang.Interp |
makeTclInterp(XDCConstraints constraints,
Device dev,
EdifCellLookup<T> cellLookup)
Create a tcl interpreter with XDC parsing commands
Cell references are intentionally never disposed
(see
TclHashIdentifiedObject), so lifetime of this interpreter
should be limited. |
static XDCConstraints |
parseXDC(Device dev,
List<String> lines,
EdifCellLookup<?> cellLookup)
Parse XDC
|
static XDCConstraints |
parseXDC(String fileName,
Design design) |
static XDCConstraints |
parseXDC(String fileName,
Device dev) |
static XDCConstraints |
parseXDC(String fileName,
Device dev,
EdifCellLookup<?> cellLookup) |
static XDCConstraints |
parseXDC(String fileName,
Device dev,
EDIFNetlist netlist) |
static void |
writeXDC(List<String> constraints,
OutputStream out) |
public static <T> tcl.lang.Interp makeTclInterp(XDCConstraints constraints, Device dev, EdifCellLookup<T> cellLookup)
TclHashIdentifiedObject), so lifetime of this interpreter
should be limited.T - lookup's cell representationconstraints - Constraints object to output todev - DevicecellLookup - the cell lookup (see class level documentation for parameter details)public static XDCConstraints parseXDC(Device dev, List<String> lines, EdifCellLookup<?> cellLookup)
dev - the devicelines - XDC contentcellLookup - the cell lookup (see class level documentation for parameter details)public static XDCConstraints parseXDC(String fileName, Device dev, EdifCellLookup<?> cellLookup)
fileName - Name of the XDC file to parsedev - the designcellLookup - the cell lookup (see class level documentation for parameter details)public static XDCConstraints parseXDC(String fileName, Device dev, EDIFNetlist netlist)
fileName - Name of the XDC file to parsedev - the designnetlist - optional netlist to enable more advanced get_cells callspublic static XDCConstraints parseXDC(String fileName, Design design)
fileName - Name of the XDC file to parsedesign - The designpublic static XDCConstraints parseXDC(String fileName, Device dev)
fileName - Name of the XDC file to parsedev - the devicepublic static void writeXDC(List<String> constraints,
OutputStream out)