public class EDIFLibrary extends EDIFName
EDIFCell
objects
that are part of a netlist.
Created on: May 11, 2017EXPORT_CONST_RENAME_START
Constructor and Description |
---|
EDIFLibrary(EDIFLibrary copy)
Shallow copy constructor - Creates a new EDIFLibrary object containing
shallow copies of its contained EDIFCell-s.
|
EDIFLibrary(String name) |
Modifier and Type | Method and Description |
---|---|
EDIFCell |
addCell(EDIFCell cell)
Adds the provided cell to the library.
|
EDIFCell |
addCellRenameDuplicates(EDIFCell cell,
String preferredSuffix)
Adds the provided cell to the library.
|
boolean |
containsCell(EDIFCell cell)
Checks the library based on the legal EDIF name (rename) if the cell
is stored within.
|
boolean |
containsCell(String name)
Checks if the library contains a cell with the name provided.
|
List<Future<ParallelDCPInput>> |
exportEDIF(EDIFWriteLegalNameCache<?> cache) |
void |
exportEDIF(OutputStream os,
EDIFWriteLegalNameCache<?> cache) |
void |
exportEDIF(OutputStream os,
EDIFWriteLegalNameCache<?> cache,
boolean stable) |
EDIFCell |
getCell(String name)
Gets the name of the cell using the EDIF name (rename construct).
|
Map<String,EDIFCell> |
getCellMap()
Gets and returns the current map of cells in the library.
|
Collection<EDIFCell> |
getCells() |
List<EDIFCell> |
getExternallyReferencedCells()
Creates a list of all cells that have references outside of this
library.
|
Collection<EDIFLibrary> |
getExternallyReferencedLibraries()
Creates a collections of libraries that are referenced by cell
instances within this library.
|
EDIFNetlist |
getNetlist() |
List<EDIFCell> |
getValidCellExportOrder(boolean stable)
Creates an ordered list of cells such that each cell that appears
in the list only references cells that have already been seen in
the list.
|
boolean |
isHDIPrimitivesLibrary()
Checks if this library is the HDI primitives library or that the name
matches
EDIFTools.EDIF_LIBRARY_HDI_PRIMITIVES_NAME . |
boolean |
isWorkLibrary()
Checks if this library is the work library or that the name
matches
EDIFTools.EDIF_LIBRARY_WORK_NAME . |
EDIFCell |
removeCell(EDIFCell cell)
Removes the cell from the library.
|
EDIFCell |
removeCell(String name)
Removes the cell by name
|
void |
setNetlist(EDIFNetlist netlist) |
void |
uniqueifyCellsWithPrefix(String prefix)
This method prepares all the cells in the library for a merger with another
library by adding a unique prefix to all cell names.
|
compareTo, equals, exportEDIFName, exportSomeEDIFName, getName, getNewMap, hashCode, toString
public EDIFLibrary(String name)
public EDIFLibrary(EDIFLibrary copy)
copy
- The original librarypublic EDIFCell addCell(EDIFCell cell)
cell
- The cell to add to the library.public EDIFCell addCellRenameDuplicates(EDIFCell cell, String preferredSuffix)
cell
- The cell to add to the library.preferredSuffix
- If a suffix needs to be appended for uniquification, use this onepublic EDIFCell getCell(String name)
name
- The name of the cell as would be returned by getLegalEDIFName().
When the original name was already legal, it is the same.public Collection<EDIFCell> getCells()
public EDIFNetlist getNetlist()
public void setNetlist(EDIFNetlist netlist)
netlist
- the netlist to setpublic EDIFCell removeCell(EDIFCell cell)
cell
- The cell to remove.public EDIFCell removeCell(String name)
name
- The name of the cell to removepublic boolean containsCell(EDIFCell cell)
cell
- The cell in question.public boolean containsCell(String name)
name
- The name of the cell to query in the library.public Map<String,EDIFCell> getCellMap()
public List<EDIFCell> getExternallyReferencedCells()
public Collection<EDIFLibrary> getExternallyReferencedLibraries()
public void uniqueifyCellsWithPrefix(String prefix)
prefix
- The prefix to add to all cellspublic List<EDIFCell> getValidCellExportOrder(boolean stable)
stable
- makes sure that the list is always the same for the same inputpublic boolean isWorkLibrary()
EDIFTools.EDIF_LIBRARY_WORK_NAME
.public boolean isHDIPrimitivesLibrary()
EDIFTools.EDIF_LIBRARY_HDI_PRIMITIVES_NAME
.public void exportEDIF(OutputStream os, EDIFWriteLegalNameCache<?> cache, boolean stable) throws IOException
IOException
public void exportEDIF(OutputStream os, EDIFWriteLegalNameCache<?> cache) throws IOException
IOException
public List<Future<ParallelDCPInput>> exportEDIF(EDIFWriteLegalNameCache<?> cache) throws IOException
IOException