Skip to main content

sphinx-pss

Sphinx support for autodocumenting Accellera PSS (Portable Test and Stimulus Standard) source.

sphinx-pss documents PSS the way sphinx.ext.autodoc documents Python: declarations and doc comments are pulled directly from PSS source via pssparser, and rendered through a custom pss Sphinx domain.

Documentation: https://dvkit.org/psstools/sphinx-pss/

Beyond declarations, it renders the structure that is specific to PSS and that no general-purpose documentation tool can produce — flow-object producer / consumer relationships, activity graphs, component instance trees, and extend provenance.

Programming steps

A /// Step: <title> comment in a function body or exec block marks a step of a device-programming procedure. pss:steps renders the steps as a numbered table, the way a vendor programming guide lists them. Conditions and loops appear as rows, and a called function's steps nest under the step that calls it. Numbers are generated, in decimal (1, 1.1) or outline (1, a), i.) style. :format: flowchart draws the same steps as a flowchart, with Graphviz or Mermaid. For a codebase that already writes // Step: …, an opt-in pssparser checker (SPSS001) lists the comments to convert.

.. pss:steps:: eth_pkg::init_eth
   :numbering: outline
   :format: both

See docs/usage/steps.md and docs/usage/diagrams.md.

Activity diagrams

pss:activity-diagram draws an action's activity as a UML activity diagram, with forks and joins for parallel, decisions for select, if and match, frames for loops, and each traversal linked to the action it runs. :activity-diagram: on autopssaction puts it in the action's entry. Programming steps marked in the activity become labelled regions of it.

.. pss:activity-diagram:: xfer_pkg::dma_c::xfer
   :depth: 2

See docs/usage/activities.md.

Status

Early development. See design/ for the design and the phased implementation plan.

Requirements

  • Python 3.10+
  • Sphinx 8+
  • pssparser 3.1.0 or later, a PSS 3.1 parser (a C++/Cython extension — prebuilt wheels are published for common platforms; otherwise it must be built)
  • pygments-pss, installed automatically — it provides the pss Pygments lexer

Syntax highlighting

PSS code blocks highlight with no configuration: pygments-pss registers the pss lexer through a pygments.lexers entry point, so Pygments finds it everywhere it looks. That includes pygmentize, MkDocs and plain docutils, not only Sphinx — a project that wants highlighting and nothing else can depend on pygments-pss alone.

Quick start

# conf.py
extensions = ["sphinx_pss"]

pss_source_dirs = ["../model"]
pss_doc_style = "native"
.. autopsspackage:: dma_pkg
   :members:

License

Apache-2.0. See LICENSE.

Metadata

Release files for sphinx-pss 0.1.1

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

Source distribution (sdist)

Source distribution for sphinx-pss 0.1.1
File Size Uploaded Provenance Actions
sphinx_pss-0.1.1.tar.gz 134.4 kB Without provenance Details for sphinx_pss-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-pss 0.1.1
File Interpreter ABI Platform Actions
sphinx_pss-0.1.1-py3-none-any.whl Python 3 none any Details for sphinx_pss-0.1.1-py3-none-any.whl

Total release size: 276.3 kB

Release files / sphinx_pss-0.1.1.tar.gz

Download URL sphinx_pss-0.1.1.tar.gz
Size 134.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2a8a12eb3ec16b68d087ab19d2815ab7c110df700947dbf9af75f2ca0c6486fc
BLAKE2b-256 checksum
How to use checksums
dd03d5df359bf2ee5245bffb2e70b02922097c34d4bd693ea8231d6b115f70f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / sphinx_pss-0.1.1-py3-none-any.whl

Download URL sphinx_pss-0.1.1-py3-none-any.whl
Size 141.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4715ecdcaa5348bb4ae49231dcc8f829fee1b1f3150fe0a0d43d1a53458d360d
BLAKE2b-256 checksum
How to use checksums
b4dd877b5032cec734227aa48a77289d6c958e2d34538a831f6a4169574b12cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for sphinx-pss 0.1.1

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

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