byucc.jhdl.util.xmac
Class TestParser
java.lang.Object
byucc.jhdl.util.xmac.TagParser
byucc.jhdl.util.xmac.TestParser
- public class TestParser
- extends TagParser
Process the <test>
tag.
An example of using this tag for a simple buffer might be:
<test>
0, 0
0, 0
1, 1
1, 1
</test>
Each input and output gets one entry in the order they are declared in the
port interface. Note that implicit ports do not have test vectors.
There are also optional parameters depending on the nature of your cell.
If generating a generic width cell, the optional attribute width
can be added to the test tag. When this cell gets tested it will be created
with the width specified.
If the cell has generic interface parameters then these can also be included
as attributes of the test tag. For example, if a cell contained an INIT
parameter in the interface, the test tag could be <test INIT="1234">
- Author:
- Isaac E. Wagner
Constructor Summary |
TestParser(DocInfo docInfo)
The default constructor for this class. |
Method Summary |
void |
parse(org.w3c.dom.Node docRoot)
Start the parser on the test tag. |
Methods inherited from class byucc.jhdl.util.xmac.TagParser |
checkParent, countLines, decreaseIndent, increaseIndent, indentBlock, indentLine, indentLine, outmsg, parse, strBlockToArray, writeOutput |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestParser
public TestParser(DocInfo docInfo)
throws java.lang.Exception
- The default constructor for this class.
- Parameters:
docInfo
- The DocInfo
object that contains the
current settings and parameters.
parse
public void parse(org.w3c.dom.Node docRoot)
throws java.lang.Exception
- Start the parser on the test tag.
- Overrides:
parse
in class TagParser
- Parameters:
docRoot
- The Node
of the test tag.
- Returns:
- None
- Throws:
java.lang.Exception
Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.