public class ScanChainXML
extends java.lang.Object
Constructor and Description |
---|
ScanChainXML()
Create a new ScanChainXML object that will parse the schematics and
write out an XML description
|
Modifier and Type | Method and Description |
---|---|
void |
addCellToFlatten(java.lang.String libName,
java.lang.String cellName)
Specify a cell to flatten.
|
void |
addJtagPort(int opcode,
java.lang.String soutPortName,
java.lang.String chainName)
Add a port to the JTAG Controller that serves as a starting point for a scan chain.
|
void |
addPassThroughCell(java.lang.String cellName,
java.lang.String inport,
java.lang.String outport)
Specify a pass through element.
|
void |
addScanChainElement(java.lang.String name,
java.lang.String access,
java.lang.String clears,
java.lang.String inport,
java.lang.String outport)
Specify a scan chain element.
|
void |
addScanChainElement(java.lang.String name,
java.lang.String access,
java.lang.String clears,
java.lang.String inport,
java.lang.String outport,
java.lang.String dataport,
java.lang.String dataport2)
Specify a scan chain element.
|
void |
setChipName(java.lang.String name)
Specify the name of the chip.
|
void |
setJtagController(java.lang.String jtagLib,
java.lang.String jtagCellName,
int lengthIR)
Specify the JTAG Controller.
|
void |
setOutput(java.lang.String file)
Set the output file.
|
void |
start(java.lang.String libName,
java.lang.String cellName)
Start tracing all the scan chains from the any instances of specified
jtag controller
|
void |
startFromExport(java.lang.String exportName,
java.lang.String chainName)
Start tracing a chain from the specified export in the start cell.
|
public ScanChainXML()
public void addScanChainElement(java.lang.String name, java.lang.String access, java.lang.String clears, java.lang.String inport, java.lang.String outport)
name
- name of the cell to be defined as a scan chain element.access
- the access type: for example, "RW".clears
- the clears type: for example, "L".inport
- the name of input data port, typically "sin".
May contain index info, such as "s[1]"outport
- the name of the output data port, typically "sout".
May contain index info, such as "ss[1]"public void addScanChainElement(java.lang.String name, java.lang.String access, java.lang.String clears, java.lang.String inport, java.lang.String outport, java.lang.String dataport, java.lang.String dataport2)
name
- name of the cell to be defined as a scan chain element.access
- the access type: for example, "RW".clears
- the clears type: for example, "L".inport
- the name of input data port, typically "sin".
May contain index info, such as "s[1]"outport
- the name of the output data port, typically "sout".
May contain index info, such as "ss[1]"dataport
- the name of the port the scan data is read from and written to. May include options
R, W, or I for (Readable,Writable,Inverted) in parenthesis at the end. Ex: dout(RW)dataport2
- another port for data like dataport, with the same format.public void addPassThroughCell(java.lang.String cellName, java.lang.String inport, java.lang.String outport)
cellName
- name of the cell to be defined as a pass through elementinport
- the name of the input port that passes data through
May contain index info, such as "s[1]"outport
- the name of the output port that passes data through
May contain index info, such as "ss[1]"public void addCellToFlatten(java.lang.String libName, java.lang.String cellName)
libName
- the library that contains the cellcellName
- the name of the cellpublic void setJtagController(java.lang.String jtagLib, java.lang.String jtagCellName, int lengthIR)
jtagLib
- the name of the library that holds the jtag controller celljtagCellName
- the name of the cell that is the jtag controllerlengthIR
- the number of instruction register bits in the jtag controller.public void addJtagPort(int opcode, java.lang.String soutPortName, java.lang.String chainName)
opcode
- the opcode for this scan chainsoutPortName
- the port name that outputs data for the scan chain.
May contain index info, such as "leaf1[1]"chainName
- the name given to this scan chainpublic void startFromExport(java.lang.String exportName, java.lang.String chainName)
exportName
- chainName
- public void setChipName(java.lang.String name)
name
- the chip namepublic void setOutput(java.lang.String file)
file
- the name of the file.public void start(java.lang.String libName, java.lang.String cellName)