|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.tool.ncc.NccGlobals
public class NccGlobals
I tried to make NCC thread safe. Therefore there are a minimum of static variables. Instead, most of what would have been NCC's global variables are stored in NccGlobals. A new NccGlobals is created every time NccEngine.compare() is started. Therefore two jobs can call NCC at the same time without interfering with each other.
| Field Summary | |
|---|---|
int |
passNumber
pass number shared by strategies |
| Constructor Summary | |
|---|---|
NccGlobals(NccOptions options,
Aborter aborter)
The constructor initializes global root, parts, wires, and ports from net lists. |
|
| Method Summary | |
|---|---|
boolean |
cantBuildNetlist()
|
boolean[] |
cantBuildNetlistBits()
|
void |
error(boolean pred,
java.lang.String msg)
Print a message and abort execution if pred is true. |
void |
error(java.lang.String msg)
Print a message and abort execution |
void |
flush()
Flush System.out |
BenchmarkResults |
getBenchmarkResults()
Get result of benchmarking performance counters |
HierarchyEnumerator.NetNameProxy[][] |
getEquivalentNets()
|
HierarchyEnumerator.NodableNameProxy[][] |
getEquivalentNodes()
|
NccGuiInfo |
getNccGuiInfo()
Get mismatches to be displayed in the GUI |
int |
getNumNetlistsBeingCompared()
Say how many netlists are being compared. |
NccOptions |
getOptions()
Get the NCC options. |
int[] |
getPartCounts()
|
LeafEquivRecords |
getPartLeafEquivRecs()
Get the leaf equivalence records of the Part equivalence record sub tree |
EquivRecord |
getParts()
get the root of equivalence record subtree for Parts |
int[] |
getPortCounts()
|
LeafEquivRecords |
getPortLeafEquivRecs()
Get the leaf equivalence records of the Port equivalence record sub tree |
EquivRecord |
getPorts()
get the root of the equivalence record subtree for Ports |
int |
getRandom()
Generate non-recurring pseudo-random integers |
EquivRecord |
getRoot()
get the root of the equivalence record tree |
java.lang.String[] |
getRootCellNames()
get an array of root Cell Names, one per netlist. |
Cell[] |
getRootCells()
get an array of root Cells, one per netlist |
VarContext[] |
getRootContexts()
get an array of VarContexts, one per netlist |
int[] |
getWireCounts()
|
LeafEquivRecords |
getWireLeafEquivRecs()
Get the leaf equivalence records of the Wire equivalence record sub tree |
EquivRecord |
getWires()
get the root of the equivalence record subtree for Wires |
void |
initLeafLists()
Initialization. |
void |
pr(java.lang.String s)
A conveniently terse method for printing to Electric's message window |
void |
prln(java.lang.String s)
A conveniently terse method for printing to Electric's message window |
void |
setInitialNetlists(java.util.List<NccNetlist> nccNets)
Build the initial equivalence record trees from the netlists that are to be compared. |
void |
status1(java.lang.String msg)
Print more important status messages into the Electric messages window. |
void |
status2(java.lang.String msg)
Print less important status messages into the Electric messages window. |
boolean |
userWantsToAbort()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int passNumber
| Constructor Detail |
|---|
public NccGlobals(NccOptions options,
Aborter aborter)
options - the options controlling how NCC performs the comparisonaborter - an object that NCC queries to determine if the user
wants to abort NCC in the middle of a run.| Method Detail |
|---|
public void prln(java.lang.String s)
public void pr(java.lang.String s)
public void setInitialNetlists(java.util.List<NccNetlist> nccNets)
nccNets - two or more netlists that are supposed to be topologcially
identical.public void initLeafLists()
public EquivRecord getRoot()
public EquivRecord getParts()
public EquivRecord getWires()
public EquivRecord getPorts()
public int getNumNetlistsBeingCompared()
public Cell[] getRootCells()
getRootCells in interface NccGlobalsReportablepublic VarContext[] getRootContexts()
getRootContexts in interface NccGlobalsReportablepublic java.lang.String[] getRootCellNames()
getRootCellNames in interface NccGlobalsReportablepublic void status1(java.lang.String msg)
msg - the message to be printed.public void status2(java.lang.String msg)
msg - the message to be printed.public void flush()
public void error(boolean pred,
java.lang.String msg)
pred - if true then an error has occurredmsg - message to print when error occurspublic void error(java.lang.String msg)
msg - message to print when error occurspublic NccOptions getOptions()
getOptions in interface NccGlobalsReportablepublic int getRandom()
public LeafEquivRecords getPartLeafEquivRecs()
public LeafEquivRecords getWireLeafEquivRecs()
public LeafEquivRecords getPortLeafEquivRecs()
public HierarchyEnumerator.NetNameProxy[][] getEquivalentNets()
getEquivalentNets in interface NccGlobalsReportablepublic HierarchyEnumerator.NodableNameProxy[][] getEquivalentNodes()
getEquivalentNodes in interface NccGlobalsReportablepublic NccGuiInfo getNccGuiInfo()
getNccGuiInfo in interface NccGlobalsReportablepublic boolean cantBuildNetlist()
public boolean[] cantBuildNetlistBits()
cantBuildNetlistBits in interface NccGlobalsReportablepublic int[] getPartCounts()
getPartCounts in interface NccGlobalsReportablepublic int[] getWireCounts()
getWireCounts in interface NccGlobalsReportablepublic int[] getPortCounts()
getPortCounts in interface NccGlobalsReportablepublic boolean userWantsToAbort()
public BenchmarkResults getBenchmarkResults()
getBenchmarkResults in interface NccGlobalsReportable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||