byucc.jhdl.base
Class Netlist

java.lang.Object
  extended bybyucc.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.
 int size()
           
 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
 

Field Detail

wire_table

protected java.util.Vector wire_table
the table of wires


net_table

protected java.util.Vector net_table
The table of nets

Constructor Detail

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).
Method Detail

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:
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.

Returns:
the string representation of the netlist.

size

public int size()


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.