pynq.pl_server.hwh_parser Module

The pynq.pl_server.hwh_parser module parses the metadata file (hwh file). The goal is to extract useful information about the bitstream, including IP parameters, system clocks, block hierarchy, interruputs, and many others. This is the recommended way of getting overlay information.

pynq.pl_server.hwh_parser.HWH

alias of pynq.pl_server.hwh_parser._HWHABC

pynq.pl_server.hwh_parser.get_hwh_name(bitfile_name)[source]

This method returns the name of the hwh file.

For example, the input “/home/xilinx/pynq/overlays/base/base.bit” will lead to the result “/home/xilinx/pynq/overlays/base/base.hwh”.

Parameters:bitfile_name (str) – The absolute path of the .bit file.
Returns:The absolute path of the .hwh file.
Return type:str
pynq.pl_server.hwh_parser.string2int(a)[source]

Convert a hex or decimal string into an int.

Parameters:a (string) – The input string representation of the number.
Returns:The decimal number.
Return type:int