|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.base.Connection
byucc.jhdl.base.BusConnection
Used to store connection information that can be used by netlisting code. Each connection represents a single port of a cell (of any width), and is contained by only one BusNet.
Field Summary |
Fields inherited from class byucc.jhdl.base.Connection |
cell, is_atomic_port, port_name_index |
Method Summary | |
int |
getAtomicIndex()
This is not defined in bus-wise netlisting |
int[] |
getAtomicMapping()
Returns an array of the mapping of how this connection relates to the owning Net. |
int |
getAtomicMappingRangeCount()
Returns the count of distinct contiguous ranges within the AtomicMapping. |
int |
getAtomicMappingRangeHigh(int range)
Returns the mapped value of the high side of the range within the AtomicMapping. |
int |
getAtomicMappingRangeLow(int range)
Returns the mapped value of the low side of the range within the AtomicMapping. |
int |
getAtomicMappingRangePosition(int range)
Returns the index within this connection's atomic mapping that starts the nth range. |
BusNet |
getBusNet()
Accessor to the owning BusNet |
java.lang.String |
getIndexString()
Returns string of index range of the port |
Methods inherited from class byucc.jhdl.base.Connection |
getCell, getCellFullName, getCellName, getPortName, getPortNameIndex, getPortWidth, isAtomicPort, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getAtomicIndex()
getAtomicIndex
in class Connection
BuildException
- stating this method should not be usedpublic java.lang.String getIndexString()
getIndexString
in class Connection
public int[] getAtomicMapping()
public int getAtomicMappingRangeCount()
getAtomicMapping()
returns { 1, 2, 4, 5, 6, 0 }, so this method returns 3
(the ranges are 0, 6:4, and 2:1).
public int getAtomicMappingRangeLow(int range)
getAtomicMapping()
returns { 1, 2, 4, 5, 6, 0 }, then
getAtomicMappingRangeLow(0) returns 1, the low order index of the lowest order
range in the mapping.
range
- the range of the mapping to check
BuildException
- if range is invalidpublic int getAtomicMappingRangeHigh(int range)
getAtomicMapping()
returns { 1, 2, 4, 5, 6, 0 }, then
getAtomicMappingRangeHigh(0) returns 2, the high order index of the lowest order
range in the mapping.
range
- the range of the mapping to check
BuildException
- if range is invalidpublic int getAtomicMappingRangePosition(int range)
getAtomicMapping()
returns { 1, 2, 4, 5, 6, 0 }, then
getAtomicMappingRangePosition(1) returns 2, since the range 6:4 starts in array slot 2.
range
- the range of the mapping to check
BuildException
- if range is invalidpublic BusNet getBusNet()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |