Class TestParser

  extended bybyucc.jhdl.util.xmac.TagParser
      extended bybyucc.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:
   0, 0
   0, 0
   1, 1
   1, 1

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">

Isaac E. Wagner

Field Summary
Fields inherited from class byucc.jhdl.util.xmac.TagParser
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

Constructor Detail


public TestParser(DocInfo docInfo)
           throws java.lang.Exception
The default constructor for this class.

docInfo - The DocInfo object that contains the current settings and parameters.
Method Detail


public void parse(org.w3c.dom.Node docRoot)
           throws java.lang.Exception
Start the parser on the test tag.

parse in class TagParser
docRoot - The Node of the test tag.

Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.