Skip to main content

Verilog parser for Python

Lark based parser for Verilog netlists (structural Verilog without behavioral statements). This is meant to be used to read netlists as generated by HDL logic synthesizers such as Yosys.

Example

from verilog_parser.parser import parse_verilog
ast = parse_verilog(open(verilog_file_path).read())

Install

From PyPI:

pip install verilog-parser

From git:

pip install git+https://codeberg.org/tok/py-verilog-parser

From git for development:

git clone https://codeberg.org/tok/py-verilog-parser
cd py-verilog-parser
pip install --editable .

Metadata

Release files for verilog-parser 0.0.7

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

Source distribution (sdist)

Source distribution for verilog-parser 0.0.7
File Size Uploaded
verilog_parser-0.0.7.tar.gz 7.2 kB Details

Release files / verilog_parser-0.0.7.tar.gz

Download URL verilog_parser-0.0.7.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dbe6db18bc74398fa481ca373205818065cac2ac0e165886ce373b01bdf8e0f7
BLAKE2b-256 checksum
How to use checksums
8904bda60c23525e485809cba64acdc7b90102582e73286faff0761cc49f4d63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

2 release files

0.0.0

3 release files

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