edu.byu.ece.edif.jedif
Class JEdifQuery

java.lang.Object
  extended by edu.byu.ece.edif.jedif.EDIFMain
      extended by edu.byu.ece.edif.jedif.JEdifQuery

public class JEdifQuery
extends EDIFMain

TODO: provide a large set of options for querying and describing information about the internal structure of the netlist.


Field Summary
protected static java.lang.String BAR
           
 
Fields inherited from class edu.byu.ece.edif.jedif.EDIFMain
COPYRIGHT_STRING, DEFAULT_AUTHOR_STRING, EXECUTABLE_NAME, newLine, TOOL_SUMMARY_STRING, VERSION_DATE, VERSION_STRING
 
Constructor Summary
JEdifQuery()
           
 
Method Summary
private static void countPersistentFFs(EdifEnvironment env, java.io.PrintStream out)
          Counts the number of persistent Xilinx flip-flops in the design.
static void main(java.lang.String[] args)
           
static void printCellNets(EdifEnvironment env, java.util.List<java.lang.String> cellList, java.io.PrintStream out)
          Prints a list of all nets contained in user-specified cells.
static void printCellPorts(EdifEnvironment env, java.util.List<java.lang.String> cellList, java.io.PrintStream out)
          Prints a list of all ports contained in user-specified cell types.
static void printDanglingNets(EdifEnvironment env, java.io.PrintStream out)
          Prints a list of all dangling nets contained in the design.
static void printEdifStats(EdifEnvironment env, java.io.PrintStream out)
          Prints out the default EDIF Statistics: top cell name, number of nets, and number of instances.
static void printInstanceLists(EdifEnvironment env, java.util.List<java.lang.String> instList, java.io.PrintStream out)
          Prints a list of all instances of user-specified cell types.
static void printLibraries(EdifEnvironment env, java.io.PrintStream out)
          Prints out a list of all EdifLibraries contained in the EDIFEnvironment read from the .jedif file
static void printLibraryCells(EdifEnvironment env, java.util.List<java.lang.String> libList, java.io.PrintStream out)
          Prints a list of all cells contained in EDIF libraries provided by the user.
static void printPorts(EdifEnvironment env, java.io.PrintStream out)
          Prints out a list of input and output ports in the top-level cell.
static void printPrimitives(EdifEnvironment env, java.util.List<java.lang.String> cellList, java.io.PrintStream out)
          Prints a list of all primitive cells contained in user-specified cell types.
static void printSubcells(EdifEnvironment env, java.util.List<java.lang.String> cellList, java.io.PrintStream out)
          Prints a list of all instances contained in user-specified cell types.
 
Methods inherited from class edu.byu.ece.edif.jedif.EDIFMain
getExtendedVersionString, printProgramExecutableString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BAR

protected static final java.lang.String BAR
See Also:
Constant Field Values
Constructor Detail

JEdifQuery

public JEdifQuery()
Method Detail

main

public static void main(java.lang.String[] args)

printEdifStats

public static void printEdifStats(EdifEnvironment env,
                                  java.io.PrintStream out)
Prints out the default EDIF Statistics: top cell name, number of nets, and number of instances.

Parameters:
env - The EDIFEnvironment read in by the .jedif file
out - The PrintStream to which output will be printed

printLibraries

public static void printLibraries(EdifEnvironment env,
                                  java.io.PrintStream out)
Prints out a list of all EdifLibraries contained in the EDIFEnvironment read from the .jedif file

Parameters:
env - The EDIF environment read in by the JEdif file
out - The PrintStream to which output will be printed

printPorts

public static void printPorts(EdifEnvironment env,
                              java.io.PrintStream out)
Prints out a list of input and output ports in the top-level cell.

Parameters:
env - The EDIF environment read in by the JEdif file
out - The PrintStream to which output will be printed

printInstanceLists

public static void printInstanceLists(EdifEnvironment env,
                                      java.util.List<java.lang.String> instList,
                                      java.io.PrintStream out)
Prints a list of all instances of user-specified cell types.

Parameters:
env - The EDIF environment read in by the JEdif file
instList - The list of cell types provided by the user
out - The PrintStream to which output will be printed

printLibraryCells

public static void printLibraryCells(EdifEnvironment env,
                                     java.util.List<java.lang.String> libList,
                                     java.io.PrintStream out)
Prints a list of all cells contained in EDIF libraries provided by the user.

Parameters:
env - The EDIF environment read in by the JEdif file
libList - The list of libraries provided by the user
out - The PrintStream to which output will be printed

printCellNets

public static void printCellNets(EdifEnvironment env,
                                 java.util.List<java.lang.String> cellList,
                                 java.io.PrintStream out)
Prints a list of all nets contained in user-specified cells.

Parameters:
env - The EDIF environment read in by the JEdif file
cellList - The list of cells provided by the user
out - The PrintStream to which output will be printed

printCellPorts

public static void printCellPorts(EdifEnvironment env,
                                  java.util.List<java.lang.String> cellList,
                                  java.io.PrintStream out)
Prints a list of all ports contained in user-specified cell types.

Parameters:
env - The EDIF environment read in by the JEdif file
cellList - The list of cell types provided by the user
out - The PrintStream to which output will be printed

printDanglingNets

public static void printDanglingNets(EdifEnvironment env,
                                     java.io.PrintStream out)
Prints a list of all dangling nets contained in the design.

Parameters:
env - The EDIF environment read in by the JEdif file
out - The PrintStream to which output will be printed

printSubcells

public static void printSubcells(EdifEnvironment env,
                                 java.util.List<java.lang.String> cellList,
                                 java.io.PrintStream out)
Prints a list of all instances contained in user-specified cell types.

Parameters:
env - The EDIF environment read in by the JEdif file
instList - The list of cell types provided by the user
out - The PrintStream to which output will be printed

printPrimitives

public static void printPrimitives(EdifEnvironment env,
                                   java.util.List<java.lang.String> cellList,
                                   java.io.PrintStream out)
Prints a list of all primitive cells contained in user-specified cell types.

Parameters:
env - The EDIF environment read in by the JEdif file
instList - The list of cell types provided by the user
out - The PrintStream to which output will be printed

countPersistentFFs

private static void countPersistentFFs(EdifEnvironment env,
                                       java.io.PrintStream out)
Counts the number of persistent Xilinx flip-flops in the design. The design must be flattened in order for this option to be valid.

Parameters:
env - The EDIF environment read in by the JEdif file
out - The PrintStream to which output will be printed