@inproceedings{LATTE '21, author = {Herklotz, Yann and Wickerson, John}, title = {High-Level Synthesis Tools Should be Proven Correct}, year = {2021}, booktitle = {Workshop on Languages, Tools, and Techniques for Accelerator Design}, url_manuscript = {/papers/latte21_hlsspc.pdf}, url_video = {https://youtu.be/Olhbhq46Amc}, } @inproceedings{FPGA '21, author = {Du, Zewei and Herklotz, Yann and Ramanathan, Nadesh and Wickerson, John}, title = {Fuzzing High-Level Synthesis Tools}, year = {2021}, isbn = {9781450382182}, doi = {10.1145/3431920.3439466}, abstract = {High-level synthesis (HLS) is becoming an increasingly important part of the computing landscape, even in safety-critical domains where correctness is key. As such, HLS tools are increasingly relied upon. But are they trustworthy?We have subjected three widely used HLS tools - LegUp, Xilinx Vivado HLS, and the Intel HLS Compiler - to a rigorous fuzzing campaign using thousands of random, valid C programs that we generated using a modified version of the Csmith tool. For each C program, we compiled it to a hardware design using the HLS tool under test and checked whether that hardware design generates the same output as an executable generated by the GCC compiler. When discrepancies arose between GCC and the HLS tool under test, we reduced the C program to a minimal example in order to zero in on the potential bug. Our testing campaign has revealed that all three HLS tools can be made either to crash or to generate wrong code when given valid C programs, and thereby underlines the need for these increasingly trusted tools to be more rigorously engineered. Out of 6700 test cases, we found 272 programs that failed in at least one tool, out of which we were able to discern at least 6 unique bugs.}, booktitle = {ACM/SIGDA Int. Symp. on Field-Programmable Gate Arrays}, keywords = {fuzzing, high-level synthesis, C++, C}, location = {Virtual Event, USA}, url_slides = {/docs/fpga2021/fpga2021_slides.pdf}, }