svdoc
A pydoc-style documentation generator for SystemVerilog RTL, built on
pyslang (Python bindings for the
slang SystemVerilog compiler).
Extracts Doxygen-style doc comments (/** @brief ... */, ///< ...) from
modules, interfaces, and packages, and renders clean Markdown or HTML
documentation — no manual editing required.
What it documents today
- Modules — name, parameters, ports, doc comments
- Interfaces — parameters, ports, signals, modports
- Packages — typedefs (enums, packed structs, aliases), functions, tasks
- Cross-file type resolution — a module's port typed from a package in
another file resolves to its fully-qualified
package::typename
Not yet supported: classes/UVM, instantiation hierarchy, block diagrams, full
multi-file `include resolution.
Install
pip install svdoc
Usage
# print Markdown to stdout
svdoc my_module.sv
# write a .md or .html file instead
svdoc my_module.sv --out md
svdoc my_module.sv --out html
# resolve cross-file types (e.g. a module using a package's enum/struct)
svdoc my_module.sv my_package.sv --out html
# auto-scaffold missing doc comments in place (like `ruff --fix`);
# covers module/interface headers, interface bodies, and packages
# (typedefs, enum values, struct fields, functions/tasks and their args)
svdoc my_module.sv --fix
# build a full linked HTML site from many files (any directory layout)
svdoc build my_module.sv my_interface.sv my_package.sv --out-dir site/
Example output
Given a small FIFO module (spike/example.sv), svdoc
generates Markdown and HTML docs — see the
example output
on the published docs site.
Doc comment convention
Doxygen-style, both forms supported:
/**
* @brief A simple synchronous FIFO.
*/
module fifo #(
parameter int DEPTH = 16 ///< Number of entries in the FIFO
) (
input logic clk ///< Clock
);
Development
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,docs]"
python -m pytest
git config core.hooksPath scripts/hooks # runs `ruff format` on commit
Contributing
See CONTRIBUTING.md.
Changelog
See CHANGELOG.md.
License
MIT — see LICENSE.
Metadata
Release files for svdoc 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| svdoc-0.5.0.tar.gz | 22.8 kB | With provenance | Details for svdoc-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| svdoc-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for svdoc-0.5.0-py3-none-any.whl |
Total release size: 47.8 kB
Release files / svdoc-0.5.0.tar.gz
| Download URL | svdoc-0.5.0.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0942bcccf1395b6ce161f154a8a5acb180a485c4be356396c3247ef39897be2
|
|
BLAKE2b-256 checksum How to use checksums |
f5724d9fc69e5d8b61dbbfdba022db891e4ab3a4e96d68c20a6b022b44d1fad7
|
| 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 15, 2026.
Transparency logRelease files / svdoc-0.5.0-py3-none-any.whl
| Download URL | svdoc-0.5.0-py3-none-any.whl |
|---|---|
| Size | 24.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0554aa92d51ad243d77bf6114171b9b708e5e39d37fc78f1e25c45bb7cd45bad
|
|
BLAKE2b-256 checksum How to use checksums |
25123a737edb2a94be42772bc1a76cbc61fcc01feac64935962a08fe671f278f
|
| 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 15, 2026.
Transparency logSecurity for svdoc 0.5.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.
Attestation for svdoc-0.5.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 15, 2026.
Transparency logA 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.