public class NccGlobals extends java.lang.Object implements NccGlobalsReportable
Modifier and Type | Field and Description |
---|---|
int |
passNumber
pass number shared by strategies
|
Constructor and Description |
---|
NccGlobals(NccOptions options,
Aborter aborter)
The constructor initializes global root, parts, wires, and ports from
net lists.
|
Modifier and Type | Method and Description |
---|---|
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() |
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.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 NccGlobalsReportable
public VarContext[] getRootContexts()
getRootContexts
in interface NccGlobalsReportable
public java.lang.String[] getRootCellNames()
getRootCellNames
in interface NccGlobalsReportable
public 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 NccGlobalsReportable
public int getRandom()
public LeafEquivRecords getPartLeafEquivRecs()
public LeafEquivRecords getWireLeafEquivRecs()
public LeafEquivRecords getPortLeafEquivRecs()
public HierarchyEnumerator.NetNameProxy[][] getEquivalentNets()
getEquivalentNets
in interface NccGlobalsReportable
public HierarchyEnumerator.NodableNameProxy[][] getEquivalentNodes()
getEquivalentNodes
in interface NccGlobalsReportable
public NccGuiInfo getNccGuiInfo()
getNccGuiInfo
in interface NccGlobalsReportable
public boolean cantBuildNetlist()
public boolean[] cantBuildNetlistBits()
cantBuildNetlistBits
in interface NccGlobalsReportable
public int[] getPartCounts()
getPartCounts
in interface NccGlobalsReportable
public int[] getWireCounts()
getWireCounts
in interface NccGlobalsReportable
public int[] getPortCounts()
getPortCounts
in interface NccGlobalsReportable
public boolean userWantsToAbort()
public BenchmarkResults getBenchmarkResults()
getBenchmarkResults
in interface NccGlobalsReportable