byucc.edif.libraries.xilinx
Class EdifXPowerParser

java.lang.Object
  extended by byucc.edif.libraries.xilinx.EdifXPowerParser

public class EdifXPowerParser
extends java.lang.Object

Author:
nhr2

Field Summary
private  int _numLineElements
          This is the number of items in an entry of the given file section
private  java.lang.String _section
          This string represents the XPower file section to parse
private  java.util.ArrayList _xpowerNames
          This List contains the XPower names for a given file section
static int[] xpowerLineElements
           
static java.lang.String[] xpowerSections
          This is the list of possible XPower file sections
 
Constructor Summary
EdifXPowerParser(java.lang.String fileName, java.lang.String section)
           
 
Method Summary
 java.util.ArrayList getXPowerNames()
           
static java.util.List parseXPowerFile(java.lang.String fileName)
          This method will open the given "power" file and parse the contents to create a List of String objects where each String is a Net name or instnace name in the file.
static java.util.List parseXPowerFileSection(java.lang.String fileName, java.lang.String section, int numLineElements)
          This is a helper method to help parse the different sections of the XPower file.
static void printXPowerFile(java.lang.String xpowerFile)
           
static void printXPowerFileSection(java.lang.String xpowerFile, java.lang.String section, int elements)
           
 void printXPowerNames()
          This method prints the signal names parsed from the XPower file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xpowerLineElements

public static int[] xpowerLineElements

xpowerSections

public static java.lang.String[] xpowerSections
This is the list of possible XPower file sections


_numLineElements

private int _numLineElements
This is the number of items in an entry of the given file section


_section

private java.lang.String _section
This string represents the XPower file section to parse


_xpowerNames

private java.util.ArrayList _xpowerNames
This List contains the XPower names for a given file section

Constructor Detail

EdifXPowerParser

public EdifXPowerParser(java.lang.String fileName,
                        java.lang.String section)
Method Detail

getXPowerNames

public java.util.ArrayList getXPowerNames()

parseXPowerFile

public static java.util.List parseXPowerFile(java.lang.String fileName)
This method will open the given "power" file and parse the contents to create a List of String objects where each String is a Net name or instnace name in the file.

Parameters:
fileName -
Returns:
List of names

printXPowerFile

public static void printXPowerFile(java.lang.String xpowerFile)

printXPowerFileSection

public static void printXPowerFileSection(java.lang.String xpowerFile,
                                          java.lang.String section,
                                          int elements)

printXPowerNames

public void printXPowerNames()
This method prints the signal names parsed from the XPower file


parseXPowerFileSection

public static java.util.List parseXPowerFileSection(java.lang.String fileName,
                                                    java.lang.String section,
                                                    int numLineElements)
This is a helper method to help parse the different sections of the XPower file.

Parameters:
fileName -
section -
numLineElements -
Returns: