|
|||||||||
| 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
public class BuildWrapper
Includes functionality for loading a design directly into cvt. TODO:
| Field Summary | |
|---|---|
private static int |
_gndcnt
|
private static int |
_netcnt
|
private static int |
_pullupcnt
|
static java.lang.String |
BACK_TO_EDIF
|
static java.lang.String |
CLASSNAME_EXTENSION
Extension to add onto the created .java file for the wrapper. |
static javax.swing.JMenuItem |
edifMenu
|
static java.lang.String |
MENU_EDIF
|
private static int |
MINARGNUMBER
The minimum argument number for this class. |
| Fields inherited from class byucc.edif.jhdl.JHDLWrapper |
|---|
VALID_TECHNOLOGY |
| Constructor Summary | |
|---|---|
BuildWrapper()
|
|
| Method Summary | |
|---|---|
static void |
connectDanglingPorts(InstanceHierarchy hier)
|
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 java.util.Collection |
findTrueInputPortRefs(EdifNet net)
|
static java.util.Collection |
findTrueOutputPortRefs(EdifNet net)
|
static void |
gndPort(EdifCell parent,
EdifPort inPort)
|
static void |
main(java.lang.String[] args)
|
static java.lang.String |
oneUnderScorize(java.lang.String name)
|
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. |
static void |
pullupFloatingOutputs(InstanceHierarchy hier)
|
static void |
pullupPort(EdifCell parent,
EdifNet net)
|
static void |
pullupTopIOPorts(InstanceHierarchy heir)
|
private static void |
testLoadCount(byucc.jhdl.base.Cell top)
|
private static void |
testNaming(byucc.jhdl.base.Cell test)
|
private static void |
testWireToAllWires(byucc.jhdl.base.Cell top)
|
private static void |
testWireXilinxName(byucc.jhdl.base.Cell top)
|
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 |
|---|
buildWrapper, buildWrapper, checkTechnologyValidity, createWiresFromPorts, 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 BACK_TO_EDIF
public static final java.lang.String CLASSNAME_EXTENSION
public static javax.swing.JMenuItem edifMenu
public static final java.lang.String MENU_EDIF
private static final int MINARGNUMBER
private static int _gndcnt
private static int _pullupcnt
private static int _netcnt
| Constructor Detail |
|---|
public BuildWrapper()
| Method Detail |
|---|
public static void connectDanglingPorts(InstanceHierarchy hier)
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
EdifFilepublic static java.util.Collection findTrueInputPortRefs(EdifNet net)
public static java.util.Collection findTrueOutputPortRefs(EdifNet net)
public static void gndPort(EdifCell parent,
EdifPort inPort)
public static void main(java.lang.String[] args)
public static java.lang.String oneUnderScorize(java.lang.String name)
public static void openCircuitInCVT(java.lang.String technologyName,
EdifCellInstance topCellInstance)
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 pullupFloatingOutputs(InstanceHierarchy hier)
public static void pullupPort(EdifCell parent,
EdifNet net)
public static void pullupTopIOPorts(InstanceHierarchy heir)
private static void parseArgs(java.lang.String[] args)
args - The passed arguments.private static void printHelp()
private static void printUsage()
private static void testLoadCount(byucc.jhdl.base.Cell top)
private static void testNaming(byucc.jhdl.base.Cell test)
private static void testWireToAllWires(byucc.jhdl.base.Cell top)
private static void testWireXilinxName(byucc.jhdl.base.Cell top)
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 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
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 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||