public class RelocationTools
extends Object
Modifier and Type | Field and Description |
---|---|
static Set<SiteTypeEnum> |
defaultSiteTypes |
Constructor and Description |
---|
RelocationTools() |
Modifier and Type | Method and Description |
---|---|
static Pair<Site,Map<Integer,Site>> |
getValidRelocationOptions(Design design)
Based on the provided design, calculates all of the valid locations that the
implemented component could be relocated to on the currently targeted device.
|
static void |
main(String[] args)
Offers a command line accessible way to relocate a design implementation.
|
static void |
printValidRelocationOptions(Pair<Site,Map<Integer,Site>> options,
int limit,
PrintStream ps)
Prints out valid relocation options produced by
RelocationTools.getValidRelocationOptions(Design) . |
static boolean |
relocate(Design design,
Collection<SiteInst> siteInsts,
int tileColOffset,
int tileRowOffset)
Relocate all given SiteInsts and PIPs in-place by
tileColOffset/tileRowOffset tiles.
|
static boolean |
relocate(Design design,
PBlock pblock,
int tileColOffset,
int tileRowOffset)
Relocate all SiteInsts (and PIPs) within the Pblock in-place by tileColOffset/tileRowOffset tiles.
|
static boolean |
relocate(Design design,
String instanceName,
int tileColOffset,
int tileRowOffset) |
static boolean |
relocate(Design design,
String instanceName,
int tileColOffset,
int tileRowOffset,
Set<SiteTypeEnum> siteTypes)
Relocate all SiteInsts (and all associated PIPs) belonging to the logical Cell at
instanceName in-place by tileColOffset/tileRowOffset tiles.
|
public static final Set<SiteTypeEnum> defaultSiteTypes
public static boolean relocate(Design design, String instanceName, int tileColOffset, int tileRowOffset)
public static boolean relocate(Design design, String instanceName, int tileColOffset, int tileRowOffset, Set<SiteTypeEnum> siteTypes)
design
- Parent designinstanceName
- Full hierarchical instance name to logical cell
(empty for top cell)tileColOffset
- Relocate this number of tile columns (X axis)tileRowOffset
- Relocate this number of tile rows (Y axis)siteTypes
- Set of SiteTypeEnum-s to relocate
(overload exists where this is emitted thus
defaulting to RelocationTools.defaultSiteTypes)public static boolean relocate(Design design, PBlock pblock, int tileColOffset, int tileRowOffset)
design
- Parent designpblock
- PBlocktileColOffset
- Relocate this number of tile columns (X axis)tileRowOffset
- Relocate this number of tile rows (Y axis)public static boolean relocate(Design design, Collection<SiteInst> siteInsts, int tileColOffset, int tileRowOffset)
design
- Parent designsiteInsts
- List of SiteInsts to be relocatedtileColOffset
- Relocate this number of tile columns (X axis)tileRowOffset
- Relocate this number of tile rows (Y axis)public static Pair<Site,Map<Integer,Site>> getValidRelocationOptions(Design design)
design
- The design to evaluate for relocation options.public static void printValidRelocationOptions(Pair<Site,Map<Integer,Site>> options, int limit, PrintStream ps)
RelocationTools.getValidRelocationOptions(Design)
.options
- The relocation options.limit
- Limit the number of printed options to this value.public static void main(String[] args)
args
- Two modes, for listing relocation options args[0]==