|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbyucc.edif.jhdl.Edi2JHDL
Generates a JHDL circuit for the designated EdifCellInstance.
TO-DO:
| Field Summary | |
static java.lang.String |
EDIF_CELL_INSTANCE_PROPERTY
The name of the JHDL Cell property to find the corresponding EdifCell, if needed. |
private java.lang.String |
technology
the targeting technology name |
| Constructor Summary | |
Edi2JHDL(java.lang.String techName)
Constructs an Edi2JHDL Object with the specified name. |
|
| Method Summary | |
protected void |
addProperties(EdifCellInstance cellInst,
byucc.jhdl.base.Cell cell)
Add properties to the JHDL Cell according to the EdifCellInstance. |
protected void |
addProperties(EdifCellInstance cellInst,
byucc.jhdl.base.Cell cell,
boolean addEdifCellInstanceAsProperty)
|
private boolean |
containsPortName(EdifCell cell,
java.lang.String portName)
Returns true if the EdifCell contains a port with named after the given String. |
protected byucc.jhdl.base.Cell |
createBlackBoxModel(byucc.jhdl.base.Cell parent,
EdifCellInstance cellInstance,
byucc.jhdl.base.Wire[] portWires)
Create a black box for the EDIF cell that is not in the JHDL library. |
protected void |
createLeafCell(byucc.jhdl.base.Cell parent,
EdifCellInstance leafCell,
java.util.ArrayList wires)
|
protected void |
createLeafCell(byucc.jhdl.base.Cell parent,
EdifCellInstance leafCell,
java.util.ArrayList wires,
boolean addEdifCellInstanceAsProperty)
Create the leaf cell as the sub cell of the parent cell. |
protected void |
createSubCellWires(EdifCellInstance subcell,
EdifCellInstance parentCell,
java.util.ArrayList wires,
byucc.jhdl.base.Cell jhdlInstance,
java.util.HashMap internalWires,
java.util.Map instToMap)
Creates an ArrayList of JHDL Wire Objects to connect with the ports of the sub cell. |
static java.lang.String |
JHDL_ID(java.lang.String id)
This method will change a name to a JHDL qualified name. |
private static int |
parseMemDepth(java.lang.String name)
Method used to parse the depth of the ram or rom (in ramMxN its the number associated with 'N'. |
private static java.lang.String |
parseMemMxNPropertyLength(java.lang.String name)
In ramMxN, this method returns the 'M' for ram or roms. |
protected java.lang.String |
portConnected(EdifPort port,
int busMember,
EdifCellInstance subCellInstance,
java.util.Map instToMap)
Get the connected net name that the port (can be a bus port member also) of the subCellInstance connects to in the nets of the parent CellInstance. |
byucc.jhdl.base.Cell |
toJHDLCircuit(byucc.jhdl.base.Cell parent,
EdifCellInstance cellInstance,
byucc.jhdl.base.Wire[] portWires)
|
byucc.jhdl.base.Cell |
toJHDLCircuit(byucc.jhdl.base.Cell parent,
EdifCellInstance cellInstance,
byucc.jhdl.base.Wire[] portWires,
boolean addEdifCellInstanceAsProperty)
This method will create a JHDL Cell for an EdifCellInstance object, as a sub JHDL Cell of the "parent" JHDL Cell, and connect all the passed in JHDL Wires to the created JHDL Cell's ports, and finally, it will return this created JHDL Cell. |
| 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 EDIF_CELL_INSTANCE_PROPERTY
private java.lang.String technology
| Constructor Detail |
public Edi2JHDL(java.lang.String techName)
techName - The technology for JHDL| Method Detail |
protected void addProperties(EdifCellInstance cellInst,
byucc.jhdl.base.Cell cell)
cellInst - Takes all of this EdifCell's Property Objects,
and adds them to the JHDL Cellcell - The JHDL Cell that will get all of the EdifCell's
Properties
protected void addProperties(EdifCellInstance cellInst,
byucc.jhdl.base.Cell cell,
boolean addEdifCellInstanceAsProperty)
addEdifCellInstanceAsProperty - If true, this flag adds a
property to the JHDL cell whose key is held by the string EDIF_CELL_INSTANCE_PROPERTY, and whose value is an
EdifCellInstance.
private boolean containsPortName(EdifCell cell,
java.lang.String portName)
cell - The cell whose EdifPort Objects will be checked
protected byucc.jhdl.base.Cell createBlackBoxModel(byucc.jhdl.base.Cell parent,
EdifCellInstance cellInstance,
byucc.jhdl.base.Wire[] portWires)
EdifBlackBoxCell, inserting the ports, and connecting them to
wires. On each clock, this black box cell will put 0s on each
of it's out/inout wires.
parent - The parent cell to the black box cellInstancecellInstance - The EdifCellInstance referring to a black
box EdifCellportWires - An ArrayList of Wire Objects
protected void createLeafCell(byucc.jhdl.base.Cell parent,
EdifCellInstance leafCell,
java.util.ArrayList wires)
protected void createLeafCell(byucc.jhdl.base.Cell parent,
EdifCellInstance leafCell,
java.util.ArrayList wires,
boolean addEdifCellInstanceAsProperty)
parent - The parent of the created leaf cellleafCell - The EdifCellInstance that represents the leafCellwires - An ArrayList of Wire Objects
protected void createSubCellWires(EdifCellInstance subcell,
EdifCellInstance parentCell,
java.util.ArrayList wires,
byucc.jhdl.base.Cell jhdlInstance,
java.util.HashMap internalWires,
java.util.Map instToMap)
subcell - The subcell to the parentCell for creating wiresparentCell - The parent to the subcellwires - The Collection that will contain the created Wire
ObjectsjhdlInstance - Used to create the JDHL Wire objectsinternalWires - JHDL Wire Objectspublic static java.lang.String JHDL_ID(java.lang.String id)
id - The String to make JHDL-valid
private static int parseMemDepth(java.lang.String name)
name - The name of the ram or rom
private static java.lang.String parseMemMxNPropertyLength(java.lang.String name)
name - The name of the class to parse
protected java.lang.String portConnected(EdifPort port,
int busMember,
EdifCellInstance subCellInstance,
java.util.Map instToMap)
port - The EdifPort Object owned by the subCellInstancebusMember - The bus member of the EdifPortRefsubCellInstance - The EdifCellInstance owning port
public byucc.jhdl.base.Cell toJHDLCircuit(byucc.jhdl.base.Cell parent,
EdifCellInstance cellInstance,
byucc.jhdl.base.Wire[] portWires)
public byucc.jhdl.base.Cell toJHDLCircuit(byucc.jhdl.base.Cell parent,
EdifCellInstance cellInstance,
byucc.jhdl.base.Wire[] portWires,
boolean addEdifCellInstanceAsProperty)
parent - a CellcellInstance - an EdifCellInstanceportWires - a Wire[]
Cell
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||