Skip to main content

Python VCD file support.

Project description

The PyVCD package writes Value Change Dump (VCD) files as specified in IEEE 1364-2005.

Visit PyVCD on GitHub.

Documentation Status https://travis-ci.org/SanDisk-Open-Source/pyvcd.svg?branch=master

Quick Start

>>> import sys
>>> from vcd import VCDWriter
>>> with VCDWriter(sys.stdout, timescale='1 ns', date='today') as writer:
...     counter_var = writer.register_var('a.b.c', 'counter', 'integer', size=8)
...     for timestamp, value in enumerate(range(10, 20, 2)):
...         writer.change(counter_var, timestamp, value)
$date today $end
$timescale 1 ns $end
$scope module a $end
$scope module b $end
$scope module c $end
$var integer 8 0 counter $end
$upscope $end
$upscope $end
$upscope $end
$enddefinitions $end
$dumpvars
b1010 0
$end
#1
b1100 0
#2
b1110 0
#3
b10000 0
#4
b10010 0

MIT License

Copyright (c) 2016 Western Digital Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

pyvcd-0.1.1.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

pyvcd-0.1.1-py2.py3-none-any.whl (17.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyvcd-0.1.1.tar.gz.

File metadata

  • Download URL: pyvcd-0.1.1.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyvcd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ce1fa3c1533f979f5fda395bfe780a80762bb187cf0026261cba107eabfc55e1
MD5 574493d3c30ad5bad3a30b1de33eb129
BLAKE2b-256 66cc27a5e192bd3a29beedbf548c62926e55516c583a4afda08b022f7c03ba66

See more details on using hashes here.

File details

Details for the file pyvcd-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyvcd-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ea127a2fe54bf19e86c81a321eebeb4dfed3a3fed782dc19e3d510584ccfbf81
MD5 ae5b8746fe1b93be2e9143fa630a4b88
BLAKE2b-256 95d2ee5140d3b9af4c3278a86fe891ae280939abd07a75fda221e05c2533fcad

See more details on using hashes here.

Supported by

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