byucc.jhdl.util.xmac
Class WireParser

java.lang.Object
  extended bybyucc.jhdl.util.xmac.TagParser
      extended bybyucc.jhdl.util.xmac.WireParser

public class WireParser
extends TagParser

Parse the wire tag. This class will take the <wire> tag and create the correct java call to create a wire, depending on the package this cell goes into. The advantage of using the wire tag over creating wires yourself is that the parser will then know about that wire and be able to extract information such as width. The get and put tags take advantage of this.

Example:
<wire name="i" width="1"/>

The name and width attributes are required.

Author:
Isaac E. Wagner

Field Summary
 
Fields inherited from class byucc.jhdl.util.xmac.TagParser
docInfo
 
Constructor Summary
WireParser(DocInfo docInfo)
          The default constructor for this class.
 
Method Summary
 void parse(org.w3c.dom.Node docRoot)
          Parse the wire 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

WireParser

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

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

parse

public void parse(org.w3c.dom.Node docRoot)
           throws java.lang.Exception
Parse the wire tag.

Overrides:
parse in class TagParser
Parameters:
docRoot - The Node of the wire tag.
Returns:
None
Throws:
java.lang.Exception


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