|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbyucc.edif.jhdl.JHDLWrapper
byucc.edif.jhdl.BuildWrapper
Includes functionality for loading a design directly into cvt. TODO:
| Field Summary | |
private static boolean |
addEdifCellInstanceAsProperty
Arg specifying whether to have the option of going from EDIF to JHDL, and back to EDIF again. |
static java.lang.String |
BACK_TO_EDIF
|
static java.lang.String |
CLASSNAME_EXTENSION
Extension to add onto the created .java file for the wrapper. |
private static java.util.Collection |
dirs
Argument holding the Collection of search directories for merging. |
private static java.lang.String |
edifFileName
Argument specifying the topEdifFile name for parsing. |
static javax.swing.JMenuItem |
edifMenu
|
static java.lang.String |
MENU_EDIF
|
private static boolean |
merge
Argument specifying whether or not to merge. |
private static int |
MINARGNUMBER
The minimum argument number for this class. |
private static boolean |
nocvt
Argument specifying whether or not to load the circuit in cvt. |
private static java.util.Collection |
subFiles
Argument holding the Collection of sub files for merging. |
private static java.lang.String |
technologyName
Argument specifying the technology. |
private static java.lang.String |
writeEdifFileName
Argument specifying the filename to write the completed/merged Edif file to. |
private static boolean |
writeWrapper
Argument specifying whether or not to write the wrapper.java file. |
| Fields inherited from class byucc.edif.jhdl.JHDLWrapper |
VALID_TECHNOLOGY |
| Constructor Summary | |
BuildWrapper()
|
|
| Method Summary | |
static void |
createJHDLdotJavaFile(java.lang.String newFileName,
java.lang.String technologyName,
EdifCell topcell,
java.lang.String topFileName,
java.util.Collection subFiles)
Prints out a *_wrapper.java file for the passed-in EdifCell. |
static void |
main(java.lang.String[] args)
|
static void |
openCircuitInCVT(java.lang.String technologyName,
EdifCellInstance topCellInstance)
|
static void |
openCircuitInCVT(java.lang.String technologyName,
EdifCellInstance topCellInstance,
boolean addEdifCellInstanceAsProperty)
Opens the given EdifCellInstance in a cvtFrame. |
private static void |
parseArgs(java.lang.String[] args)
Parses the arguments passed to the wrapper. |
private static void |
printHelp()
Prints a help message, describing the options to pass to this class. |
private static void |
printUsage()
Prints out information on how to pass the options to this class. |
private static void |
writeCellInterface(java.io.PrintWriter fp,
EdifCell topcell)
Writes the wrapper's CellInterface. |
private static void |
writeClassGuts(java.io.PrintWriter fp,
EdifCell topcell,
java.lang.String technologyName,
java.lang.String className,
java.lang.String topFileName,
java.util.Collection subFiles)
Writes the wrapper's body. |
private static void |
writeClassHeader(java.io.PrintWriter fp,
java.lang.String technology,
java.lang.String className)
Writes the wrapper's class header. |
private static void |
writeConstructor(java.io.PrintWriter fp,
EdifCell topcell,
java.lang.String className)
Writes the wrapper's Constructor. |
private static void |
writePortWires(java.io.PrintWriter fp,
EdifCell topcell)
Writes the wrapper's port wires. |
| Methods inherited from class byucc.edif.jhdl.JHDLWrapper |
addPorts, buildWrapper, buildWrapper, checkTechnologyValidity, JHDL_ID, listValidTechnologies |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MENU_EDIF
public static final java.lang.String BACK_TO_EDIF
public static javax.swing.JMenuItem edifMenu
public static final java.lang.String CLASSNAME_EXTENSION
private static final int MINARGNUMBER
private static java.lang.String edifFileName
private static java.lang.String writeEdifFileName
private static java.lang.String technologyName
private static boolean writeWrapper
private static java.util.Collection dirs
private static java.util.Collection subFiles
private static boolean merge
private static boolean nocvt
private static boolean addEdifCellInstanceAsProperty
| Constructor Detail |
public BuildWrapper()
| Method Detail |
public static void main(java.lang.String[] args)
public static void openCircuitInCVT(java.lang.String technologyName,
EdifCellInstance topCellInstance,
boolean addEdifCellInstanceAsProperty)
technologyName - The technology of the circuit for library
finding purposes.topCellInstance - The cell instance that will be the root
to the root cell to the cvtFrame.
public static void openCircuitInCVT(java.lang.String technologyName,
EdifCellInstance topCellInstance)
private static void parseArgs(java.lang.String[] args)
args - The passed arguments.private static void printHelp()
private static void printUsage()
public static void createJHDLdotJavaFile(java.lang.String newFileName,
java.lang.String technologyName,
EdifCell topcell,
java.lang.String topFileName,
java.util.Collection subFiles)
newFileName - The file name for the wrappertechnologyName - The technology this wrapper will usetopcell - The Top cell of the design for the wrapper
filesubFiles - The sub files, if any, needed by the top
EdifFile
private static void writeClassHeader(java.io.PrintWriter fp,
java.lang.String technology,
java.lang.String className)
fp - The PrintWriter Object used to print the wrappertechnology - The technology used by the wrapperclassName - The name of the class
private static void writeCellInterface(java.io.PrintWriter fp,
EdifCell topcell)
fp - The PrintWriter Object used to print the wrappertopcell - The Top cell of the design for the wrapper
file
private static void writeConstructor(java.io.PrintWriter fp,
EdifCell topcell,
java.lang.String className)
fp - The PrintWriter Object used to print the wrappertopcell - The Top cell of the design for the wrapperclassName - The name of the class file
private static void writePortWires(java.io.PrintWriter fp,
EdifCell topcell)
fp - The PrintWriter Object used to print the wrappertopcell - The Top cell of the design for the wrapper
private static void writeClassGuts(java.io.PrintWriter fp,
EdifCell topcell,
java.lang.String technologyName,
java.lang.String className,
java.lang.String topFileName,
java.util.Collection subFiles)
fp - The PrintWriter Object used to print the wrappertopcell - The Top cell of the design for the wrappertechnologyName - The technology this wrapper will useclassName - The name of the class filesubFiles - The sub files, if any, needed by the top
EdifFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||