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

bool

xilinx_toolbox.split_luts(nl: hal_py.Netlist) Optional[int]

Split LUTs with two outputs into two separate LUT gates. Replaces LUT6_2 with a LUT6 and a LUT5 gate if the respective outputs of the LUT6_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

int or None

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

int or None

class xilinx_toolbox.XilinxToolboxPlugin

This class provides an interface to integrate the Xilinx toolbox as a plugin within the HAL framework.

property dependencies

A set of plugin names that this plugin depends on.

Type

set[str]

property description

The description of the plugin.

Type

str

get_dependencies(self: xilinx_toolbox.XilinxToolboxPlugin) Set[str]

Get a set of plugin names that this plugin depends on.

Returns

A set of plugin names that this plugin depends on.

Return type

set[str]

get_description(self: xilinx_toolbox.XilinxToolboxPlugin) str

Get the description of the plugin.

Returns

The description of the plugin.

Return type

str

get_name(self: xilinx_toolbox.XilinxToolboxPlugin) str

Get the name of the plugin.

Returns

The name of the plugin.

Return type

str

get_version(self: xilinx_toolbox.XilinxToolboxPlugin) str

Get the version of the plugin.

Returns

The version of the plugin.

Return type

str

property name

The name of the plugin.

Type

str

property version

The version of the plugin.

Type

str