|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.spacetime.CommunicateAddrs
public class CommunicateAddrs
This class will generate code to allocate the off chip buffers on the necessary tiles and then communicate each buffer's global address to the tiles that need to know the address. It will also generate the typedefs for the rotating buffers and the functions that will set up the structs for rotation (a circular linked list of buffers). The structure is a circular linked list that has length equal to the rotation length of the buffer, where each entry in the list points to a component (buffer) of the rotated buffer.
It also sets the rotation length for the buffers based on the primepump schedule.
Field Summary | |
---|---|
static String |
freeFunctName
name of the function that de-allocates the rotation buffers |
static String |
functName
name of the function that communicates the addresses on each tile |
static String |
rotationSetupFunction
name of the function that initializes the rotation structures |
static String |
rotTypeDefPrefix
prefix of the variable name for hte rotating buffers |
Method Summary | |
---|---|
static void |
doit(RawChip chip,
SpaceTimeSchedule stSchedule)
Generate code to allocate the off chip buffers on the necessary tiles and then communicate each buffer's global address to the tiles that need to know the address. |
static String |
getFields(ComputeNode tile)
Return a string of C variable declarations that we create for the given tile. |
static String |
getFreeFunction(ComputeNode tile)
Return for |
static String |
getFunction(ComputeNode tile)
For |
static String |
getRotationTypes()
Generate a string that has c code for the type defs for the rotating buffer types. |
static String |
getRotSetupFunct(ComputeNode tile)
Given a tile return C function declaration for the function that will setup the rotation structure for the buffers mapped to this tile. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String rotationSetupFunction
public static String functName
public static String freeFunctName
public static String rotTypeDefPrefix
Method Detail |
---|
public static String getFields(ComputeNode tile)
tile
- The raw tile.
tilereturn the fields that represent the buffers as C variable declarations.
public static String getRotSetupFunct(ComputeNode tile)
tile
- The tile
public static String getFreeFunction(ComputeNode tile)
tilereturn a function that will free the buffer memory.
tile
- The tile.
tilereturn a function that will free the buffer memory.
public static String getFunction(ComputeNode tile)
tilereturn the function that will allocate the buffers or get the addresses from the static network, this function will not perform the setup of the rotation structures.
tile
- The tile.
tilereturn the function that will allocate the buffers or get the addresses from the static network.
public static String getRotationTypes()
public static void doit(RawChip chip, SpaceTimeSchedule stSchedule)
chip
- The raw chip.stSchedule
- The space time schedule for the app.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |