at.dms.kjc.spacetime
Class IntraSliceBuffer

java.lang.Object
  extended by at.dms.kjc.backendSupport.Channel
      extended by at.dms.kjc.spacetime.OffChipBuffer
          extended by at.dms.kjc.spacetime.IntraSliceBuffer

public class IntraSliceBuffer
extends OffChipBuffer

This class represents the buffer between the sink filter of a slice and outputslicenode or between the inputslicenode and the source filter of a slice.

Author:
mgordon

Field Summary
protected  boolean staticNet
          true if this buffer uses static net
 
Fields inherited from class at.dms.kjc.spacetime.OffChipBuffer
dram, owner, sizeSteady
 
Fields inherited from class at.dms.kjc.backendSupport.Channel
bufferStore, extraCount, ident, rotationLength, theEdge, unique_id
 
Method Summary
protected  void calculateSize()
           
static IntraSliceBuffer getBuffer(FilterSliceNode src, OutputSliceNode dst)
           
static IntraSliceBuffer getBuffer(InputSliceNode src, FilterSliceNode dst)
           
static IntraSliceBuffer getDstIntraBuf(Slice t)
           
 OffChipBuffer getNonRedundant()
          if this buffer is redundant return the first upstream buffer that is not redundant, return null if this is a input->filter buffer with no input or a filter->output buffer with no output
static IntraSliceBuffer getSrcIntraBuf(Slice t)
           
 boolean isStaticNet()
           
 boolean redundant()
           
 void setStaticNet(boolean staticNet)
           
 
Methods inherited from class at.dms.kjc.spacetime.OffChipBuffer
areAllAssigned, getDRAM, getIdent, getIdent, getIdent, getOwner, getRotationLength, getSize, isAssigned, isInterSlice, isIntraSlice, resetDRAMAssignment, setDRAM, setRotationLengths, toString, totalBufferSizeInBytes, unnecessary, unnecessary, unsetDRAM
 
Methods inherited from class at.dms.kjc.backendSupport.Channel
addChannel, assignFromPeekMethod, assignFromPeekMethodName, assignFromPopMethod, assignFromPopMethodName, beginInitRead, beginInitWrite, beginSteadyRead, beginSteadyWrite, dataDecls, dataDeclsH, endInitRead, endInitWrite, endSteadyRead, endSteadyWrite, findChannel, getBuffers, getDest, getExtraCount, getSource, getType, peekMethod, peekMethodName, popManyMethod, popManyMethodName, popMethod, popMethodName, postPreworkInitRead, printBuffers, pushMethod, pushMethodName, readDecls, readDeclsExtern, reset, setExtralength, topOfWorkSteadyRead, topOfWorkSteadyWrite, writeDecls, writeDeclsExtern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

staticNet

protected boolean staticNet
true if this buffer uses static net

Method Detail

getBuffer

public static IntraSliceBuffer getBuffer(FilterSliceNode src,
                                         OutputSliceNode dst)

getBuffer

public static IntraSliceBuffer getBuffer(InputSliceNode src,
                                         FilterSliceNode dst)

isStaticNet

public boolean isStaticNet()
Returns:
Returns true if this buffer uses staticNet.

setStaticNet

public void setStaticNet(boolean staticNet)
Parameters:
staticNet - The staticNet to set.

redundant

public boolean redundant()
Specified by:
redundant in class OffChipBuffer

getNonRedundant

public OffChipBuffer getNonRedundant()
Description copied from class: OffChipBuffer
if this buffer is redundant return the first upstream buffer that is not redundant, return null if this is a input->filter buffer with no input or a filter->output buffer with no output

Specified by:
getNonRedundant in class OffChipBuffer

calculateSize

protected void calculateSize()
Specified by:
calculateSize in class OffChipBuffer

getDstIntraBuf

public static IntraSliceBuffer getDstIntraBuf(Slice t)
Parameters:
t - a slice.
Returns:
The intrasliceBuffer between the last filter and the outputslicenode

getSrcIntraBuf

public static IntraSliceBuffer getSrcIntraBuf(Slice t)
Parameters:
t - a slice.
Returns:
The intraslicebuffer between the inputslicenode and the first filterslicenode