at.dms.kjc.spacetime
Class RawTile

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.RawTile

public class RawTile
extends RawComputeNode

This class represents a raw tile on the raw chip with its compute processor and its switch processor and the code that runs on each.

Author:
mgordon

Field Summary
 
Fields inherited from class at.dms.kjc.spacetime.RawComputeNode
rawChip, X, Y
 
Fields inherited from class at.dms.kjc.backendSupport.ComputeNode
computeCode
 
Constructor Summary
RawTile(int x, int y, RawChip rawChip)
           
 
Method Summary
 void addBuffer(OffChipBuffer buf)
           
 void addIODevice(IODevice io)
           
 void addSliceNode(boolean init, boolean primepump, SliceNode node)
          Add a SliceNode to the the filters associated with this node.
 HashSet<OffChipBuffer> getBuffers()
           
 StreamingDram getDRAM()
           
 IODevice getIODevice()
           
 IODevice[] getIODevices()
           
 int getIOIndex(IODevice dev)
           
 Vector<RawTile> getNeighborTiles()
           
 Iterable<SliceNode> getSliceNodes(boolean init, boolean primepump)
          Get the SliceNode's associated with this ComputeNode.
 SwitchCodeStore getSwitchCode()
           
 int getTileNumber()
           
 boolean hasComputeCode()
           
 boolean hasIODevice()
           
 boolean hasSwitchCode()
           
 boolean isAttached(IODevice dev)
           
 boolean isMapped()
           
 void printDram()
           
static void printDramSetup(RawChip chip)
           
 void setComputes()
           
 void setDRAM(StreamingDram sd)
           
 void setMapped()
           
 void setSwitches()
           
 String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

RawTile

public RawTile(int x,
               int y,
               RawChip rawChip)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hasIODevice

public boolean hasIODevice()

addIODevice

public void addIODevice(IODevice io)

addBuffer

public void addBuffer(OffChipBuffer buf)

getBuffers

public HashSet<OffChipBuffer> getBuffers()

getDRAM

public StreamingDram getDRAM()

setDRAM

public void setDRAM(StreamingDram sd)

isAttached

public boolean isAttached(IODevice dev)

getIOIndex

public int getIOIndex(IODevice dev)

getIODevices

public IODevice[] getIODevices()

getIODevice

public IODevice getIODevice()

getTileNumber

public int getTileNumber()

hasComputeCode

public boolean hasComputeCode()

hasSwitchCode

public boolean hasSwitchCode()

getSwitchCode

public SwitchCodeStore getSwitchCode()

setSwitches

public void setSwitches()

setMapped

public void setMapped()

isMapped

public boolean isMapped()

setComputes

public void setComputes()

printDram

public void printDram()

printDramSetup

public static void printDramSetup(RawChip chip)

getNeighborTiles

public Vector<RawTile> getNeighborTiles()

addSliceNode

public void addSliceNode(boolean init,
                         boolean primepump,
                         SliceNode node)
Add a SliceNode to the the filters associated with this node.

Parameters:
init - true if init stage, false if primepump or steady stage
primepump - true if primepump stage, false if init or steady stage
node - SliceNode to add

getSliceNodes

public Iterable<SliceNode> getSliceNodes(boolean init,
                                         boolean primepump)
Get the SliceNode's associated with this ComputeNode.

Parameters:
init - true if init stage, false if primepump or steady stage
primepump - true if primepump stage, false if init or steady stage
Returns:
the FilterSliceNodes added by addFilterSlice for the passed values of init and primepump