|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.hierarchy.HierarchyEnumerator.Visitor
com.sun.electric.tool.logicaleffort.LENetlister
com.sun.electric.tool.logicaleffort.LENetlister1
public class LENetlister1
Creates a logical effort netlist to be sized by LESizer. This is so the LESizer is independent of Electric's Database, and can match George Chen's C++ version being developed for PNP.
Nested Class Summary | |
---|---|
class |
LENetlister1.LECellInfo
Logical Effort Cell Info class. |
Nested classes/interfaces inherited from class com.sun.electric.tool.logicaleffort.LENetlister |
---|
LENetlister.NetlisterConstants |
Field Summary | |
---|---|
protected LENetlister.NetlisterConstants |
constants
Netlister constants |
Fields inherited from class com.sun.electric.tool.logicaleffort.LENetlister |
---|
ATTR_alpha, ATTR_diffn, ATTR_diffp, ATTR_epsilon, ATTR_gate_cap, ATTR_keeper_ratio, ATTR_L, ATTR_le, ATTR_LEGATE, ATTR_LEIGNORE, ATTR_LEKEEPER, ATTR_LEPARALLGRP, ATTR_LESETTINGS, ATTR_LEWIRE, ATTR_LEWIRECAP, ATTR_max_iter, ATTR_su, ATTR_wire_ratio |
Constructor Summary | |
---|---|
LENetlister1(Job job,
Technology layoutTech)
Creates a new instance of LENetlister |
Method Summary | |
---|---|
protected Instance |
addInstance(java.lang.String name,
Instance.Type type,
float leSU,
float leX,
java.util.ArrayList<Pin> pins,
Nodable no)
Add new instance to design |
void |
done()
Call to stop or interrupt netlisting |
void |
doneVisitNodeInst(Nodable ni,
HierarchyEnumerator.CellInfo info)
|
boolean |
enterCell(HierarchyEnumerator.CellInfo info)
Enter cell initializes the LECellInfo. |
void |
exitCell(HierarchyEnumerator.CellInfo info)
Nothing to do for exitCell |
protected java.util.Map<java.lang.String,Instance> |
getAllInstances()
|
protected java.util.HashMap<java.lang.String,Net> |
getAllNets()
|
LENetlister.NetlisterConstants |
getConstants()
Get the settings used for sizing |
ErrorLogger |
getErrorLogger()
Get the error logger |
protected float |
getKeeperRatio()
|
protected int |
getNumGates()
return number of gates sized |
protected LESizer |
getSizer()
|
void |
getSizes(java.util.List<java.lang.Float> sizes,
java.util.List<java.lang.String> varNames,
java.util.List<NodeInst> nodes,
java.util.List<VarContext> contexts)
Get the sizes and associated variable names to store on the top level cell |
float |
getTotalLESize()
Get the total size of all gates sized using Logical Effort |
float |
getTotalSize(Instance.Type type)
return total size of all instances of the specified type if type is null, uses all types |
boolean |
netlist(Cell cell,
VarContext context,
boolean useCaching)
Call to start netlisting. |
HierarchyEnumerator.CellInfo |
newCellInfo()
Override the default Cell info to pass along logical effort specific information |
void |
nullErrorLogger()
Destroy the error logger |
boolean |
printResults(Nodable no,
VarContext context)
print the results for the Nodable |
void |
printStatistics()
|
boolean |
size(LESizer.Alg algorithm)
Size the netlist. |
static void |
test1()
|
boolean |
visitNodeInst(Nodable ni,
HierarchyEnumerator.CellInfo info)
Visit NodeInst creates a new Logical Effort instance from the parameters found on the Nodable, if that Nodable is an LEGATE. |
Methods inherited from class com.sun.electric.tool.logicaleffort.LENetlister |
---|
getSettings, isSettingsConflict, saveSettings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LENetlister.NetlisterConstants constants
Constructor Detail |
---|
public LENetlister1(Job job, Technology layoutTech)
Method Detail |
---|
public boolean netlist(Cell cell, VarContext context, boolean useCaching)
LENetlister
netlist
in class LENetlister
public boolean size(LESizer.Alg algorithm)
size
in class LENetlister
public void getSizes(java.util.List<java.lang.Float> sizes, java.util.List<java.lang.String> varNames, java.util.List<NodeInst> nodes, java.util.List<VarContext> contexts)
LENetlister
getSizes
in class LENetlister
public void done()
LENetlister
done
in class LENetlister
public ErrorLogger getErrorLogger()
LENetlister
getErrorLogger
in class LENetlister
public void nullErrorLogger()
LENetlister
nullErrorLogger
in class LENetlister
public LENetlister.NetlisterConstants getConstants()
LENetlister
getConstants
in class LENetlister
protected Instance addInstance(java.lang.String name, Instance.Type type, float leSU, float leX, java.util.ArrayList<Pin> pins, Nodable no)
name
- name of the instance
param leGate true if this is an LEGateleX
- sizepins
- list of pins on instance
protected java.util.Map<java.lang.String,Instance> getAllInstances()
protected java.util.HashMap<java.lang.String,Net> getAllNets()
protected int getNumGates()
protected LESizer getSizer()
protected float getKeeperRatio()
public HierarchyEnumerator.CellInfo newCellInfo()
newCellInfo
in class HierarchyEnumerator.Visitor
public boolean enterCell(HierarchyEnumerator.CellInfo info)
enterCell
in class HierarchyEnumerator.Visitor
info
- the LECellInfo
public boolean visitNodeInst(Nodable ni, HierarchyEnumerator.CellInfo info)
visitNodeInst
in class HierarchyEnumerator.Visitor
ni
- the Nodable being visitedinfo
- the cell info
public void doneVisitNodeInst(Nodable ni, HierarchyEnumerator.CellInfo info)
public void exitCell(HierarchyEnumerator.CellInfo info)
exitCell
in class HierarchyEnumerator.Visitor
info
- information about the Cell instance being
enumeratedpublic void printStatistics()
printStatistics
in class LENetlister
public float getTotalLESize()
LENetlister
getTotalLESize
in class LENetlister
public float getTotalSize(Instance.Type type)
public boolean printResults(Nodable no, VarContext context)
LENetlister
printResults
in class LENetlister
public static void test1()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |