public class NccUtils
extends java.lang.Object
Constructor and Description |
---|
NccUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
accumulateBenchmarkValue(java.lang.String msg,
long val,
BenchmarkResults.BenchIdx benchmark,
NccGlobals globals) |
static NccResult |
buildBlackBoxes(CellContext c1,
CellContext c2,
HierarchyInfo hierInfo,
NccOptions options,
Aborter aborter) |
static Cell[] |
findSchematicAndLayout(Cell cell)
If cell is layout then pair it with the main schematic cell of cell's
CellGroup.
|
static java.lang.String |
fullName(Cell c) |
static CellContext |
getCellContext(EditWindow_ wnd) |
static java.util.List<CellContext> |
getCellContextsFromWindows() |
static CellContext |
getCurrentCellContext() |
static long |
getTime() |
static void |
hang(java.lang.String msg)
Wait forever.
|
static java.lang.String |
hourMinSec(java.util.Date start,
java.util.Date stop)
print hours minutes seconds
|
static java.lang.String |
hourMinSec(long elapsedMsec) |
static void |
incrementBenchmarkCount(BenchmarkResults.BenchIdx benchmark,
NccGlobals globals) |
static long |
registerTiming(java.lang.String msg,
long start,
BenchmarkResults.BenchIdx benchmark,
NccGlobals globals) |
static double |
round(double x,
int places) |
static boolean |
sizesMatch(double w1,
double w2,
NccOptions opt)
Say whether sizes w1 and w2 are close enough together for NCC
to consider them "equal".
|
public static java.lang.String fullName(Cell c)
public static Cell[] findSchematicAndLayout(Cell cell)
public static CellContext getCurrentCellContext()
public static CellContext getCellContext(EditWindow_ wnd)
public static java.util.List<CellContext> getCellContextsFromWindows()
public static java.lang.String hourMinSec(java.util.Date start, java.util.Date stop)
public static java.lang.String hourMinSec(long elapsedMsec)
public static NccResult buildBlackBoxes(CellContext c1, CellContext c2, HierarchyInfo hierInfo, NccOptions options, Aborter aborter)
public static boolean sizesMatch(double w1, double w2, NccOptions opt)
w1
- first width or lengthw2
- second width or lengthopt
- NCC options that specify size matching tolerancespublic static void hang(java.lang.String msg)
public static double round(double x, int places)
public static long registerTiming(java.lang.String msg, long start, BenchmarkResults.BenchIdx benchmark, NccGlobals globals)
public static long accumulateBenchmarkValue(java.lang.String msg, long val, BenchmarkResults.BenchIdx benchmark, NccGlobals globals)
public static void incrementBenchmarkCount(BenchmarkResults.BenchIdx benchmark, NccGlobals globals)
public static long getTime()