byucc.jhdl.parsers.edif.sablecc.translation
Class JHDLHelper

java.lang.Object
  extended bybyucc.jhdl.parsers.edif.sablecc.translation.JHDLHelper

public class JHDLHelper
extends java.lang.Object


Field Summary
static java.lang.String comment
           
static java.lang.String importStatements
           
static java.lang.String interfaceStatement
           
 
Constructor Summary
JHDLHelper()
           
 
Method Summary
static java.lang.String getBaseName(java.lang.String pName)
          This method will return the bus name from a bus member name For example: busname_122_ and busname122 will both return "busname"
static int getIndex(java.lang.String pName)
          This method will check the bus naming convention and if it is right, it will return the index of the bus member For example: busname_122_ will return 122, and busname122 will also return 122
static java.lang.String getSubString(java.lang.String string)
           
static java.lang.String getValidIdentifier(java.lang.String id)
           
static java.util.Vector sortPorts(java.util.Vector ports)
          Welson: This method has never been used!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comment

public static final java.lang.String comment
See Also:
Constant Field Values

importStatements

public static final java.lang.String importStatements
See Also:
Constant Field Values

interfaceStatement

public static final java.lang.String interfaceStatement
See Also:
Constant Field Values
Constructor Detail

JHDLHelper

public JHDLHelper()
Method Detail

getValidIdentifier

public static java.lang.String getValidIdentifier(java.lang.String id)

getIndex

public static int getIndex(java.lang.String pName)
This method will check the bus naming convention and if it is right, it will return the index of the bus member For example: busname_122_ will return 122, and busname122 will also return 122


getBaseName

public static java.lang.String getBaseName(java.lang.String pName)
This method will return the bus name from a bus member name For example: busname_122_ and busname122 will both return "busname"


getSubString

public static java.lang.String getSubString(java.lang.String string)

sortPorts

public static java.util.Vector sortPorts(java.util.Vector ports)
Welson: This method has never been used!



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