public class ChainNode extends SubchainNode
SubchainNode
s.
By convention, the first bit in a BitVector or in a string always represents the last bit scanned into or out of the chip. Thus 1) the bit and character indices match the position of the corresponding scan chain element along the s_in chain, 2) the strings match the left-to-right order in which scan chain elements appear in most schematics, and 3) the order is consistent with the order of scan chain nodes in the XML file.
Modifier and Type | Class and Description |
---|---|
static interface |
ChainNode.ShiftListener |
SubchainNode.DataNet
MyTreeNode.ChildEnumerator
Modifier and Type | Field and Description |
---|---|
static int |
CLEARS_HI
clearBehavior value for scan chain elements which clear low
|
static int |
CLEARS_LO
clearBehavior value for scan chain elements which clear high
|
static int |
CLEARS_NOT
clearBehavior value for scan chain elements which do not clear
|
static java.lang.String[] |
CLEARS_STRINGS
String representation of the values
CLEARS_NOT ,
CLEARS_LO , etc. |
static int |
CLEARS_UNKNOWN
clearBehavior value for scan chain elements with unknown clearing
|
protected BitVector |
inBits
Scan chain bit pattern to be shifted into the chip during the next call
to this.shift().
|
protected BitVector |
oldOutBitsExpected
Expected value of outBits for the previous call to this.shift().
|
protected BitVector |
outBits
Scan chain bit pattern read back from the chip after last call to
this.shift().
|
protected BitVector |
outBitsExpected
Expected value of outBits during the next call to this.shift().
|
protected BitVector |
shadowState
State of the scan chain elements' shadow register, for those that have
one.
|
pin
Constructor and Description |
---|
ChainNode(java.lang.String name,
java.lang.String opcode,
int newLength,
java.lang.String comment)
Constructor for a root scan chain.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(ChainNode.ShiftListener l) |
protected void |
createBitVectors() |
int |
getClearBehavior() |
BitVector |
getInBits()
Get the scan chain bit pattern to be shifted into the chip during the next call
to this.shift().
|
BitVector |
getOldOutBitsExpected()
Get the expected value of outBits for the previous call to this.shift().
|
BitVector |
getOutBits()
Get the scan chain bit pattern read back from the chip after last call to
this.shift().
|
BitVector |
getOutBitsExpected()
Get expected value of outBits during the next call to this.shift().
|
protected BitVector |
getOutBitsIndiscriminate()
This is for ChainG display
|
BitVector |
getShadowState()
Get the state of the scan chain elements' shadow register, for those that have
one.
|
boolean |
isReadable() |
boolean |
isUnpredictable() |
boolean |
isWriteable() |
static void |
main(java.lang.String[] args) |
void |
removeListener(ChainNode.ShiftListener l) |
void |
resetInBits(boolean useMasterClearState)
Resets all inBits to zero, or to clears state if clearable and specified to do so
|
void |
setUsesShadow(boolean usesShadow) |
java.lang.String |
toString()
Get long version of node name.
|
boolean |
usesDualPortedShadow() |
boolean |
usesShadow() |
computeLength, getBitIndex, getDataNet, getDataNet2, getInBitsIndiscriminate, getParentChain, getPathString, setLength
children, getAllowsChildren, getChildAt, getChildCount, getDescendents, getHierarchy, getIndex, getName, getNode, getParent, getPathString, isLeaf, setName
protected BitVector inBits
protected BitVector outBits
protected BitVector outBitsExpected
protected BitVector oldOutBitsExpected
protected BitVector shadowState
public static final int CLEARS_NOT
public static final int CLEARS_LO
public static final int CLEARS_HI
public static final int CLEARS_UNKNOWN
public static final java.lang.String[] CLEARS_STRINGS
CLEARS_NOT
,
CLEARS_LO
, etc.public ChainNode(java.lang.String name, java.lang.String opcode, int newLength, java.lang.String comment)
name
- node nameopcode
- on-chip address of root scan chainnewLength
- number of scan chain elements in nodecomment
- comment attached to this nodepublic java.lang.String toString()
MyTreeNode
toString
in class SubchainNode
public BitVector getInBits()
public BitVector getOutBits()
public BitVector getOutBitsExpected()
public BitVector getOldOutBitsExpected()
public BitVector getShadowState()
protected BitVector getOutBitsIndiscriminate()
getOutBitsIndiscriminate
in class SubchainNode
public void resetInBits(boolean useMasterClearState)
useMasterClearState
- true to reset to clears state if clearable.protected void createBitVectors()
public void addListener(ChainNode.ShiftListener l)
public void removeListener(ChainNode.ShiftListener l)
public static void main(java.lang.String[] args)
public int getClearBehavior()
public boolean isUnpredictable()
public boolean isReadable()
public boolean isWriteable()
public boolean usesShadow()
public boolean usesDualPortedShadow()
public void setUsesShadow(boolean usesShadow)
usesShadow
- whether chain elements within node have predictable shadow
registers