Verible parses SystemVerilog for developer tools. It ships command-line utilities for syntax inspection, style linting, formatting, diffing, and editor language-server support.
Overview
Verible targets IEEE 1800-2017 SystemVerilog as standardized in the SV-LRM. The parser handles un-preprocessed sources for single-file workflows such as linting and formatting and can be adapted for preprocessed sources used in compilers and toolchains. The project aims to spare every team from building their own standards-compliant SystemVerilog front end.
verible-verilog-syntax visualizes lexer and parser structure and can emit a concrete syntax tree as JSON for external tools, with a Python wrapper and examples. verible-verilog-lint flags undesirable patterns against configurable style decks, cites style guides in diagnostics, and supports waiver files plus a GitHub linter action.
verible-verilog-format adjusts whitespace, indentation, wrapping, and alignment with syntax-aware spacing and incremental formatting options. verible-verilog-ls implements the Language Server Protocol for editor-integrated linting, formatting, and quick fixes.
Additional tools cover lexical diff, multi-file project analysis, identifier obfuscation, preprocessor utilities, and Kythe indexing for IDE cross-references. Binary releases are provided for Linux x86 and Arm and for Windows; Homebrew packages cover macOS.
Key features
- SystemVerilog parser and syntax tree
- JSON syntax tree export
- Configurable style linter
- Whitespace-aware formatter
- Language server for editors
- Lexical diff between files
- Project-level Verilog analysis
- Kythe-based source indexing
Use cases
- Style compliance on SystemVerilog code
- Automated formatting in CI or editors
- Exploring parse trees for tooling
- IDE diagnostics via language server
- Obfuscated test cases for vendors