byucc.jhdl.util.xmac
Class InterfaceParser

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

public class InterfaceParser
extends TagParser

Parse the interface tag. This class provides the functionality to process the interface tag for the xmac system.

The tag form is as follows:

  <interface>
    <in name="i" width="1"/>
    <out name="o" width="1"/>
    . . .
    Other port stuff goes here
    . . .
  </interface>


The valid port tags are:
<in>
<out>
<inout>
<clk>
<sout>
<saout>
<sin>
<sain>
<ain>
<aout>

Note that 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
InterfaceParser(DocInfo docInfo)
          Construct a new InterfaceParser object.
 
Method Summary
 void parse(org.w3c.dom.Node docRoot)
          Parse the interface 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

InterfaceParser

public InterfaceParser(DocInfo docInfo)
                throws java.lang.Exception
Construct a new InterfaceParser object.

Parameters:
docInfo - The DocInfo object that contains all the info about this class.
Method Detail

parse

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

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


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