|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.spacetime.RawProcElements
at.dms.kjc.spacetime.RawChip
public class RawChip
This class represents the raw chip to which we are compiling.
This class tries to deal with the collection of RAW tiles.
See RawProcElements
for dealing with I/O devices,
and dealing with geometry that could include I/O devices as well as tiles.
Field Summary | |
---|---|
static int |
cacheLineBytes
|
static int |
cacheLineWords
|
static String |
ConstructDynHdr
the name of the function that constructs dynamic headers in raw.h |
static int |
DRAM_GDN_DATA_OPCODE
the opcode that for a packet of data for the dram send over the gdn |
static int |
MAX_GDN_PKT_SIZE
the maximum packet size of a gdn packet (not including the header) |
Fields inherited from class at.dms.kjc.spacetime.RawProcElements |
---|
devices, gXSize, gYSize, tiles |
Constructor Summary | |
---|---|
RawChip(int size)
Create a RawChip and its associated RawTiles given a total number of tiles. |
|
RawChip(int xSize,
int ySize)
Initialize a |
Method Summary | |
---|---|
boolean |
canAllocateNewComputeNode()
Does this implementation have dynamic creation of new nodes or are all nodes statically allocated. |
int |
computingTiles()
Returns the numbers of tiles of the raw chip that have compute code at the given tile |
RawTile |
getNthComputeNode(int n)
Get the nth element of the collection of compute nodes. |
RawTile |
getTile(int tileNumber)
|
RawTile |
getTile(int x,
int y)
|
RawTile |
getTile(RawTile tile,
char dir)
Get the tile that is at the specified |
int |
getTotalTiles()
|
boolean |
isValidComputeNodeNumber(int tileNum)
Does a number correspond to a compute node? |
int |
newComputeNode()
Create a new compute node if compute nodes are dynamically creatable. |
void |
printChip()
|
int |
size()
Return the (current) number of compute nodes. |
Methods inherited from class at.dms.kjc.spacetime.RawProcElements |
---|
areNeighbors, getComputeNode, getDevices, getDirection, getIPort, getIPort2, getNumDev, getOPort, getOPort2, getXDir, getXSize, getYDir, getYSize, manhattanDistance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int cacheLineBytes
public static final int cacheLineWords
public static final String ConstructDynHdr
public static final int MAX_GDN_PKT_SIZE
public static final int DRAM_GDN_DATA_OPCODE
Constructor Detail |
---|
public RawChip(int xSize, int ySize)
xSizex
ySizeraw chip.
xSize
- ySize
- public RawChip(int size)
size
- number of tiles, in a square array.Method Detail |
---|
public boolean isValidComputeNodeNumber(int tileNum)
ComputeNodesI
isValidComputeNodeNumber
in interface ComputeNodesI<RawComputeCodeStore>
tileNum
- number to check
public RawTile getTile(int tileNumber)
public RawTile getNthComputeNode(int n)
ComputeNodesI
getNthComputeNode
in interface ComputeNodesI<RawComputeCodeStore>
public RawTile getTile(int x, int y)
public int getTotalTiles()
public int size()
ComputeNodesI
size
in interface ComputeNodesI<RawComputeCodeStore>
public boolean canAllocateNewComputeNode()
ComputeNodesI
canAllocateNewComputeNode
in interface ComputeNodesI<RawComputeCodeStore>
ComputeNodesI.newComputeNode()
may throw any throwable.public int newComputeNode()
ComputeNodesI
newComputeNode
in interface ComputeNodesI<RawComputeCodeStore>
#getComputeNode(int)
.public int computingTiles()
public RawTile getTile(RawTile tile, char dir)
dirfrom
tile.
tile
- dir
- 'N', 'S', 'W', 'E'
public void printChip()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |