Skip to main content

This Sphinx 1.0 extension executes GTKWave during the build step and includes its screenshot into the documentation. GTKWave can display wave files like VCD (value change dump).

Links:

Features

  • development on linux

Known problems

  • Python 3 is not supported

  • PDF output is not perfect

  • no unittests

Basic usage

.. gtkwave:: docs/gtkwave_output.vcd

How it works

This is a workaround, there is no image export in GTKWave

  1. start Xvfb headless X server using pyvirtualdisplay

  2. redirect GTKWave display to Xvfb server by setting $DISPLAY variable.

  3. start GTKWave with VCD file. Options are set on command-line and in temporary rc file

  4. temporary tcl script will set time interval and select all signals

  5. wait until GTKWave is displayed

  6. take screenshot by pyscreenshot which needs scrot.

  7. image is processed: toolbar, scrollbar and empty space are removed

  8. use .. image:: directive to display image

Installation

General

  • install GTKWave

  • install Xvfb and Xephyr

  • install PIL

  • install scrot

  • install pip

  • install the program:

    # as root
    pip install sphinxcontrib-gtkwave

Ubuntu

sudo apt-get install gtkwave
sudo apt-get install python-pip
sudo apt-get install scrot
sudo apt-get install xvfb
sudo apt-get install xserver-xephyr
sudo apt-get install python-imaging
sudo pip install sphinxcontrib-gtkwave

Uninstall

# as root
pip uninstall sphinxcontrib-gtkwave

Metadata

Release files for sphinxcontrib-gtkwave 0.0.6

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

Source distribution (sdist)

Source distribution for sphinxcontrib-gtkwave 0.0.6
File Size Uploaded
sphinxcontrib-gtkwave-0.0.6.tar.gz 8.5 kB Details

Release files / sphinxcontrib-gtkwave-0.0.6.tar.gz

Download URL sphinxcontrib-gtkwave-0.0.6.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
69b3a47c8c6d0fa2e30c1beed04531057b8c1a9954c86ce30f0e259c20149d8c
BLAKE2b-256 checksum
How to use checksums
36666d115492987194c214badddfe296f5161dad66af91facc78212f1563ecd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

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