Skip to main content

No project description provided

Project description

vcdparser

A simple VCD parser to access the contents of a VCD file in python.

The goal is to provide an easy to use, lightweight parser for VCD files. The parser also aims to be quite fast (for a python library 😉).

What does it do?

This library contains a simple parser, which reads in VCD files and provides you with the raw data from this file.

How to use

To install the latest version from PyPI use pip install vcdparser. After that you can import the parser using import vcdparser.parser.

This is a simple script showing you how to parse a file and get the first 10 changes of a signal named "CLK":

import vcdparser.parser

vcd = parser.parse_vcd_file("your_file_path.vcd")
clk_id = vcd.get_id("CLK")

count = 0
for t in vcd.timesteps:
    if clk_id in t.variables:
        count += 1
        print(f"CLK changed to {t.variables[clk_id]}")
        if count >= 10:
            break

Contributing

We are always happy to receive contributions! Please take a look at the contribution guidelines and the Code of Conduct before making changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vcdparser-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vcdparser-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file vcdparser-0.1.0.tar.gz.

File metadata

  • Download URL: vcdparser-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for vcdparser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 de539bcc6917903317d906b62dacf9469a1ed738522e74e727fec05730334fb0
MD5 7f34d0d60e06e0880517ff33e0413424
BLAKE2b-256 5a5a025c75392b5e2bdbccd016d0d3f91d6777252fde6593337fb706404bf7f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for vcdparser-0.1.0.tar.gz:

Publisher: publish.yml on Menkalian/vcdparser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vcdparser-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vcdparser-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for vcdparser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39d718a40703d28848131e07490c9b8ec669eaeee8ae674323d0390feac926df
MD5 c145b1d5760fe1909fdf72d4edead760
BLAKE2b-256 2d53e62c2f964a9fdf56ac2f7fe417582ce61224127500de739eb479748bd111

See more details on using hashes here.

Provenance

The following attestation bundles were made for vcdparser-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Menkalian/vcdparser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page