byucc.jhdl.base
Class Netlist
java.lang.Object
|
+--byucc.jhdl.base.Netlist
- Direct Known Subclasses:
- AtomicNetlist, BusNetlist, FlatNetlist
- public abstract class Netlist
- extends java.lang.Object
Used to collect connection information between Cells and
atomic wires. Creates a net representing each unique ValuePropagater,
which in turn points to all ports of the parent cell and its children
through which that net passes. The netlist is deterministic, ie. given
the same order of inputs the same Enumeration will result.
- Author:
- Brad L. Hutchings
|
Field Summary |
protected java.util.Vector |
net_table
The table of nets |
protected java.util.Vector |
wire_table
the table of wires |
|
Constructor Summary |
protected |
Netlist(Cell parent)
Simple constructor only needs the parent cell. |
|
Method Summary |
protected void |
add(Wire w,
Net net)
Adds the wire to the table using its value propagater as the key. |
protected Net |
find(Wire w)
Go find the association record (if it exists) by an alias or other means. |
java.util.Enumeration |
getNets()
Returns an enumeration of all nets in the netlist. |
java.lang.String |
toString()
Prints out all of the connections in the association list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
wire_table
protected java.util.Vector wire_table
- the table of wires
net_table
protected java.util.Vector net_table
- The table of nets
Netlist
protected Netlist(Cell parent)
- Simple constructor only needs the parent cell.
- Parameters:
parent - is the parent cell (that contains the guts of this netlist).
find
protected Net find(Wire w)
- Go find the association record (if it exists) by an alias or other means.
- Parameters:
w - the atomic wire you are looking for.- Returns:
- the net, if found
add
protected void add(Wire w,
Net net)
- Adds the wire to the table using its value propagater as the key.
- Parameters:
wire - the atomic wire whose value propagater will serve as the key.net - the net to be added to the table.
getNets
public java.util.Enumeration getNets()
- Returns an enumeration of all nets in the netlist.
- Returns:
- an Enumeration object containing all nets in the netlist.
toString
public java.lang.String toString()
- Prints out all of the connections in the association list. Used primarily
for debug.
- Overrides:
toString in class java.lang.Object
- Returns:
- the string representation of the netlist.