Can you extract Python Libraries for Zynq Programming?

Hello,

In order to use the RFADC/DACs of the RFSoC4x2, it is necesary to setup the LMX/LMK clocks of the board to generate the sampling clocks.

As far I know there are libraries (xrfclk, particularly) that allows to setup the PLL for the Data Converters of the board. However my idea is not to use all the PYNQ base for my application, my purpose is to create linux applications.

In fact I already have a vivado hardware that includes the RFDC IP Block, compiles and generates bitstream that can be read in Vitis for software development. But the problem is that even though the RFDC Driver appears in vitis, the rf clocking setup driver does not appear so I can’t startup them and thus the RFDataConverters.

Is this possible? Should i do it from Petalinux Tools, or Vivado?

Thanks in advance!

If you need to change them, then yes, you need to set them up.

You can use the TICS PRO software to generate the register config.

The LMX and LMK on the supported boards are connected to the PS via SPI. We have Python drivers which access the devices over SPI and setup clock config by writing the appropriate registers.

You can see the PYNQ xrfclk driver here and the code to configure (write the appropriate registers.
You could write the code to write the registers from the TICSPRO sw via SPI.

Cathal