# fangzhigang32/static-verilog-analysis architecture

> Architecture diagram of the GitHub repository fangzhigang32/static-verilog-analysis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fangzhigang32/static-verilog-analysis
- Repository: https://github.com/fangzhigang32/static-verilog-analysis

## Overview

LintLLM is a Verilog RTL defect-checking framework with three independently run LLM workflows: baseline linting, Logic-Tree prompting, and Defect Tracker root-cause analysis. Each iterates over the simple, medium, and complex benchmark designs, sends a prepared prompt to an LLM service, and writes a report to its corresponding result area. The README documents the benchmark’s 90 designs and 11 defect categories. The sampled scripts support the workflow links shown; result and benchmark contents beyond the tree were not inspected.

Main entry points: [`Scripts/lintllm.py`](https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/lintllm.py) (Baseline Lint), [`Scripts/prompt_of_logic_tree.py`](https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/prompt_of_logic_tree.py) (Logic-Tree Prompting), [`Scripts/defect_tracker.py`](https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/defect_tracker.py) (Defect Tracker), [`Benchmark/simple`](https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple) (Simple Designs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["LLM Analysis"]
  node_baseline["Baseline Lint<br/>[lintllm.py]"]
  node_logic_tree["Logic-Tree Prompting"]
  node_tracker["Defect Tracker<br/>[defect_tracker.py]"]
end

subgraph group_benchmark["Verilog Benchmark"]
  node_simple["Simple Designs"]
  node_medium["Medium Designs"]
  node_complex["Complex Designs"]
end

subgraph group_outputs["Analysis Reports"]
  node_baseline_reports["Lint Reports"]
  node_tree_reports["Logic-Tree Reports"]
  node_tracker_reports["Tracker Reports"]
end

node_engineer(("Framework User"))
node_llm{{"LLM Service"}}

node_engineer -.->|"runs"| node_baseline
node_engineer -.->|"runs"| node_logic_tree
node_engineer -.->|"runs"| node_tracker
node_baseline -->|"reads designs"| node_simple
node_baseline -->|"reads designs"| node_medium
node_baseline -->|"reads designs"| node_complex
node_baseline -->|"submits prompt"| node_llm
node_baseline -->|"writes reports"| node_baseline_reports
node_logic_tree -->|"reads designs"| node_simple
node_logic_tree -->|"reads designs"| node_medium
node_logic_tree -->|"reads designs"| node_complex
node_logic_tree -->|"submits prompt"| node_llm
node_logic_tree -->|"writes reports"| node_tree_reports
node_tracker -->|"reads designs"| node_simple
node_tracker -->|"reads designs"| node_medium
node_tracker -->|"reads designs"| node_complex
node_tracker -->|"submits prompt"| node_llm
node_tracker -->|"writes reports"| node_tracker_reports

click node_baseline "https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/lintllm.py"
click node_logic_tree "https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/prompt_of_logic_tree.py"
click node_tracker "https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/defect_tracker.py"
click node_simple "https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple"
click node_medium "https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/medium"
click node_complex "https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/complex"
click node_baseline_reports "https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple/result/deepseek-v4-prores"
click node_tree_reports "https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple/result/deepseek-v4-proprompt_logic_of_tree"
click node_tracker_reports "https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple/result/deepseek-v4-protracker"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_baseline,node_logic_tree,node_tracker,node_engineer toneBlue
class node_simple,node_medium,node_complex toneAmber
class node_baseline_reports,node_tree_reports,node_tracker_reports toneMint
class node_llm toneIndigo
```

## Components

### LLM Analysis

- [Baseline Lint](https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/lintllm.py): `Scripts/lintllm.py`
- [Logic-Tree Prompting](https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/prompt_of_logic_tree.py): `Scripts/prompt_of_logic_tree.py`
- [Defect Tracker](https://github.com/fangzhigang32/static-verilog-analysis/blob/main/Scripts/defect_tracker.py): `Scripts/defect_tracker.py`

### Verilog Benchmark

- [Simple Designs](https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple): `Benchmark/simple`
- [Medium Designs](https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/medium): `Benchmark/medium`
- [Complex Designs](https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/complex): `Benchmark/complex`

### Analysis Reports

- [Lint Reports](https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple/result/deepseek-v4-prores): `Benchmark/simple/result/deepseek-v4-prores`
- [Logic-Tree Reports](https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple/result/deepseek-v4-proprompt_logic_of_tree): `Benchmark/simple/result/deepseek-v4-proprompt_logic_of_tree`
- [Tracker Reports](https://github.com/fangzhigang32/static-verilog-analysis/tree/main/Benchmark/simple/result/deepseek-v4-protracker): `Benchmark/simple/result/deepseek-v4-protracker`

### Other components

- **Framework User**
- **LLM Service**

## Connections

- Framework User → Baseline Lint: runs
- Framework User → Logic-Tree Prompting: runs
- Framework User → Defect Tracker: runs
- Baseline Lint → Simple Designs: reads designs (evidence: `Scripts/lintllm.py`)
- Baseline Lint → Medium Designs: reads designs (evidence: `Scripts/lintllm.py`)
- Baseline Lint → Complex Designs: reads designs (evidence: `Scripts/lintllm.py`)
- Baseline Lint → LLM Service: submits prompt (evidence: `Scripts/lintllm.py`)
- Baseline Lint → Lint Reports: writes reports (evidence: `Scripts/lintllm.py`)
- Logic-Tree Prompting → Simple Designs: reads designs (evidence: `Scripts/prompt_of_logic_tree.py`)
- Logic-Tree Prompting → Medium Designs: reads designs (evidence: `Scripts/prompt_of_logic_tree.py`)
- Logic-Tree Prompting → Complex Designs: reads designs (evidence: `Scripts/prompt_of_logic_tree.py`)
- Logic-Tree Prompting → LLM Service: submits prompt (evidence: `Scripts/prompt_of_logic_tree.py`)
- Logic-Tree Prompting → Logic-Tree Reports: writes reports (evidence: `Scripts/prompt_of_logic_tree.py`)
- Defect Tracker → Simple Designs: reads designs (evidence: `Scripts/defect_tracker.py`)
- Defect Tracker → Medium Designs: reads designs (evidence: `Scripts/defect_tracker.py`)
- Defect Tracker → Complex Designs: reads designs (evidence: `Scripts/defect_tracker.py`)
- Defect Tracker → LLM Service: submits prompt (evidence: `Scripts/defect_tracker.py`)
- Defect Tracker → Tracker Reports: writes reports (evidence: `Scripts/defect_tracker.py`)
