at.dms.kjc.spacedynamic
Class IOPort
java.lang.Object
at.dms.kjc.spacedynamic.ComputeNode
at.dms.kjc.spacedynamic.IOPort
public class IOPort
- extends ComputeNode
This class represents an IOPort on the chip in which devices can be connected
to, it extends ComputeNode for easy routing.
IOPort
public IOPort(RawChip chip,
int index)
addDevice
public void addDevice(IODevice device)
- should only be called by RawChip *
getDevices
public IODevice[] getDevices()
hasDevice
public boolean hasDevice()
removeDevice
public void removeDevice(IODevice io)
getPortNumber
public int getPortNumber()
getNeighboringTile
public RawTile getNeighboringTile()
- Get the raw tile that this IOPort is connected to
getDirectionFromTile
public int getDirectionFromTile()
- Get the direction from the neighboring tile to this
- Returns:
- 2 = west, 3 = south, 4 = east, 5 = north
toString
public String toString()
- Overrides:
toString
in class Object