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
.xdcfile and extract the position LOC and BEL data of each gate. Translates the coordinates extracted from the.xdcfile into integer values.- Parameters
nl (hal_py.Netlist) – The netlist to operate on.
xdc_file (path) – The path to the
.xdcfile.
- Returns
Trueon success,Falseotherwise.- Return type
- xilinx_toolbox.split_luts(nl: hal_py.Netlist, gates: List[hal_py.Gate] = []) Optional[int]
Split LUTs with two outputs into two separate LUT gates. Replaces
LUT6_2with aLUT6and aLUT5gate if the respective outputs of theLUT6_2are actually used, i.e., connected to other gates.- Parameters
nl (hal_py.Netlist) – The netlist to operate on.
gates (list[hal_py.Gate]) – The gates to consider. Defaults to an empty list, in which case all gates of the netlist are considered.
- Returns
The number of split
LUT6_2gates on success,Noneotherwise.- Return type
- xilinx_toolbox.split_shift_registers(nl: hal_py.Netlist, gates: List[hal_py.Gate] = []) Optional[int]
Split shift register primitives and replaces them with equivalent flip-flops chains. Currently only implemented for gate types
SRL16EandSRLC32E. The created flip-flops are assigned to the module of the shift register gate that they replace.- Parameters
nl (hal_py.Netlist) – The netlist to operate on.
gates (list[hal_py.Gate]) – The gates to consider. Defaults to an empty list, in which case all gates of the netlist are considered.
- Returns
The number of split shift registers on success,
Noneotherwise.- 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