at.dms.kjc.spacetime
Class StreamingDram

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
                  extended by at.dms.kjc.spacetime.StreamingDram

public class StreamingDram
extends IODevice

This class represents a streaming dram (SDRAM) that can be attached to a port of the raw chip.

Author:
mgordon

Field Summary
static int STREAMING_QUEUE_SIZE
          the max number of read or write instructions that can be issued to a the streaming dram.
 
Fields inherited from class at.dms.kjc.spacetime.IODevice
port, tiles
 
Fields inherited from class at.dms.kjc.spacetime.RawComputeNode
rawChip, X, Y
 
Fields inherited from class at.dms.kjc.backendSupport.ComputeNode
computeCode
 
Method Summary
static boolean differentDRAMs(InputSliceNode in)
           
static boolean differentDRAMs(OutputSliceNode out)
           
 FileState getFileReader()
           
 FileState getFileWriter()
           
 Address getLB()
           
static StreamingDram getStrDram(Address addr, RawProcElements chip)
           
 Address getUB()
           
 boolean isFileReader()
           
 boolean isFileWriter()
           
 void printDramSetup()
           
static void printSetup(RawProcElements chip)
           
 void resetFileAssignments()
           
static void setBounds(RawProcElements chip)
           
 void setFileReader(FileInputContent file)
           
 void setFileWriter(FileOutputContent file)
           
static void setSize(RawProcElements chip)
           
static void setTiles(RawChip chip)
          Set the tile(s) that is(are) mapped by the hardware to this dram.
 String toString()
           
 
Methods inherited from class at.dms.kjc.spacetime.IODevice
addTile, getDirectionFromTile, getNeighboringTile, getPort, getTile, getTiles
 
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
 

Field Detail

STREAMING_QUEUE_SIZE

public static final int STREAMING_QUEUE_SIZE
the max number of read or write instructions that can be issued to a the streaming dram.

See Also:
Constant Field Values
Method Detail

setSize

public static void setSize(RawProcElements chip)

getStrDram

public static StreamingDram getStrDram(Address addr,
                                       RawProcElements chip)

differentDRAMs

public static boolean differentDRAMs(OutputSliceNode out)

differentDRAMs

public static boolean differentDRAMs(InputSliceNode in)

getUB

public Address getUB()

getLB

public Address getLB()

setTiles

public static void setTiles(RawChip chip)
Set the tile(s) that is(are) mapped by the hardware to this dram. Note that we use a different mapping in our compiler so we must communicate some address between allocating tiles and logical owner tiles.

Parameters:
chip -

setBounds

public static void setBounds(RawProcElements chip)

printDramSetup

public void printDramSetup()

printSetup

public static void printSetup(RawProcElements chip)

toString

public String toString()
Overrides:
toString in class Object

resetFileAssignments

public void resetFileAssignments()

setFileReader

public void setFileReader(FileInputContent file)

setFileWriter

public void setFileWriter(FileOutputContent file)

getFileReader

public FileState getFileReader()

getFileWriter

public FileState getFileWriter()

isFileReader

public boolean isFileReader()

isFileWriter

public boolean isFileWriter()