|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbyucc.jhdl.netlisters.jhdl.JHDLNetlistWriter
Writes JHDL classes (i.e. netlists in Java) for 'Cell' objects that are currently instantiated. The cell object in memory is queried for necessary information, and then a class (.java) file is written in the standard JHDL format: cell_interface is declared, a constructor (with the proper wire parameters passed in, connect() calls for those wires, and child objects instantiated) is declared. This class is used in a test bench very similarly to any other netlister, i.e.:
Cell my_obj = new MyClass(...);
JHDLNetlistWriter my_netlister JHDLNetlistWriter(my_obj);
my_netlister.writeTree();
| Constructor Summary | |
JHDLNetlistWriter(Cell tp)
|
|
JHDLNetlistWriter(Cell tp,
java.lang.String target)
|
|
JHDLNetlistWriter(Cell tp,
java.lang.String target,
java.lang.String filename)
|
|
| Method Summary | |
protected void |
addObjectProperties(Cell c)
iterate through all of the CellProperties for a cell, and if any exist, write them out as an 'addProperty' JHDL call. |
void |
writeCell()
Writes out JHDL source for the cell stored in the class variable 'c'. |
void |
writeTree()
Using top as the new top of the tree (recusively speaking), get all of the children and visit them post-transversal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JHDLNetlistWriter(Cell tp)
public JHDLNetlistWriter(Cell tp,
java.lang.String target)
public JHDLNetlistWriter(Cell tp,
java.lang.String target,
java.lang.String filename)
| Method Detail |
public void writeTree()
public void writeCell()
protected void addObjectProperties(Cell c)
c - cell whose properties should be extracted
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||