Formal Verification of Source-to-Source Transformations for HLS
Open Access
- 2 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 97-107
Abstract
High-level synthesis (HLS) can greatly facilitate the description of complex hardware implementations, by raising the level of abstraction up to a classical imperative language such as C/C++, usually augmented with vendor-specific pragmas and APIs. Despite productivity improvements, attaining high performance for the final design remains a challenge, and higher-level tools like source-to-source compilers have been developed to generate programs targeting HLS toolchains. These tools may generate highly complex HLS-ready C/C++ code, reducing the programming effort and enabling critical optimizations. However, whether these HLS-friendly programs are produced by a human or a tool, validating their correctness or exposing bugs otherwise remains a fundamental challenge. In this work we target the problem of efficiently checking the semantics equivalence between two programs written in C/C++ as a means to ensuring the correctness of the description provided to the HLS toolchain, by proving an optimized code version fully preserves the semantics of the unoptimized one. We introduce a novel formal verification approach that combines concrete and abstract interpretation with a hybrid symbolic analysis. Notably, our approach is mostly agnostic to how control-flow, data storage, and dataflow are implemented in the two programs. It can prove equivalence under complex bufferization and loop/syntax transformations, for a rich class of programs with statically interpretable control-flow. We present our techniques and their complete end-to-end implementation, demonstrating how our system can verify the correctness of highly complex programs generated by source-to-source compilers for HLS, and detect bugs that may elude co-simulation.Keywords
Funding Information
- U.S. National Science Foundation (1750399, 2019306)
- Intel Strategic Research Alliance
- DARPA (ACE, center in Jump 2.0)
This publication has 23 references indexed in Scilit:
- Accelerator design with decoupled hardware customizations2022
- HeteroFlow2022
- Effective Processor Verification with Logic Fuzzer Enhanced Co-simulation2021
- Programming and Synthesis for Software-defined FPGA Acceleration: Status and Future ProspectsACM Transactions on Reconfigurable Technology and Systems, 2021
- Alive2: bounded translation validation for LLVM2021
- Automated derivation of parametric data movement lower bounds for affine programs2020
- HeteroCL2019
- On Characterizing the Data Access Complexity of Programs2015
- Functional Equivalence Verification Tools in High-Level Synthesis FlowsIEEE Design & Test of Computers, 2009
- Formal verification of a realistic compilerCommunications of the ACM, 2009