arXiv:2608.24478cs.PLAug 2026

Manuscript Offprint

arXiv:2608.24478

NoC-Out: A Formally-verified Network-on-Chip Library for Rule-based Hardware Designs

Max Kurze, František Farka, Sebastian Ertel

Max Kurze [0009−0006−3404−2569]^{[0009-0006-3404-2569]}, František Farka [0000−0001−8177−1322]^{[0000-0001-8177-1322]}, and Sebastian Ertel [0009−0000−3953−9810]^{[0009-0000-3953-9810]}

Barkhausen Institut, Germany

{first}.{last}@barkhauseninstitut.org

Abstract. The Network-on-Chip (NoC) is the communication backbone of any multiprocessor chip. A failure of the NoC has severe consequences for the whole system. Yet, no approach exists that provides formally-verified NoCs with strong guarantees but without tedious verification effort.

Any library that generates formally-verified NoCs needs to be parametric in the structure of the NoC. This requires a hardware description language (HDL) that allows for parametric and concurrent yet efficient hardware designs as well as the necessary program logic to reason about them in a modular fashion. So far, HDLs fall short in both aspects.

In this paper, we implement NoC-Out, the first library/generator for formally-verified k-dimensional NoC designs. In order to build NoC-Out, we extended Kôika, a rule-based HDL in the Rocq theorem prover, with support for concurrent yet efficient NoC designs and a program logic for modular, automated reasoning. Given a configuration, NoC-Out produces a k-dimensional torus NoC in Kôika, which can then be compiled to Verilog. Each produced NoC is equipped with a proof that it refines our formal NoC specification; no additional verification effort is required. Our specification proves a strong liveness guarantee, which consequently applies to all generated NoCs. In our evaluation, we find that our verification approach is even required to synthesize efficient NoCs in rule-based HDLs.

Keywords: Formal verification · Network-on-chip · Theorem proving · Program logic

1 Introduction

Modern hardware architectures are heterogeneous platforms that compose full-fledged processors with specialized accelerators in a network-on-chip (NoC) [2,3,15]. A failure or compromise of the NoC is not only costly but jeopardizes the trust of the whole hardware platform [8]. Formal verification of strong guarantees for NoCs requires expert knowledge. Yet, an approach to generate formally-verified NoC designs with strong guarantees at zero end-user verification cost does not exist.

M. Kurze et al.

A network-on-chip consists of a set of routers interconnected via hardware channels to enable the components of a hardware platform to communicate with each other via messages. As such, this network is essential to the platform and its components. But every hardware platform needs to meet different requirements. Some are optimized for performance. Others focus on energy-efficiency. And resistance to side-channel attacks makes security a pressing concern for many. As such, hardware platforms are inherently heterogeneous and integrate full-fledged (RISC-V) processors, tensor compute units for machine learning, crypto accelerators, and other domain-specific circuits. To optimize the communication in these platforms, very different NoC architectures and implementations exist.

Existing approaches to the formal verification of NoC designs need to be carried out for every NoC individually, and do not connect to actual hardware designs [19]. Most notably, GeNoC, a generic NoC model defined in ACL2, emits local obligations that every specific model needs to prove. From these local obligations global properties can be inferred automatically. However, these models are not directly connected to the corresponding hardware implementations. As a result, such specifications are often high-level, making them easier to verify but less likely to match the implementation.

Meanwhile, promising approaches to formally-verified hardware design exist but lack the necessary infrastructure. Kõika, Kami and Fjfj are hardware description languages (HDLs) implemented in Rocq [5,9,4]. All three HDLs are rule-based for which the NoC presents a particularly challenging use case when it comes to generating efficient hardware. All three HDLs come with well-defined and mechanized semantics. As such, proving that an actual hardware program refines a formal specification is possible. Yet, scaling such proofs even to a small NoC remains a daunting task, as a program logic for modular reasoning together with corresponding proof automation is still missing. As such, many NoCs remain unverified and thus not trustworthy.

In order to provide strong guarantees without end-user verification efforts, we incorporate the NoC structure into the specification. To scale this to more than one NoC, we abstract the network structure to k-dimensional tori. To connect this specification to actual hardware implementations, we define it in the Rocq theorem prover and introduce the missing infrastructure into Kõika to prove that a NoC implementation follows this specification.

In this paper, we design a formally-verified NoC generator in Kõika, called NoC-Out. NoC-Out takes a configuration that specifies the number of dimensions k and produces a corresponding k-dimensional NoC hardware description. Every produced NoC is formally-verified against the specification and requires no additional verification effort. Furthermore, to demonstrate the soundness of the specification, we prove a global liveness guarantee on top of it.

We use Kõika which has an accompanying compiler with a proof that it preserves the semantics in the translation to Verilog. Figure 1 presents an overview of Kõika and the twofold contributions of this paper. We first extend Kõika to then define NoC-Out. Specifically, we contribute:

Köika extensions (Section 4)

Figure

Fig. 1: The Köika compile(r) and the Köika programs are extracted from Coq into OCaml. We highlight the contributions of this paper and the existing formal definitions of Köika.

Read-After-Write (RAW) semantics for Köika In the design of NoC-Out, we noticed that the semantics of Köika are too strict when it comes to concurrency. This prevents an efficient NoC design (Section 3.4). Hence, we implemented Read-After-Write semantics to increase concurrent register access. To show that this does not jeopardize Köika's data race freedom, we reestablished all the guarantees of Köika including compiler correctness. Our RAW semantics apply to hardware designs beyond NoCs.

A program logic for Köika We created a program logic for Köika to write specifications as Hoare triples and reason about Köika programs in a modular fashion with support for proof automation. To the best of our knowledge, this is the first program logic for a rule-based hardware description language.

A parametric NoC library These two extensions to Köika enabled the design of NoC-Out. NoC-Out includes a formal specification of k-dimensional on chip communication networks. In order to prove refinement only once for all k-dimensional NoCs, the implementation in Köika is non-trivial. It is parametric in the number of NoC dimensions and their respective sizes. We are unaware of such a highly parameterized hardware design that is formal yet practical.

The rest of the paper starts with an introduction into the design of our NoC library show-casing how it goes beyond what is possible in hardware design languages such as SystemVerilog. In Section 3, we explain the challenges that we faced in the design of NoCs in Köika. Afterwards, Section 4 defines our extensions to Köika that enable the design of NoC-Out in Section 5. To study the practicality of NoC-Out, we synthesize several NoCs in Section 6. We find that practical and scalable NoC design in rule-based hardware requires strong reasoning, as in NoC-Out, to lift data-race-freedom guarantees from runtime to design time. Finally, we review related work and point to future directions in Section 7.

Our admit-free Rocq development for NoC-Out is available as an artifact of this paper.

M. Kurze et al.