at.dms.kjc.spacetime
Class IODevice
java.lang.Object
at.dms.kjc.slicegraph.ProcElement
at.dms.kjc.backendSupport.ComputeNode<RawComputeCodeStore>
at.dms.kjc.spacetime.RawComputeNode
at.dms.kjc.spacetime.IODevice
- Direct Known Subclasses:
- MagicDram, StreamingDram
public abstract class IODevice
- extends RawComputeNode
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
port
protected int port
tiles
protected Vector<RawTile> tiles
IODevice
public IODevice(RawChip chip,
int port)
IODevice
public IODevice(RawChip chip,
int port,
RawTile tile)
getPort
public int getPort()
addTile
public void addTile(RawTile tile)
getTiles
public RawTile[] getTiles()
- return the tile(s) associated with this iodevice
so for a streaming dram it is the tiles that are mapped
to this dram by the hardware
getTile
public ComputeNode getTile()
getNeighboringTile
public RawTile getNeighboringTile()
getDirectionFromTile
public int getDirectionFromTile()
- Get the direction from the neighboring tile to this
- Returns:
- 2 = west, 3 = south, 4 = east, 5 = north