K-CIRCT: A Layered, Composable, and Executable Formal Semantics for CIRCT Dialects
CIRCT (Circuit Intermediate Representations Compilers and Tools) is an open-source compiler infrastructure that provides a unified toolchain and reusable intermediate representations for multiple hardware description languages (HDLs) across the phases of hardware design. Despite its growing adoption, CIRCT lacks formal semantics. We present K-CIRCT, the first formal semantic framework for CIRCT that enables RISC-V processor design formalization. To match CIRCT’s extensible architecture, we introduce a layered semantic framework: (1) the MLIR infrastructure layer, extensible for different MLIR-based domain compilers; (2) the CIRCT hardware layer for hardware-specific semantics, and (3) dialect-specific layers for individual CIRCT dialects. Using this framework, we formalized the semantics of the hw , comb , seq , and sv dialects with concise definitions. The framework ensures dialect composability through effectful functions, crucial for practical multi-dialect designs. K-CIRCT enables the generation of interpreters and formal verifiers for CIRCT. Based on the interpreter, we developed a simulator and validated K-CIRCT by simulating the well-known Rocket Chip RISC-V design. Our validation confirms the correctness and adequacy of our semantics for real-world hardware designs.
Authors
- Jianhong Zhao (ORCID: https://orcid.org/0000-0003-4939-8104)
- Yongwang Zhao (ORCID: https://orcid.org/0000-0002-2284-1383)
- Jinhui Kang
Institutions
- Zhejiang University of Science and Technology (CN)
- Zhejiang University (CN)
Publication Details
- Journal
- Formal Aspects of Computing
- Published
- 2026-11-21
- DOI
- https://doi.org/10.1145/3849806
- Citations
- 5
- Primary Topic
- Embedded Systems Design Techniques
- Type
- article
- Field-Weighted Citation Impact
- 3.92