public class EDIFCollapsedView
extends Object
EDIFNetlist.expandMacroUnisims()), and
writes them collapsed through this view (see EDIFNetlist.exportEDIF(java.io.OutputStream)),
which, unlike EDIFNetlist.collapseMacroUnisims(com.xilinx.rapidwright.device.Series),
leaves the netlist as it is. In this view:
EDIFNetlist.setExternalLibrary(EDIFLibrary)) is of the black box that the cell fills.| Constructor and Description |
|---|
EDIFCollapsedView(EDIFNetlist netlist)
Creates a view of the given netlist with its macros collapsed.
|
| Modifier and Type | Method and Description |
|---|---|
EDIFCell |
getInstanceType(EDIFCell cellType)
Gets the cell that an instance of the given cell is an instance of in this view, whose name
(see
EDIFCollapsedView.getName(EDIFCell)) and library an instance refers to. |
String |
getName(EDIFCell cell)
Gets the name of the given cell in this view.
|
EDIFPort |
getPort(EDIFPortInst portInst)
Gets the port of the given port instance in this view, which is the matching port of the cell
that its instance is of in this view (see
EDIFCollapsedView.getInstanceType(EDIFCell)). |
List<EDIFCell> |
getValidCellExportOrder(EDIFLibrary lib,
boolean stable)
Gets the cells of the given library in this view, in an order that they can be written in
(see
EDIFLibrary.getValidCellExportOrder(boolean)). |
EDIFName |
getViewref(EDIFCellInst inst)
Gets the view that the given instance refers to in this view: that of the cell that it is of
in this view (see
EDIFCollapsedView.getInstanceType(EDIFCell)) if that is not its cell type, as when
its cell type is replaced (see EDIFCellInst.setCellType(EDIFCell)), otherwise its own. |
boolean |
isCollapsed(EDIFCell cell)
Checks if the given cell is a macro that is collapsed in this view, so has no contents in it.
|
boolean |
isOmitted(EDIFCell cell)
Checks if the given cell is left out of this view.
|
public EDIFCollapsedView(EDIFNetlist netlist)
netlist - The netlist.public boolean isOmitted(EDIFCell cell)
cell - A cell of the netlist.public boolean isCollapsed(EDIFCell cell)
cell - A cell of the netlist.public String getName(EDIFCell cell)
cell - A cell of the netlist.public EDIFCell getInstanceType(EDIFCell cellType)
EDIFCollapsedView.getName(EDIFCell)) and library an instance refers to.cellType - The cell type of an instance in the netlist.public EDIFName getViewref(EDIFCellInst inst)
EDIFCollapsedView.getInstanceType(EDIFCell)) if that is not its cell type, as when
its cell type is replaced (see EDIFCellInst.setCellType(EDIFCell)), otherwise its own.inst - An instance in the netlist.public EDIFPort getPort(EDIFPortInst portInst)
EDIFCollapsedView.getInstanceType(EDIFCell)).portInst - A port instance in the netlist.public List<EDIFCell> getValidCellExportOrder(EDIFLibrary lib, boolean stable)
EDIFLibrary.getValidCellExportOrder(boolean)).lib - A library of the netlist.stable - If true, the order is always the same for the same library.