Skip to main content

sawmill-plugin-vivado

A Sawmill plugin for parsing Xilinx Vivado synthesis, implementation, and bitstream logs.

See Sawmill for more info.

Installation

[uv] pip install git+https://github.com/sjalloq/sawmill-plugin-vivado.git

Or for development:

git clone https://github.com/sjalloq/sawmill-plugin-vivado.git
cd sawmill-plugin-vivado
make install

Confirm it's registered:

sawmill --list-plugins

Usage

# Launch the TUI on a Vivado log
sawmill vivado.log

# Filter to errors and critical warnings only
sawmill vivado.log --severity error
sawmill vivado.log --severity critical_warning

# CI mode — fail on warnings and above
sawmill vivado.log --check

# Fail only on errors
sawmill vivado.log --check --fail-on error

What It Parses

Vivado logs use this message format:

TYPE: [Category ID-Number] message text [/path/to/file.v:line]

For example:

INFO: [Synth 8-6157] synthesizing module 'top' [/src/top.v:53]
WARNING: [Vivado 12-3523] Attempt to change 'name' is not allowed
CRITICAL WARNING: [Constraints 18-4427] Constraint override warning
ERROR: [Route 35-9] Routing failed

The plugin handles multi-line messages (indented continuation lines, tables) and extracts file references from both [/path:line] and /path:line formats.

Severity Levels

ID Name Level Style
error Error 3 red bold
critical_warning Critical Warning 2 red
warning Warning 1 yellow
info Info 0 cyan

Detection

The plugin identifies Vivado logs by checking (in order of confidence):

  1. Vivado header (# Vivado v2025.2 ...) — 0.95
  2. Multiple Vivado message IDs (Synth, DRC, Timing, etc.) — 0.85
  3. Severity pattern density (5+ matching lines) — 0.6
  4. Filename contains "vivado" — 0.4

Domain-Specific Filters

These filters let you focus on specific Vivado subsystems. Severity filtering (errors, warnings, etc.) is handled by sawmill's built-in --severity flag and TUI severity toggles.

Filter Pattern Description
Timing Issues (timing|slack|WNS|TNS|setup|hold) Timing-related messages
Synthesis \[Synth \d+-\d+\] Synthesis messages
DRC \[DRC \d+-\d+\] Design Rule Check messages
Constraints \[Constraints \d+-\d+\] Constraint-related messages
IP Flow \[IP_Flow \d+-\d+\] IP core generation messages
Routing \[Route \d+-\d+\] Routing messages

How It Works

Sawmill discovers plugins via Python entry points. This plugin declares its entry point in pyproject.toml:

[project.entry-points."sawmill.plugins"]
vivado = "sawmill_plugin_vivado:VivadoPlugin"

Running pip install -e . registers it. Sawmill calls can_handle() on each plugin to auto-detect which one should parse a given log file.

Testing

make test    # 46 tests
make lint    # ruff check + format

Notes

  • Does the wider Xilinx toolset use the same log style? Would this work for Vitis et al?

Metadata

Release files for sawmill-plugin-vivado 0.3.0

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

Source distribution (sdist)

Source distribution for sawmill-plugin-vivado 0.3.0
File Size Uploaded Provenance Actions
sawmill_plugin_vivado-0.3.0.tar.gz 41.9 kB With provenance Details for sawmill_plugin_vivado-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sawmill-plugin-vivado 0.3.0
File Interpreter ABI Platform Actions
sawmill_plugin_vivado-0.3.0-py3-none-any.whl Python 3 none any Details for sawmill_plugin_vivado-0.3.0-py3-none-any.whl

Total release size: 49.4 kB

Release files / sawmill_plugin_vivado-0.3.0.tar.gz

Download URL sawmill_plugin_vivado-0.3.0.tar.gz
Size 41.9 kB
Tags Source
SHA-256 checksum
How to use checksums
29643ed8c771b8e2953f7879afd8f78304839e5e283aac82a10c9d9026b2455b
BLAKE2b-256 checksum
How to use checksums
720cc476f731dd11c316d1a7fcb2fb2f5f0e7e20c89b301732a0930d6da695cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / sawmill_plugin_vivado-0.3.0-py3-none-any.whl

Download URL sawmill_plugin_vivado-0.3.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
679b4013c195784aef49bbc14ffb775b41b40ac45dd1672346c5f95bbda7a5a4
BLAKE2b-256 checksum
How to use checksums
a775ad08a965172d10f10abc23b916c85d99201b92f87f5624bc896740043d18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for sawmill-plugin-vivado 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sawmill_plugin_vivado-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

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.3.0 This release

2 release files Full 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