public class CompareXML
extends java.lang.Object
java CompareXML file1 file2
This facility checks to see if the two XML files have compatible descriptions
of the hardware. Compatibility means: same chip names and instruction
register lengths; same scan chain names and lengths; and each scan chain
element has the same access and clears parameters. The comparison ignores
differences in how a chain is broken up into subchains and how the subchains
are named. Thus compatibility of two XML files does not ensure the same test
software can be used for them. The pin
attribute of a subchain
is also ignored, since the automatic generator does not set it.
Both files must list the scan chains in the same order, or false inconsistencies will be reported. For the automatically-generated file, the chains are listed in order of increasing opcode. Some discrepancies, such as in the length of the scan chains, are deemed so fundamental that a meaningful comparison cannot be made before they are fixed. When one of these is encountered, the comparison will be terminated.
Here are some tips for making the results easier to interpret: you should be
able to read both files into ChainG
without error; results are
slightly more readable if you choose file1
to be the file you
are more familiar with.
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Compares two XML files provided on the command line.
|