public class PthalesIOPort
extends java.lang.Object
Red (cxh) |
Red (cxh) |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE
The name of the base parameter.
|
static java.lang.Integer |
ONE
Fixed variable (for compatibility ?).
|
static java.lang.String |
PATTERN
The name of the pattern parameter.
|
static java.lang.String |
TILING
The name of the tiling parameter.
|
Constructor and Description |
---|
PthalesIOPort() |
Modifier and Type | Method and Description |
---|---|
static int |
getArraySize(IOPort port)
Compute total array size.
|
static java.util.LinkedHashMap<java.lang.String,java.lang.Integer> |
getArraySizes(IOPort port)
Compute array sizes (for each dimension).
|
static java.util.LinkedHashMap<java.lang.String,java.lang.Integer> |
getArraySizes(IOPort port,
java.lang.Integer[] repetitions)
Compute array sizes (for each dimension).
|
static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> |
getBase(IOPort port)
Return the base of this port.
|
static int |
getDataProducedSize(IOPort port)
Computes data size produced for each iteration .
|
static java.lang.Integer[] |
getDataProducedSizes(IOPort port)
Computes data sizes (for each dimension) produced for each iteration.
|
static java.lang.String[] |
getDimensions(IOPort port)
Return dimension names, in order of production.
|
static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> |
getExternalTiling(IOPort port,
int nb)
Returns tiling of external loops iterations.
|
static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> |
getInternalPattern(IOPort port)
Compute pattern for external iteration.
|
static int |
getNbTokenPerData(IOPort port)
Return the number of tokens that are logically treated
as a single token.
|
static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> |
getPattern(IOPort port)
Return the pattern of this port.
|
static int |
getPatternNbAddress(IOPort port)
Compute number of address needed for each iteration.
|
static java.lang.Integer[] |
getPatternNbAddresses(IOPort port)
Compute number of address by dimension needed for each iteration.
|
static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> |
getTiling(IOPort port)
Returns the tiling of this port.
|
static void |
initialize(IOPort port)
Reset the variable part of this type to the specified type.
|
static void |
modifyPattern(IOPort port,
java.lang.String[] dims,
int[] dimSizes)
Modify th pattern of the specified port with dimensions (after
propagate).
|
static void |
modifyPattern(IOPort port,
java.lang.String dim,
int dimSize)
Modify the pattern of the specified port with one dimension
(for propagate).
|
static void |
propagateHeader(IOPort portIn,
java.lang.String[] dims,
int[] sizes,
int headersize,
java.util.LinkedHashMap<java.lang.String,java.lang.Integer> arraySizes)
Propagate the header through application relations
to update information.
|
static void |
propagateIterations(IOPort portIn,
java.util.LinkedHashMap<java.lang.String,java.lang.Integer> sizes)
Update actor iterations according to pattern and tiling information.
|
static void |
setDataType(IOPort port)
Check if data type is a structure.
|
public static java.lang.String BASE
public static java.lang.Integer ONE
public static java.lang.String PATTERN
public static java.lang.String TILING
public static int getArraySize(IOPort port)
port
- associated portpublic static java.util.LinkedHashMap<java.lang.String,java.lang.Integer> getArraySizes(IOPort port)
port
- associated portpublic static java.util.LinkedHashMap<java.lang.String,java.lang.Integer> getArraySizes(IOPort port, java.lang.Integer[] repetitions)
port
- associated portrepetitions
- The repetitions values.public static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> getBase(IOPort port)
port
- associated portpublic static int getDataProducedSize(IOPort port)
port
- associated portpublic static java.lang.Integer[] getDataProducedSizes(IOPort port)
port
- associated portpublic static java.lang.String[] getDimensions(IOPort port)
port
- associated portpublic static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> getExternalTiling(IOPort port, int nb)
port
- associated portnb
- the number of used tilings (external ones)public static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> getInternalPattern(IOPort port)
port
- associated portpublic static int getNbTokenPerData(IOPort port)
port
- associated portpublic static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> getPattern(IOPort port)
port
- associated portpublic static int getPatternNbAddress(IOPort port)
port
- associated portpublic static java.lang.Integer[] getPatternNbAddresses(IOPort port)
port
- associated portpublic static java.util.LinkedHashMap<java.lang.String,java.lang.Integer[]> getTiling(IOPort port)
port
- associated portpublic static void initialize(IOPort port) throws IllegalActionException, NameDuplicationException
port
- associated portIllegalActionException
- If the type is not settable,
or the argument is not a Type.NameDuplicationException
- If the container already has an
actor with this name.public static void modifyPattern(IOPort port, java.lang.String dim, int dimSize)
port
- associated portdim
- dimension namedimSize
- dimension sizepublic static void modifyPattern(IOPort port, java.lang.String[] dims, int[] dimSizes)
port
- associated portdims
- dimension namesdimSizes
- dimension sizespublic static void propagateHeader(IOPort portIn, java.lang.String[] dims, int[] sizes, int headersize, java.util.LinkedHashMap<java.lang.String,java.lang.Integer> arraySizes)
portIn
- port used in input for propagesdims
- dimension namessizes
- dimension sizesheadersize
- added header sizearraySizes
- sizes used to compute iterationspublic static void propagateIterations(IOPort portIn, java.util.LinkedHashMap<java.lang.String,java.lang.Integer> sizes)
portIn
- port used in input for propagessizes
- sizes used to compute iterationspublic static void setDataType(IOPort port)
port
- associated port