Work

K-CIRCT: A Layered, Composable, and Executable Formal Semantics for CIRCT Dialects

Year: 2026
Type: article
Abstract: 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.
Language: English
Open Access status: hybrid
Estimated APC paid: $2,780
OpenAlex ID: W4396821177
FWCI: 3.917
Cites: 26
Cited by: 5
Related to: 10