How chipsalliance/verible works
Verible is a SystemVerilog parsing platform with developer tools for linting, formatting, editor integration, project analysis, transformation, and indexing. The principal workflow is source input parsed into language structures, then consumed by a selected tool to produce diagnostics, formatted text, navigation results, or transformed output. The README documents the major tool capabilities; sampled source also shows a lint rule matching syntax-tree symbols. Connections beyond those documented or sampled are omitted, so this is a product map rather than a verified call graph.
Main entry points: verilog-language-server.cc Language Server · verilog-linter.cc Style Linter · verilog-parser.cc Verilog Parser · symbol-table-handler.cc Symbol Navigation
Components 21
Language Front End
- Verilog Lexer
verible/verilog/parser/verilog-lexer.cc - Preprocessor
verible/verilog/preprocessor/verilog-preprocess.cc - Verilog Parser
verible/verilog/parser/verilog-parser.cc - Concrete Syntax Tree
verible/common/text/concrete-syntax-tree.h - Syntax Export
verible/verilog/tools/syntax/verilog-syntax.cc
Analysis Tools
- Style Linter
verible/verilog/analysis/verilog-linter.cc - Lint Rules
verible/verilog/analysis/checkers/explicit-parameter-storage-type-rule.cc - Lint Diagnostics
verible/common/analysis/violation-handler.cc - Symbol Table
verible/verilog/analysis/symbol-table.cc - Project Analysis
verible/verilog/tools/project/project-tool.cc
Editor Tools
- Formatter
verible/verilog/formatting/formatter.cc - Tree Unwrapper
verible/verilog/formatting/tree-unwrapper.cc - Language Server
verible/verilog/tools/ls/verilog-language-server.cc - Symbol Navigation
verible/verilog/tools/ls/symbol-table-handler.cc
Source Transformations
- Lexical Diff
verible/verilog/tools/diff/verilog-diff.cc - Code Obfuscator
verible/verilog/tools/obfuscator/verilog-obfuscate.cc - Name Transformation
verible/verilog/transform/obfuscate.cc
Project Indexing
- Kythe Extractor
verible/verilog/tools/kythe/verilog-kythe-extractor.cc - Indexing Facts
verible/verilog/tools/kythe/kythe-facts-extractor.cc
Other components
- Developer
- SystemVerilog Source
Connections 24
- Developer → SystemVerilog Source: provides
- SystemVerilog Source → Verilog Parser: parses
- Verilog Parser → Concrete Syntax Tree: builds
- Developer → Syntax Export: inspects syntax
- Syntax Export → Verilog Parser: visualizes parsing
- Developer → Style Linter: checks style
- Style Linter → Lint Rules: applies rules
- Lint Rules → Concrete Syntax Tree: matches symbols
verible/verilog/analysis/checkers/explicit-parameter-storage-type-rule.cc - Style Linter → Lint Diagnostics: reports violations
- Developer → Formatter: formats source
- Formatter → Tree Unwrapper: uses syntax context
- Developer → Language Server: uses editor
- Language Server → Formatter: provides formatting
- Language Server → Style Linter: provides linting
- Language Server → Symbol Navigation: serves navigation
- Symbol Navigation → Symbol Table: queries symbols
verible/verilog/tools/ls/symbol-table-handler.cc - Symbol Navigation → Verilog Parser: parses project files
verible/verilog/tools/ls/symbol-table-handler.cc - Developer → Project Analysis: analyzes project
- Developer → Lexical Diff: compares files
- Developer → Code Obfuscator: obfuscates source
- Code Obfuscator → Name Transformation: transforms names
- Developer → Preprocessor: preprocesses source
- Developer → Kythe Extractor: indexes source
- Kythe Extractor → Indexing Facts: extracts facts