A Code Refinement Methodology for Performance-Improved Synthesis from C
Greg Stitt, Frank Vahid, Walid A. Najjar · Digest of technical papers/Digest of technical papers - IEEE/ACM International Conference on Computer-Aided Design · 2006
Although many recent advances have been made in hardware synthesis techniques from software programming languages such as C, the performance of synthesized hardware commonly suffers due to the use of C constructs and coding practices that are not appropriate for hardware. Most previous approaches to addressing this problem require drastic changes to coding practice. We present an approach that instead requires only minimal changes but yields significant speedups. In this approach, a software developer initially writes C code as they normally would, and then applies simple refinement guidelines to only the performance-critical code regions, which are the regions most likely to be synthesized to hardware. Alternatively, if a designer is aware of performance-critical parts of the application, the guidelines could be followed during development. In this study, we analyze dozens of embedded benchmarks to determine the most common C coding practices that limit hardware performance, and introduce coding guidelines to make the code more amenable to synthesis. Those guidelines typically require minimal coding effort, generally consisting of less than ten lines of code for each guideline. The guidelines typically represent modifications that require designer knowledge, making the guidelines difficult or impossible for synthesis tools to automate. We apply these guidelines to six benchmarks, resulting in average speedups of 3.5times compared to synthesis from the original code with a negligible software size and performance overhead
Cited by 27 works. doi:10.1109/iccad.2006.320018
Authors
References
- MediaBench: A Tool for Evaluating and Synthesizing Multimedia and Communications Systems
- MediaBench: a tool for evaluating and synthesizing multimedia and communications systems
- NAPA C: compiling for a hybrid RISC/FPGA architecture
- SPARK: a high-level synthesis framework for applying parallelizing compiler transformations
- A global criticality/local phase driven algorithm for the constrained hardware/software partitioning problem
- HardwareC -- A Language for Hardware Design (Version 2.0)
- A low power unified cache architecture providing power and performance flexibility (poster session)
- A global criticality/local phase driven algorithm for the constrained hardware/software partitioning problem
- High-level language abstraction for reconfigurable computing
- Evaluation of the streams-C C-to-FPGA compiler