at.dms.kjc.spacetime
Class IODevice

java.lang.Object
  extended by at.dms.kjc.slicegraph.ProcElement
      extended by at.dms.kjc.backendSupport.ComputeNode<RawComputeCodeStore>
          extended by at.dms.kjc.spacetime.RawComputeNode
              extended by at.dms.kjc.spacetime.IODevice
Direct Known Subclasses:
MagicDram, StreamingDram

public abstract class IODevice
extends RawComputeNode


Field Summary
protected  int port
           
protected  Vector<RawTile> tiles
           
 
Fields inherited from class at.dms.kjc.spacetime.RawComputeNode
rawChip, X, Y
 
Fields inherited from class at.dms.kjc.backendSupport.ComputeNode
computeCode
 
Constructor Summary
IODevice(RawChip chip, int port)
           
IODevice(RawChip chip, int port, RawTile tile)
           
 
Method Summary
 void addTile(RawTile tile)
           
 int getDirectionFromTile()
          Get the direction from the neighboring tile to this
 RawTile getNeighboringTile()
           
 int getPort()
           
 ComputeNode getTile()
           
 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
 
Methods inherited from class at.dms.kjc.spacetime.RawComputeNode
getRawChip, getX, getY
 
Methods inherited from class at.dms.kjc.backendSupport.ComputeNode
getComputeCode, getUniqueId, setComputeCode, setUniqueId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

protected int port

tiles

protected Vector<RawTile> tiles
Constructor Detail

IODevice

public IODevice(RawChip chip,
                int port)

IODevice

public IODevice(RawChip chip,
                int port,
                RawTile tile)
Method Detail

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