Skip to main content

Limited cocotb/Python interface for Xilinx Vivado Simulator

Project description

cocotb-vivado

PyPI version

A limited Python/cocotb interface to the Xilinx Vivado Simulator simulator. Based on cocotb-stub-sim.

The project is at a proof of concept stage

  • Only top-level ports are accessible (simulator limitation).
  • It supports the Timer trigger (simulator limitation).
  • Setting signal values is immediate, as one would use setimmediatevalue (simulator limitation).
  • Only Verilog at the top level is supported (to do).

Installation

pip install cocotb-vivado==0.0.3 (for VIVADO <= 2022.2)
pip install cocotb-vivado (for VIVADO >= 2023.1)

Usage

See the tests folder for examples.

source ../Vivado/202X.X/settings64.sh
export LD_LIBRARY_PATH=$XILINX_VIVADO/lib/lnx64.o
pytest -s

Extra future: One does not need to recompile the project when running/changing tests .

Acknowledgment

We'd like to thank our employer, Dectris for supporting this work.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocotb-vivado-0.0.4.tar.gz (12.6 kB view details)

Uploaded Source

File details

Details for the file cocotb-vivado-0.0.4.tar.gz.

File metadata

  • Download URL: cocotb-vivado-0.0.4.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for cocotb-vivado-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9556c13ec2e9cd26b50b9246b5a1a09d7069dd48c1dc5a071ed0264f650394f0
MD5 2751a43c23c46d839d7946343a613b54
BLAKE2b-256 7dc9b6068d7896ea25f2db044f0612889e9a078fc3cd4778e1d0a2a293da2ace

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page