public class BEL extends BooleanFlagHelper
Modifier and Type | Method and Description |
---|---|
boolean |
canInvert()
Checks if the BEL can invert input signals.
|
boolean |
equals(Object obj) |
static BEL |
getBEL(Device device,
SiteTypeEnum siteTypeEnum,
String belName)
|
BELClass |
getBELClass()
Gets the classification of this BEL
|
String |
getBELType()
The prototypical name of the element type.
|
int |
getHighestInputIndex()
Gets the highest index of an input pin on the BEL.
|
BELPin |
getInvertingPin()
For an inverting BEL (see
BEL.canInvert() ), returns the input BEL pin used to invert
an incoming signal. |
String |
getName()
Gets the name of the BEL.
|
BELPin |
getNonInvertingPin()
For an inverting BEL (see
BEL.canInvert() ), returns the input BEL pin used to not invert
an incoming signal. |
BELPin |
getPin(int index)
Gets the pin at the requested index.
|
BELPin |
getPin(String name)
Gets the pin on the element by name.
|
HashMap<String,BELPin> |
getPinMap()
Gets a map keyed by name of all bel pins on this BEL.
|
BELPin[] |
getPins()
Gets the list of all pins on this BEL.
|
SiteTypeEnum |
getSiteTypeEnum()
Gets the site type of this BEL.
|
int |
hashCode() |
boolean |
isCarry()
Checks if this BEL is a Carry block,
getBELType().contains("CARRY") |
boolean |
isFF()
Checks if this BEL is a Flip Flop, same as
getBELType().contains("FF") |
boolean |
isGndSource()
Checks if the BEL can provide a GND source on its output.
|
boolean |
isLUT()
Checks if this BEL is a LUT, same as
getBELType().contains("LUT") |
boolean |
isSliceFFClkMod()
Checks if this BEL is a Versal SLICE_FF_CLK_MOD,
getBELType().equals("SLICE_FF_CLK_MOD") |
boolean |
isSRIMR()
Checks if this BEL is a Versal SR_IMR Register,
getBELType().equals("SR_IMR") |
boolean |
isStaticSource()
Checks if the BEL can provide a GND or VCC source on its output.
|
boolean |
isVccSource()
Checks if the BEL can provide a VCC source on its output.
|
String |
toString()
Gets the name of the BEL with its classification in parenthesis.
|
public String getName()
Vivado Tcl:
set n [get_property NAME $this];string range $n [string last "/" $n]+1 [string length $n]
public BELClass getBELClass()
public BELPin[] getPins()
Vivado Tcl:
get_bel_pins -of $this
public HashMap<String,BELPin> getPinMap()
Vivado Tcl:
get_bel_pins -of $this
public SiteTypeEnum getSiteTypeEnum()
Vivado Tcl:
get_property SITE_TYPE [get_sites -of $this]
public BELPin getPin(String name)
Vivado Tcl:
get_bel_pins -filter NAME==$this/$name -of $this
name
- Name of the pin to get.public BELPin getPin(int index)
Vivado Tcl:
lindex [get_bel_pins -of $bel] $index
index
- Index of the pin to get.public String getBELType()
Vivado Tcl:
get_property TYPE $this
public boolean isGndSource()
public boolean isVccSource()
public boolean isStaticSource()
public boolean canInvert()
public BELPin getInvertingPin()
BEL.canInvert()
), returns the input BEL pin used to invert
an incoming signal.public BELPin getNonInvertingPin()
BEL.canInvert()
), returns the input BEL pin used to not invert
an incoming signal.public int getHighestInputIndex()
Vivado Tcl:
expr [get_property NUM_INPUTS $this] - 1
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public boolean isLUT()
getBELType().contains("LUT")
public boolean isFF()
getBELType().contains("FF")
public boolean isCarry()
getBELType().contains("CARRY")
public boolean isSRIMR()
getBELType().equals("SR_IMR")
public boolean isSliceFFClkMod()
getBELType().equals("SLICE_FF_CLK_MOD")
public static BEL getBEL(Device device, SiteTypeEnum siteTypeEnum, String belName)