public class Utils
extends Object
Modifier and Type | Field and Description |
---|---|
static Set<SiteTypeEnum> |
bramTypes |
static Set<SiteTypeEnum> |
dspTypes |
static Set<SiteTypeEnum> |
iobTypes |
static Set<SiteTypeEnum> |
sliceDspBramUramTypes |
static Set<SiteTypeEnum> |
uramTypes |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static SiteTypeEnum |
createSiteType(String s)
Returns a SiteTypeEnum enum based on the given string.
|
static TileTypeEnum |
createTileType(String s)
Returns a TileTypeEnum enum based on the given string s.
|
static Set<TileTypeEnum> |
getBRAMTileTypes() |
static Set<TileTypeEnum> |
getCLBMTileTypes() |
static Set<TileTypeEnum> |
getCLBTileTypes() |
static Set<TileTypeEnum> |
getDSPTileTypes() |
static Set<TileTypeEnum> |
getIntTileTypes() |
static Set<TileTypeEnum> |
getLagunaTileTypes() |
static Set<SiteTypeEnum> |
getLockedSiteTypes() |
static Set<SiteTypeEnum> |
getModuleSiteTypes() |
static Set<TileTypeEnum> |
getURAMTileTypes() |
static boolean |
isBRAM(SiteInst s) |
static boolean |
isBRAM(TileTypeEnum type)
Determines if the provided tile type contains BRAM primitive sites
of any type.
|
static boolean |
isCLB(TileTypeEnum type)
Determines if the provided tile type contains SLICE primitive sites
of any type.
|
static boolean |
isCLBM(TileTypeEnum type)
Determines if the tile type has a SLICEM site type.
|
static boolean |
isDSP(SiteInst s) |
static boolean |
isDSP(TileTypeEnum type)
Determines if the provided tile type contains DSP primitive sites
of any type.
|
static boolean |
isGt(TileTypeEnum type)
Determines if the provided tile type contains GTs primitive sites
of any type.
|
static boolean |
isInterConnect(TileTypeEnum type)
Determines if the provided tile type contains INTERCONNECTs primitive sites
of any type.
|
static boolean |
isIOB(SiteInst s) |
static boolean |
isIOB(SiteTypeEnum s) |
static boolean |
isLaguna(TileTypeEnum type) |
static boolean |
isLockedSiteType(SiteTypeEnum type) |
static boolean |
isModuleSiteType(SiteTypeEnum type) |
static boolean |
isSLICE(SiteInst s) |
static boolean |
isSLICE(SiteTypeEnum s) |
static boolean |
isSwitchBox(TileTypeEnum type)
Determines if the provided tile type contains BRAM primitive sites
of any type.
|
static boolean |
isURAM(SiteInst s) |
static boolean |
isURAM(TileTypeEnum type) |
public static Set<SiteTypeEnum> dspTypes
public static Set<SiteTypeEnum> bramTypes
public static Set<SiteTypeEnum> iobTypes
public static Set<SiteTypeEnum> uramTypes
public static Set<SiteTypeEnum> sliceDspBramUramTypes
public static SiteTypeEnum createSiteType(String s)
s
- The string to be converted to an enum typepublic static TileTypeEnum createTileType(String s)
s
- The string to be converted to an enum typepublic static boolean isCLB(TileTypeEnum type)
type
- The tile type to test for.public static boolean isCLBM(TileTypeEnum type)
type
- public static boolean isDSP(TileTypeEnum type)
type
- The tile type to test for.public static boolean isBRAM(TileTypeEnum type)
type
- The tile type to test for.public static boolean isSwitchBox(TileTypeEnum type)
type
- The tile type to test for.public static boolean isGt(TileTypeEnum type)
type
- The tile type to test for.public static boolean isInterConnect(TileTypeEnum type)
type
- The tile type to test for.public static boolean isURAM(TileTypeEnum type)
public static boolean isLaguna(TileTypeEnum type)
public static boolean isLockedSiteType(SiteTypeEnum type)
public static boolean isModuleSiteType(SiteTypeEnum type)
public static Set<TileTypeEnum> getIntTileTypes()
public static Set<TileTypeEnum> getCLBTileTypes()
public static Set<TileTypeEnum> getCLBMTileTypes()
public static Set<TileTypeEnum> getDSPTileTypes()
public static Set<TileTypeEnum> getBRAMTileTypes()
public static Set<TileTypeEnum> getURAMTileTypes()
public static Set<TileTypeEnum> getLagunaTileTypes()
public static Set<SiteTypeEnum> getLockedSiteTypes()
public static Set<SiteTypeEnum> getModuleSiteTypes()
public static boolean isSLICE(SiteInst s)
public static boolean isSLICE(SiteTypeEnum s)
public static boolean isDSP(SiteInst s)
public static boolean isBRAM(SiteInst s)
public static boolean isURAM(SiteInst s)
public static boolean isIOB(SiteInst s)
public static boolean isIOB(SiteTypeEnum s)