{"id":17431989,"url":"https://github.com/nic30/pydigitalwavetools","last_synced_at":"2025-08-20T20:33:43.512Z","repository":{"id":37546194,"uuid":"129001628","full_name":"Nic30/pyDigitalWaveTools","owner":"Nic30","description":"Python library for operations with VCD and other digital wave files","archived":false,"fork":false,"pushed_at":"2024-06-06T21:34:49.000Z","size":105,"stargazers_count":47,"open_issues_count":2,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-13T20:44:30.301Z","etag":null,"topics":["digital-wave-files","python","vcd","vcd-parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nic30.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-10T22:21:38.000Z","updated_at":"2024-11-01T19:38:35.000Z","dependencies_parsed_at":"2024-06-21T02:15:45.497Z","dependency_job_id":"47faf40a-66e5-4c47-8c9b-03208df84b65","html_url":"https://github.com/Nic30/pyDigitalWaveTools","commit_stats":{"total_commits":118,"total_committers":6,"mean_commits":"19.666666666666668","dds":"0.11016949152542377","last_synced_commit":"6922451b1749b8707149aa13e639c62c80b9ca7c"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nic30%2FpyDigitalWaveTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nic30%2FpyDigitalWaveTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nic30%2FpyDigitalWaveTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nic30%2FpyDigitalWaveTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nic30","download_url":"https://codeload.github.com/Nic30/pyDigitalWaveTools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230454432,"owners_count":18228392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["digital-wave-files","python","vcd","vcd-parser"],"created_at":"2024-10-17T08:09:38.961Z","updated_at":"2024-12-19T15:10:52.588Z","avatar_url":"https://github.com/Nic30.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyDigitalWaveTools\n[![CircleCI](https://circleci.com/gh/Nic30/pyDigitalWaveTools.svg?style=svg)](https://circleci.com/gh/Nic30/pyDigitalWaveTools)\n[![Coverage Status](https://coveralls.io/repos/github/Nic30/pyDigitalWaveTools/badge.svg?branch=master)](https://coveralls.io/github/Nic30/pyDigitalWaveTools?branch=master)\n[![PyPI version](https://badge.fury.io/py/pyDigitalWaveTools.svg)](http://badge.fury.io/py/pyDigitalWaveTools)\n[![Documentation Status](https://readthedocs.org/projects/pydigitalwavetools/badge/?version=latest)](http://pydigitalwavetools.readthedocs.io/en/latest/?badge=latest)\n[![Python version](https://img.shields.io/pypi/pyversions/pyDigitalWaveTools.svg)](https://img.shields.io/pypi/pyversions/pyDigitalWaveTools.svg)\n\npython library for operations with VCD and other digital wave files\n\n## Feature list\n* parse VCD (std 2009) files to intermediate format\n* write VCD files, user specified formatters for user types, predefined formatters for vectors, bits and enum values\n* dump intermediate format as simple json\n\n## Hello pyDigitalWaveTools\n\nHere is a simple example how to use the VCD parser:\n\n```python\n#!/usr/bin/env python3\nimport json\nimport sys\nfrom pyDigitalWaveTools.vcd.parser import VcdParser\n\nif len(sys.argv) \u003e 1:\n    fname = sys.argv[1]\nelse:\n    print('Give me a vcd file to parse')\n    sys.exit(-1)\n\nwith open(fname) as vcd_file:\n    vcd = VcdParser()\n    vcd.parse(vcd_file)\n    data = vcd.scope.toJson()\n    print(json.dumps(data, indent=4, sort_keys=True))\n```\n\n\n## Output json format\n```\nscope\n{ \"name\": \"\u003cscope name\u003e\"\n  \"children\" : {\"\u003cchildren name\u003e\" : child}\n}\n\nchild can be scope or signal record\n\nsignal record\n{ \"name\": \"\u003csignal name\u003e\"\n  \"type\": {\"sigType\": \"\u003cvcd signal type\u003e\",\n           \"width\": \u003cbit width of signal (integer)\u003e},\n  \"data\": [\u003cdata records\u003e],\n}\n\ndata record format\n[\u003ctime (number)\u003e, \u003cvalue (string, format dependent on datatype)\u003e]\n```\n\n\n## Related open source\n\n* [verilog-vcd-parser](https://github.com/ben-marshall/verilog-vcd-parser) - Python, A parser for Value Change Dump (VCD) files as specified in the IEEE System Verilog 1800-2012 standard.\n* [pyvcd](https://github.com/SanDisk-Open-Source/pyvcd) - Python, vcd writer, GTKWave config writer\n* [vcdvcd](https://github.com/cirosantilli/vcdvcd) - Python, vcd parser, dump pretty printer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnic30%2Fpydigitalwavetools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnic30%2Fpydigitalwavetools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnic30%2Fpydigitalwavetools/lists"}