at.dms.kjc.spacedynamic
Class IOPort

java.lang.Object
  extended by at.dms.kjc.spacedynamic.ComputeNode
      extended by 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.


Field Summary
 
Fields inherited from class at.dms.kjc.spacedynamic.ComputeNode
rawChip, X, Y
 
Constructor Summary
IOPort(RawChip chip, int index)
           
 
Method Summary
 void addDevice(IODevice device)
          should only be called by RawChip *
 IODevice[] getDevices()
           
 int getDirectionFromTile()
          Get the direction from the neighboring tile to this
 RawTile getNeighboringTile()
          Get the raw tile that this IOPort is connected to
 int getPortNumber()
           
 boolean hasDevice()
           
 void removeDevice(IODevice io)
           
 String toString()
           
 
Methods inherited from class at.dms.kjc.spacedynamic.ComputeNode
getRawChip, getX, getY, isPort, isTile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOPort

public IOPort(RawChip chip,
              int index)
Method Detail

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