Parser for structural verilog.
Project description
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 .
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
verilog_parser-0.0.2.tar.gz
(18.6 kB
view details)
File details
Details for the file verilog_parser-0.0.2.tar.gz
.
File metadata
- Download URL: verilog_parser-0.0.2.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eb8185eecd81c8d33de3fec937ca714dc45c824df10a04ef1f9a4b73f0b3e49 |
|
MD5 | bc37124528859365e3d86ca4c6a56412 |
|
BLAKE2b-256 | 643e3946b95412c2451d467ece48ff801fb7177c38173c0fc8e396d1069a8ca0 |