Skip to main content

pyDigitalWaveTools

CircleCI Coverage Status PyPI version Documentation Status Python version

python library for operations with VCD and other digital wave files

Feature list

  • parse VCD (std 2009) files to intermediate format
  • write VCD files, user specified formatters for user types, predefined formatters for vectors, bits and enum values
  • dump intermediate format as simple json

Hello pyDigitalWaveTools

Here is a simple example how to use the VCD parser:

#!/usr/bin/env python3
import json
import sys
from pyDigitalWaveTools.vcd.parser import VcdParser

if len(sys.argv) > 1:
    fname = sys.argv[1]
else:
    print('Give me a vcd file to parse')
    sys.exit(-1)

with open(fname) as vcd_file:
    vcd = VcdParser()
    vcd.parse(vcd_file)
    data = vcd.scope.toJson()
    print(json.dumps(data, indent=4, sort_keys=True))

Output json format

scope
{ "name": "<scope name>"
  "children" : {"<children name>" : child}
}

child can be scope or signal record

signal record
{ "name": "<signal name>"
  "type": {"sigType": "<vcd signal type>",
           "width": <bit width of signal (integer)>},
  "data": [<data records>],
}

data record format
[<time (number)>, <value (string, format dependent on datatype)>]

Related open source

  • verilog-vcd-parser - Python, A parser for Value Change Dump (VCD) files as specified in the IEEE System Verilog 1800-2012 standard.
  • pyvcd - Python, vcd writer, GTKWave config writer
  • vcdvcd - Python, vcd parser, dump pretty printer

Release files for pyDigitalWaveTools 1.2

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

Source distribution (sdist)

Source distribution for pyDigitalWaveTools 1.2
File Size Uploaded
pyDigitalWaveTools-1.2.tar.gz 11.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyDigitalWaveTools 1.2
File Interpreter ABI Platform
pyDigitalWaveTools-1.2-py3.10.egg Legacy Egg format - - Details
pyDigitalWaveTools-1.2-py3-none-any.whl Python 3 none any Details

Total release size: 52.6 kB

Release files / pyDigitalWaveTools-1.2.tar.gz

Download URL pyDigitalWaveTools-1.2.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b09c1edad4ebe974341f20f1e8fae07166932a70071bdb9430765146e0e15ce1
BLAKE2b-256 checksum
How to use checksums
ab6e89fb3afa3e53b5955b68f14f2ab731199c89f7b7fd4a247b195cea023218
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release files / pyDigitalWaveTools-1.2-py3.10.egg

Download URL pyDigitalWaveTools-1.2-py3.10.egg
Size 28.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
4462ad692340f7401a3e49bfdbb24c50ea904e114c644ece0eb246ecb4ce95e3
BLAKE2b-256 checksum
How to use checksums
63af33f02152258a50e2d23c835d006f12a7a2bc5a2a9c84f11dfbd30c299dc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release files / pyDigitalWaveTools-1.2-py3-none-any.whl

Download URL pyDigitalWaveTools-1.2-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1a093d4101a59c6030b2d9bd7debeb8c55e13bb06992f8f49447147292e5fc5
BLAKE2b-256 checksum
How to use checksums
881b6e424a6853cd9023bafbc92cc97a6b0cd36ecf4c665843601b3631b7fb5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release history Release notifications | RSS feed

This release

1.2 This release

3 release files

1.1

3 release files

1.0

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

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