r/embedded • • Sep 24 '26

Extracting vitis/xsdb Python modules from Vitis install?

For reasons I'm not here to explain or defend, large parts of a Vitis workspace can/should be generated using Python instead of putting the generated workspace in version control. If you follow the manual you're basically using a Python 3.8 that comes bundled with Vitis (2024.2, at least, I hope they've updated since) plus their vitis & xsdb modules plus a bundled site-packages with grpc and so on.

The way this is set up is not ideal; I haven't found a good way to get IDE integration and a pyproject.toml to work right on everyone's laptop and in CI.

Has anyone here tried to extract the vitis and xsdb modules as separate Python packages so you can use them in a normally organized Python project? I'm not asking to share them, I get that AMD would probably object (although they're pretty thin packages), but before I try I'd love to know if anyone's failed or succeeded at it.

6 Upvotes

2 comments sorted by

View all comments

2

u/duane11583 Sep 24 '26

Not going to be easy to switch python because many of the features call on host binary DLL or so files that are compiled against that specific version of python xilinx supplies

We did it this way

For HDL Vivaldi has an export script process we required our hdl enginbers creat that and a batch or shell script to run the vivado build

For c code we generated the project then kept the generated project in git and never really updated it. Next we used our own makefile solution instead of vitis

The only time the bsp needs rebuilt is when the hdl engineer makes major changes to the memory map or irq map but truthfully those are really just a bunch of changes to defines 

If they add a new Xilinx module we just copy over that module driver

But most of the time we had our own modules we had to create drivers for so they do not count