Unfolding and Folding: a New Approach for Code Restructuring targeting HLS for FPGAs

Konferenz: FSP Workshop 2018 - Fifth International Workshop on FPGAs for Software Programmers
31.08.2018 in Dublin, Ireland

Tagungsband: FSP Workshop 2018

Seiten: 10Sprache: EnglischTyp: PDF

Persönliche VDE-Mitglieder erhalten auf diesen Artikel 10% Rabatt

Autoren:
Ferreira, Afonso Canas; Cardoso, Joao M. P (Faculty of Engineering of the University of Porto (FEUP), Porto, Portugal & The Institute for Systems and Computer Engineering, Technology and Science (INESC TEC), Porto, Portugal)

Inhalt:
FPGAs are becoming a popular solution for accelerating the execution of software applications. The use of high level synthesis (HLS) tools intends to provide levels of abstraction comfortable to software developers when targeting FPGA-based hardware accelerators. However, the need to restructure the software code and to use adequate directives require both mastering the HLS tool used and FPGA hardware. This paper presents our efforts to provide a new approach for code restructuring, intended to help software developers in achieving efficient hardware implementations. Our approach uses an unfolded graph representation, which is generated from program execution traces, together with graph-based optimizations such as folding to generate suitable C code to input to HLS tools, such as Vivado HLS. The experiments show that our approach is capable of generating C code that results in efficient hardware implementations only otherwise achievable using manual restructuring of the input software code and manual insertion of adequate directives.