Xilinx Toolbox
A collection of functions specifically designed to operate on Xilinx FPGA netlists.
- xilinx_toolbox.parse_xdc_file(nl: hal_py.Netlist, xdc_file: os.PathLike) bool
Parse an
.xdc
file and extract the position LOC and BEL data of each gate. Translates the coordinates extracted from the.xdc
file into integer values.- Parameters
nl (hal_py.Netlist) – The netlist to operate on.
xdc_file (path) – The path to the
.xdc
file.
- Returns
True
on success,False
otherwise.- Return type
- xilinx_toolbox.split_luts(nl: hal_py.Netlist) Optional[int]
Split LUTs with two outputs into two separate LUT gates. Replaces
LUT6_2
with aLUT6
and aLUT5
gate if the respective outputs of theLUT6_2
are actually used, i.e., connected to other gates.- Parameters
nl (hal_py.Netlist) – The netlist to operate on.
- Returns
The number of split
LUT6_2
gates on success,None
otherwise.- Return type
- xilinx_toolbox.split_shift_registers(nl: hal_py.Netlist) Optional[int]
Split shift register primitives and replaces them with equivalent flip-flops chains. Currently only implemented for gate type
SRL16E
.- Parameters
nl (hal_py.Netlist) – The netlist to operate on.
- Returns
The number of split shift registers on success,
None
otherwise.- Return type
- class xilinx_toolbox.XilinxToolboxPlugin
This class provides an interface to integrate the Xilinx toolbox as a plugin within the HAL framework.
- get_dependencies(self: xilinx_toolbox.XilinxToolboxPlugin) Set[str]
Get a set of plugin names that this plugin depends on.
- get_description(self: xilinx_toolbox.XilinxToolboxPlugin) str
Get the description of the plugin.
- Returns
The description of the plugin.
- Return type
- get_name(self: xilinx_toolbox.XilinxToolboxPlugin) str
Get the name of the plugin.
- Returns
The name of the plugin.
- Return type
- get_version(self: xilinx_toolbox.XilinxToolboxPlugin) str
Get the version of the plugin.
- Returns
The version of the plugin.
- Return type