Skip to main content

Pyvado

Python Tests Python License

Python Vivado API

Motivation

This project aims to provide a simple and as much comprehensive as possible tools for controlling vivado with python methods for vivado automation

Structure

Pyvado is base on multiple manager, each runing a specific part of vivado. Manager are follows:

  1. TCLManager : Basic manager for runing TCL command
  2. ProjectManager : Vivado project manager
  3. FileManager : Vivado file system manager
  4. FlowManager : Vivado synthesis flow manager
  5. HardwareManager : Vivado hardware manager
  6. ReportManager : Vivado hardware report manager
  7. SimulatorManager : Vivado simulation manager

These managers communicate to each other via PyvadoSession object and send TCL command directly to vivado process open in batch mode and controlled via PyvadoProcess class.

Installation

pip install pyvado

Usage

Basic synthesis flow annd hbitstream deploy usage

# open Pyvado
with Pyvado("path/to/vivado/project.xpr") as pv:
  # open project
  pv.project.open()

  # add files
  pv.files.add_files("path/to/toplevel.vhd")
  pv.files.add_constraint_file("path/to/const.xdc")

  # run synthesis to bitstream
  pv.flow.set_toplevel("toplevel")
  pv.flow.run_all()

  # deploy bitstream to hardware
  pv.hardware.deploy()

Basic simulation

# open Pyvado
with Pyvado("path/to/vivado/project.xpr") as pv:
  # open project
  pv.project.open()

  # add testbench
  pv.files.add_simulation_file("path/to/testbench.vhd")

  # open simulator
  pv.simulator.open()

  # run 80ns simulation
  pv.simulator.run("80ns")

Basic reports

# open Pyvado
with Pyvado("path/to/vivado/project.xpr") as pv:
  # open project
  pv.project.open()

  # add files
  pv.files.add_files("path/to/toplevel.vhd")
  pv.files.add_constraint_file("path/to/const.xdc")

  # run synthesis to bitstream
  pv.flow.set_toplevel("toplevel")
  pv.flow.synhtesis()


  # open run
  pv.report.open("synth_1")
  pv.report.utilization("path/to/utilization.txt")
  pv.report.power("path/to/utilization.txt")

For more comprehensive tutorials, see example.

Features

  • open vivado project
  • run TCL command lines
  • open vivado project
  • adding files
  • complete deployment workflow from synthesis to device programation
  • run behavioral simulation
  • generate report
  • vectorized simulation and vectorized power report
  • create vivado project
  • multiple vivado execution

Roadmap

  • multiple vivado execution

Contributing

Contribution are welcome.

Contribution guidlines

Contributer must :

  • explain contribution
  • add unit and integration tests
  • update version number of files with the following format : x.y.z -- x : major update -- y : minor update -- z : bug fix
  • If you develop a new manager, please provide an examples about how to use your manager

Contributors

TomatoSan (author), EvaRed12

Version

Current version : 0.1.2

Version comment : pyvado pocess bug fix. Lists mangement (list of file, list of board) enhanced.

License

GPL v3

Metadata

Release files for pyvado 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pyvado 0.1.2
File Interpreter ABI Platform Actions
pyvado-0.1.2-py3-none-any.whl Python 3 none any Details for pyvado-0.1.2-py3-none-any.whl

Release files / pyvado-0.1.2-py3-none-any.whl

Download URL pyvado-0.1.2-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
260706dd753f3d614e7c5c26bf8c3e254ad280aabb1013a77bb72177c4c9b8df
BLAKE2b-256 checksum
How to use checksums
019da1a04433fb4b64b56f123a38393ead05bef961c6eb589f13d48daedc9492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for pyvado 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page