Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.05 KB

File metadata and controls

42 lines (29 loc) · 1.05 KB

Thunderscope Library

This repository provides a library for the LiteX Thunderscope gateware. It is built upon the litepcie driver and includes the register definition files from the Thunderscope gateware build. The Thunderscope litepcie driver should be built separately.

image

Requirements

For the Windows build, requires:

  • VS 2022
  • Cmake

Build

> cd build
> cmake ..
> cmake --build .

Output binaries are in the build/artifacts folder.

Bindings

Python

To build the python bindings, you must first have pipx and cython installed. The easiest way to set this up is in a virtual env.

> python -m venv .venv
> source .venv/bin/activate
> pip install -r requirements.txt

Now you can build the PyBindings target with cmake. If you get an error about some module not being installed, recreate the cmake cache with cmake --fresh ..

> cd build/
> cmake --fresh ..
> cmake --build . -t PyBindings

The wheel is built to the build/bindings/python/dist folder and can be installed with pip.