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
#0
$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.3.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

pyvcd-0.1.3-py2.py3-none-any.whl (17.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pyvcd-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4348603c173fe9b2126b087dcc4708d523bcc0aa18db60f4ff128db6108d128d
MD5 2042acc5929ff5b64faed42f573c3d8a
BLAKE2b-256 10c45e14836ddcd761ab3ac0fcd4816890d7a2aa8c5f0a7a3dba53d6b220efa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyvcd-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e68942d9543ff405f8e898121b8c1b02688e84af074f600a5ff34861fd1d990f
MD5 d2d848bbd5a094315a8d8b1a1249af5b
BLAKE2b-256 f161113c517007111f131b574faa03aa04af318690d89efe90bbea5a344a5ea2

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