|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.base.Net
Used by Netlist to associate wires with a list of connection records. There is a single Net record for each wire in the design. A Connection record exists within the Net for each cell that is connected to the wire.
Field Summary | |
protected int |
atomic_index
This the index of the net within some large wire (if it is a member of a non-atomic wire). |
protected ConnectionList |
cl
The list of cells that are connected to the wire. |
protected java.lang.String |
name
The generated name for this bit of the wire. |
protected Wire |
net_wire
The atomic net_wire being associated. |
Constructor Summary | |
protected |
Net(Wire net_wire,
int atomic_index,
java.lang.String wire_name,
boolean has_user_specified_name,
boolean is_atomic)
Just builds a Net record for the given wire with the first cell. |
Method Summary | |
int |
getAtomicIndex()
Returns the atomic index of a wire. |
int |
getAtomicWidth()
Returns the atomic width of the net. |
java.util.Enumeration |
getConnections()
Just returns the connection list for this wire association object. |
abstract java.lang.String |
getIndexString()
Simple accessor to a string representing the net's index |
java.lang.String |
getName()
Simple accessor to set the name of the net. |
PropertyList |
getProperties()
Returns any properties attached to this net. |
Wire |
getWire()
Simple accessor to get the underlying wire. |
boolean |
hasConnections()
Used to tell if a net actually connects to something. |
boolean |
hasMultipleConnections()
Used to tell if a net has more than one connection (and actually connects something). |
boolean |
isAlias(Wire w)
Used to check if a wire and a net are aliases of each other. |
boolean |
isAtomic()
Can be used to determine if the net is atomic, i.e., the same width as the width of atomic wires in the system. |
void |
setAtomicIndex(int index)
Sets the atomic index of the wire. |
void |
setName(java.lang.String name)
Simple accessor to set the name of the net. |
java.lang.String |
toString()
Used to display current contents - useful in debugging |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Wire net_wire
protected ConnectionList cl
protected java.lang.String name
protected int atomic_index
Constructor Detail |
protected Net(Wire net_wire, int atomic_index, java.lang.String wire_name, boolean has_user_specified_name, boolean is_atomic)
atomic_index
- the position of the vp within the wire it was grabbed
from, ignored if is_atomic is true.wire_name
- the name of the wire this vp was grabbed from.has_user_specified_name
- true if the user specified the name, false if
it was generated on the fly from the class nameis_atomic
- true only if the wire it came from was atomic.
BuildException
- if the wire is not atomicMethod Detail |
public Wire getWire()
public java.lang.String getName()
public abstract java.lang.String getIndexString()
public void setName(java.lang.String name)
name
- the name for this net.public int getAtomicIndex()
public void setAtomicIndex(int index)
index
- the atomic index of the wirepublic java.util.Enumeration getConnections()
public boolean isAtomic()
public int getAtomicWidth()
public boolean isAlias(Wire w)
w
- the wire being checked against the net.
public boolean hasMultipleConnections()
public boolean hasConnections()
public PropertyList getProperties()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |