|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--engine.Strength
Constants & functions for strength manipulation. Strengths will be represented packed as a byte value, as follows:
7 0
+-+--------------+-+--------------+
|0| Strength0 |0| Strength1 | this is for an ambiguous signal (has both 0 & 1 strength) if the value is X,
+-+--------------+-+--------------+ and for an unambiguous strength signal if value is other than X
or:
7 0 \
+-+--------------+-+--------------+ |
|1| MinStrength1 |0| MaxStrength1 | | these formats are for an unambiguous value
+-+--------------+-+--------------+ | signal with ambiguous strength
| (the first one for a 1 value , the second for 0)
or: | if MinStrength == MaxStrength => a simple unambiguous signal
7 0 |
+-+--------------+-+--------------+ |
|0| MinStrength0 |1| MaxStrength0 | |
+-+--------------+-+--------------+ /
A byte with value 0xff represents an invalid strength;
| Field Summary | |
(package private) static java.lang.String[] |
bitToString
|
static byte |
defaultStrength
|
static byte |
defaultTriregStrength
|
static byte |
formatMask
'b10001000 masks the format bits |
static byte |
highz
|
static byte[] |
initStrengthDefaults
Default strengths for initial valus of nets. |
static byte |
large
|
static byte |
medium
|
static byte |
nothing
Use this to mark that a part of strngth has no relevance |
static byte |
pull
|
(package private) static byte[] |
reduceTable1
Strength reduction values for r?mos and r?tran |
(package private) static byte[] |
reduceTable2
Strength reduction values for ?mos and ?tran |
static byte |
small
|
static java.lang.String[] |
strengthToString
|
static byte |
strong
|
static byte |
supply
|
static byte |
weak
|
(package private) static int |
X
|
(package private) static int |
Z
|
| Constructor Summary | |
(package private) |
Strength()
|
| Method Summary | |
static byte |
getMax0Strength(byte s)
|
static byte |
getMax1Strength(byte s)
|
static byte |
getStrength(byte strength0,
byte strength1)
|
static byte |
getStrength(byte strength0,
byte strength1,
int bit)
Builds the strength byte according to strengths 0, 1 and sets the mask according to bit |
static byte |
getStrength0(byte strength)
|
static byte |
getStrength1(byte strength)
|
static byte |
getStrengthForValue(byte strength,
int value)
|
static boolean |
isAmbiguous(byte strength,
int bit)
An ambiguous strength is either the strength of an X signel or the strength of an unambiguous signel with a range of strengths |
static int |
reconcileDrivers(int[][] truthTable,
byte strength1,
byte strength2,
int bit1,
int bit2)
Does all the crap needed fot strength & value reconciliation ( :-( ) Read it _ONLY_ if it's past 4A.M. |
static byte |
reduce(byte strength,
byte[] table)
reduces the strengths according to the |
static java.lang.String |
strengthToString(byte strength,
int bit)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final byte nothing
public static final byte supply
public static final byte strong
public static final byte pull
public static final byte large
public static final byte weak
public static final byte medium
public static final byte small
public static final byte highz
static final byte[] reduceTable1
static final byte[] reduceTable2
public static final byte[] initStrengthDefaults
public static final java.lang.String[] strengthToString
public static final byte formatMask
static final int X
static final int Z
static final java.lang.String[] bitToString
public static final byte defaultStrength
public static final byte defaultTriregStrength
| Constructor Detail |
Strength()
| Method Detail |
public static java.lang.String strengthToString(byte strength,
int bit)
public static byte getStrength(byte strength0,
byte strength1)
public static byte getStrength(byte strength0,
byte strength1,
int bit)
public static byte getStrength1(byte strength)
public static byte getStrength0(byte strength)
public static byte getMax0Strength(byte s)
public static byte getMax1Strength(byte s)
public static byte reduce(byte strength,
byte[] table)
public static byte getStrengthForValue(byte strength,
int value)
public static boolean isAmbiguous(byte strength,
int bit)
public static int reconcileDrivers(int[][] truthTable,
byte strength1,
byte strength2,
int bit1,
int bit2)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||