astli
A modern SystemVerilog toolchain in a single binary, written in pure Rust. Much like cargo does for Rust, astli formats, lints, checks, builds and tests your designs and manages their dependencies, finding your project's files on its own instead of asking for a filelist. astli lsp brings the same analysis to your editor.
astli fmt # Format every file in the package (lowRISC style)
astli lint # Catch common bugs and style issues (using Verible-compatible rule names)
astli check # Verify undeclared names, port mismatches, and multi-driver conflicts
astli elab # Inspect the elaborated instance hierarchy for a top-level module
astli files # Generate a trimmed, topologically ordered filelist for a top module
astli pickle # Flatten an entire design into a single self-contained source file
astli run # Build a testbench with Verilator and run it
astli test # Build and run every testbench the package marks, in parallel
astli add URL # Add a git dependency at its latest release
astli update # Resolve dependencies and pin them in astli.lock
astli fetch # Download dependencies into a shared local cache
astli lsp # Run the language server for your editor
An astli package is simply a directory containing an astli.toml manifest. Instead of forcing you to maintain exhaustive lists of source files, astli automatically discovers your sources by convention and uses astli.toml to manage package settings, features, and dependencies.
Comprehensive CLI documentation is available on the documentation site, and library APIs are documented on docs.rs.
Why astli?
SystemVerilog workflows have traditionally relied on an assortment of disjoint utilities. A formatter, a linter, a synthesis tool, and a dependency manager often each bundle their own distinct parser, their own dialect quirks, and their own configuration files. As a result, developers are forced to repeatedly describe the same design across filelists, macro defines, and include search paths—and the tools often disagree on how that design should be interpreted.
Rust solved this fragmentation for its ecosystem with cargo: one tool, one package model, and one shared compiler frontend. astli brings that same experience to SystemVerilog:
- A single shared frontend: One preprocessor and one lossless concrete syntax tree (CST) power every stage—formatting, linting, semantic checking, and dependency resolution all share the exact same view of your code.
- Pure Rust data structures: While slang is a phenomenal C++ reference frontend, integrating with it from Rust requires complex FFI bindings, opaque pointers, and hefty C++ toolchain dependencies.
astliis 100% Rust: syntax nodes are native Rust types that can be walked, transformed, and emitted back to text with comments and formatting perfectly preserved. - Zero-configuration discovery: Run
astliinside a repository and it discovers your packages and source files on its own. - The same answers in the editor: The language server reads the package exactly as
astli checkdoes, so what your editor flags is what CI fails on.
Feature Comparison
Each of these tools excels in specific areas, and several remain mature industry standards. astli unifies their core workflows under a single parser and package manifest.
| Feature | astli | slang | verible | bender | sv-parser |
|---|---|---|---|---|---|
| Written in Rust | ✅ | ❌ | ❌ | ✅ | ✅ |
| Lossless syntax tree | ✅ | ✅ | ✅ | ❌ | ✅ |
| Preprocessor | ✅ | ✅ | ◐ | ❌ | ✅ |
| Full language coverage | ◐ | ✅ | ◐ | ❌ | ✅ |
| Code formatter | ✅ | ❌ | ✅ | ❌ | ❌ |
| Linter | ✅ | ◐ | ✅ | ❌ | ❌ |
| Name resolution & elaboration | ✅ | ✅ | ❌ | ❌ | ❌ |
| Filelist-free design discovery | ✅ | ❌ | ❌ | ❌ | ❌ |
| Fetches & locks dependencies | ✅ | ❌ | ❌ | ✅ | ❌ |
| Language server (LSP) | ✅ | ◐ | ✅ | ❌ | ❌ |
(Legend: ✅ Full support, ◐ Partial support, ❌ Not supported)
Scope & Roadmap
astli handles the end-to-end path from raw source code to a verified, elaborated design:
- Preprocessing with macro expansion and conditional compilation
- Lossless parsing into a Rowan-based syntax tree
- Cross-file name resolution, constant evaluation, and type checking
- Module elaboration and multi-driver checking
- Dependency resolution, caching, and lockfiles
- Building and testing with Verilator, from the files each top needs
- A language server over the same semantic model
astli is an analysis, verification, and tooling platform; it is not a simulator or synthesis tool, nor does it aim to be one. astli build, run and test hand the design to Verilator.
Installation
Precompiled binaries are available for Linux (x86_64, aarch64), macOS (Apple Silicon), and Windows.
Installer
# Linux and macOS
curl -LsSf https://astli.dev/install.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -c "irm https://astli.dev/install.ps1 | iex"
Python Package (uv or pip)
# Install with uv (recommended)
uv tool install astli
# Or with pip / pipx
pip install astli
pipx install astli
Cargo (binstall or build from source)
# Prebuilt binary via cargo-binstall
cargo binstall astli-cli
# Or compile from source
cargo install astli-cli
For more options, check the Getting Started Guide.
Editors
astli lsp reports what astli lint and astli check find as you type, formats under the package's [fmt], and offers go to definition, find references, hover with elaborated types and parameter values, and inlay hints for positional connections.
- VS Code: install astli from the Marketplace, or from Open VSX for VSCodium and Cursor. It bundles the
astlibinary. - Zed, Neovim and Emacs: see the Editors guide for the configuration each needs.
- Claude Code: the astli plugin teaches the agent the CLI and starts the language server, so it sees the problems after each edit:
/plugin marketplace add fischeti/astli /plugin install astli@astli
Using astli as a Library
All underlying crates are published on crates.io under the umbrella astli crate:
cargo add astli
use astli::parse::SyntaxTree;
use astli::syntax::ast::{AstNode, ModuleDecl};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Read and parse a SystemVerilog source file
let tree = SyntaxTree::read("top.sv")?;
// Traverse the syntax tree and inspect module declarations
for module in tree.root().descendants().filter_map(ModuleDecl::cast) {
if let Some(name) = module.name() {
println!("Found module: {}", name.text());
}
}
// Format the tree according to lowRISC style conventions
let formatted = astli::fmt::format(&tree, &Default::default())?;
print!("{formatted}");
Ok(())
}
astli re-exports its constituent crates (astli-syntax, astli-parse, astli-fmt, etc.) as modules. You can also depend on individual crates directly if you only need specific functionality. See docs/api.md for architectural details.
Development & Contributing
Because astli-cli is the workspace's default root member, you can run the CLI directly without passing -p:
cargo run -- check --top soc_top
Inspecting intermediate compiler stages
The CLI exposes hidden subcommands for developers to inspect the output of individual compilation stages:
# Inspect lexer token stream
cargo run -- lex top.sv
# Inspect preprocessor output
cargo run -- preprocess top.sv -I include --emit text
# Inspect parser syntax tree
cargo run -- parse top.sv --quiet
Workspace Crate Structure
| Path | Description |
|---|---|
crates/astli-text |
Source file storage, line indexing, and source span abstractions |
crates/astli-diag |
Diagnostic formatting with macro expansion and include traceback |
crates/astli-syntax |
Lexer definitions, SyntaxKind, Rowan concrete syntax trees, and the typed AST views |
crates/astli-preproc |
Preprocessor directives, macro expansions, and include resolution |
crates/astli-parse |
Parser implementation |
crates/astli-fmt |
Code formatter conforming to the lowRISC style guide |
crates/astli-index |
Fast indexing of symbols declared and referenced across files |
crates/astli-sema |
High-level Intermediate Representation (HIR), typing, and elaboration |
crates/astli-lint |
Syntactic and semantic lint rules |
crates/astli-package |
Package discovery and astli.toml manifest parser |
crates/astli-resolve |
Dependency resolution, version solver, and lockfile generation |
crates/astli-lsp |
The language server's loop, behind astli lsp |
crates/astli |
Top-level library re-exporting the library crates |
crates/astli-cli |
The main command-line executable (astli) |
crates/astli-testing |
Test helpers the crates share: the corpus walker and the snapshot loop (never published) |
editors/vscode |
The VS Code extension, bundling the binary |
editors/zed |
The Zed extension, which starts astli lsp |
plugin/ |
The Claude Code plugin and its Agent Skill |
docs/ |
Internal architecture and planning documents |
site/ |
Documentation website, generated via scripts/site.sh |
For more in-depth architectural notes, see docs/plan.md.
Acknowledgements
- slang by Mike Popoloski: The gold standard for SystemVerilog language compliance.
astli's preprocessor and parser behavior is validated directly against slang test suites. - rust-analyzer: Pioneered modern IDE-grade compiler design with Rowan lossless trees, event-based parsing, and ungrammar.
- rowan, logos, and ungrammar: The foundational libraries powering
astli's parsing engine. - Cargo and uv: The models for
astli's package manager, from the manifest and lockfile to the shared cache and version resolution. - lowRISC Style Guides: The basis for
astli's automated code formatter and style rules. - The open-source silicon community, whose diverse real-world designs form our integration test suite.
License
Licensed under either the MIT License or the Apache License, Version 2.0 at your option. Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion shall be dual-licensed as above without additional terms or conditions.
Metadata
Release files for astli 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astli-0.7.0.tar.gz | 804.5 kB | Without provenance | Details for astli-0.7.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| astli-0.7.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for astli-0.7.0-py3-none-win_amd64.whl |
| astli-0.7.0-py3-none-musllinux_1_2_x86_64.whl | Python 3 | none | Linux musl 1.2+ x86-64 | Details for astli-0.7.0-py3-none-musllinux_1_2_x86_64.whl |
| astli-0.7.0-py3-none-musllinux_1_2_aarch64.whl | Python 3 | none | Linux musl 1.2+ ARM64 | Details for astli-0.7.0-py3-none-musllinux_1_2_aarch64.whl |
| astli-0.7.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for astli-0.7.0-py3-none-manylinux_2_28_x86_64.whl |
| astli-0.7.0-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for astli-0.7.0-py3-none-manylinux_2_28_aarch64.whl |
| astli-0.7.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for astli-0.7.0-py3-none-macosx_11_0_arm64.whl |
Total release size: 70.7 MB
Release files / astli-0.7.0.tar.gz
| Download URL | astli-0.7.0.tar.gz |
|---|---|
| Size | 804.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
488f28f14b41a3ccb4e77c0cdd6ba9077f9949e761be79bb077594d1f83c021f
|
|
BLAKE2b-256 checksum How to use checksums |
e14056c3218c82413a7522f576a9c1c3580e380a3521b2718a822a0f85a2b8a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / astli-0.7.0-py3-none-win_amd64.whl
| Download URL | astli-0.7.0-py3-none-win_amd64.whl |
|---|---|
| Size | 10.6 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2b26520e831cd1bc0627b2e10bf003fa479ad9910fdf301d4a6f50befcdb32d5
|
|
BLAKE2b-256 checksum How to use checksums |
c16695b3f22966963a43b19fd74bd206cb6564fd54d5db1fd751c3270cd10737
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / astli-0.7.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | astli-0.7.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 12.5 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2395d83a382ddd3d60cf6413e71046f20e82d4b55419011ac6808009f1299d2c
|
|
BLAKE2b-256 checksum How to use checksums |
e2e9e2c32333e29ec6032984cbef1e373b296e5feec1c5dd72dab557ecdc28db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / astli-0.7.0-py3-none-musllinux_1_2_aarch64.whl
| Download URL | astli-0.7.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 12.1 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
43ab986ddb91c70035f3f7c5f3534120afc13d85ee48a425b28d552edbcd8893
|
|
BLAKE2b-256 checksum How to use checksums |
a0c469457eb22e0714790877154b05c6c94938636491ac64e222f19a6d78af3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / astli-0.7.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | astli-0.7.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 11.8 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2537cba56a904ed1435e92866bf9f93f8b6b170a86162e29bb5f86c62fb208bc
|
|
BLAKE2b-256 checksum How to use checksums |
b422b0ba4720eefe61a24e37ac82fe8edaf8aaf1b7fe51dd8cd20e28d8b7fe30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / astli-0.7.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | astli-0.7.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 12.0 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
eb731caf8c4283f46992287d341a4735bf89d455bf5f1a586490e89dd22a0035
|
|
BLAKE2b-256 checksum How to use checksums |
ebbcea09d65fb4be8d40f0ad9551ff60b8c77621576d03a2f98143c166e80a1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / astli-0.7.0-py3-none-macosx_11_0_arm64.whl
| Download URL | astli-0.7.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3056932153bccf214411a6ba6b4761ccdb8cb33b0ed3a34a0c3e469861700835
|
|
BLAKE2b-256 checksum How to use checksums |
64cda5fed92925f021742f2dc5b8ba10899d3380146c40e9ecf400d27fedfb79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for astli 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.