Skip to main content
QUICK REVIEW

[Paper Review] Predicting Post-Route Quality of Results Estimates for HLS Designs using Machine Learning

Pingakshya Goswami, Dinesh Bhatia|arXiv (Cornell University)|May 24, 2022
VLSI and FPGA Design TechniquesEngineering7 references7 citations
TL;DR

This paper presents a machine learning model that predicts post-route timing and resource metrics—clock period, latency, and LUT usage—for high-level synthesis (HLS) designs directly from C/C++ behavioral code and LLVM intermediate representation, eliminating the need for iterative high-level synthesis. The model achieves <10% prediction error across multiple FPGA families, significantly improving design space exploration efficiency and accuracy over traditional HLS estimates.

ABSTRACT

Machine learning (ML) has been widely used to improve the predictability of EDA tools. The use of CAD tools that express designs at higher levels of abstraction makes machine learning even more important to highlight the performance of various design steps. Behavioral descriptions used during the high-level synthesis (HLS) are completely technology independent making it hard for designers to interpret how changes in the synthesis options affect the resultant circuit. FPGA design flows are completely embracing HLS based methodologies so that software engineers with almost no hardware design skills can easily use their tools. HLS tools allow design space exploration by modifying synthesis options, however, they lack accuracy in the Quality of Results (QoR) reported right after HLS. This lack of correctness results in sub-optimal designs with problems in timing closure. This paper presents a robust ML based design flow that can accurately predict post-route QoR for a given behavioral description without the need to synthesize the design. The model is an important design exploration tool where a designer can quickly view the impact on overall design quality when local and global optimization directives are changed. The proposed methodology presents two strong advantages: (i) Accurate prediction of the design quality (QoR), and (ii) complete elimination of the need to execute high-level synthesis for each design option. We predict three post route parameters, (i). Area, (ii). Latency and (iii). Clock Period of a design just by analyzing the high level behavioral code and some intermediate representation codes. We have integrated the methodology with Xilinx HLS tools and have demonstrated accurate estimation on a variety of FPGA families. Our estimated results are within 10\% of actual computed values

Motivation & Objective

  • To address the inaccuracy of Quality of Results (QoR) estimates produced by HLS tools immediately after high-level synthesis.
  • To eliminate the need for repeated high-level synthesis runs during design space exploration by enabling fast, accurate prediction of post-route metrics.
  • To provide designers with a reliable, fast feedback loop for evaluating the impact of synthesis directives on final design quality.
  • To develop a machine learning framework that predicts final design quality from high-level code and LLVM IR, bypassing the full synthesis flow.

Proposed method

  • Extracted features from C/C++ behavioral code and LLVM Intermediate Representation (IR), including control flow, data flow, and call graphs.
  • Used classical machine learning regression models trained on labeled post-route QoR data from actual HLS runs.
  • Trained models on multiple FPGA families (Zynq 7000, Virtex-7, Kintex-7) using target frequencies from 100MHz to 500MHz.
  • Integrated the framework with Xilinx Vivado HLS, using only behavioral code and synthesis directives as input.
  • Applied feature engineering to capture the effects of global target frequency and local pragmas on scheduling and resource allocation.
  • Validated the model on unseen designs and across different FPGA devices, demonstrating generalization beyond training data.

Experimental results

Research questions

  • RQ1Can machine learning accurately predict post-route clock period, latency, and LUT usage from high-level behavioral code without running high-level synthesis?
  • RQ2How does the model’s prediction accuracy compare to commercial HLS tools like Vivado HLS across diverse benchmarks and FPGA families?
  • RQ3To what extent can the model generalize to unseen designs and target frequencies not included in the training data?
  • RQ4How well does the model capture the impact of global target frequency and local synthesis directives on final design quality?
  • RQ5Can the model eliminate the need for repeated high-level synthesis runs during design space exploration?

Key findings

  • The proposed ML model predicts post-route clock period, latency, and LUT usage with a mean absolute percentage error (MAPE) of 6.29%, 10.32%, and 392.33% respectively across benchmarks, significantly outperforming Vivado HLS’s average MAPE of 100.45% for latency and 198.09% for clock period.
  • For the adpcm benchmark on Zynq 7000, the model’s predicted values closely matched actual post-route results, with correlation coefficients near 1.0 across all three metrics.
  • The model achieved <10% error for clock period and latency predictions on all tested FPGA families, with LUT prediction error remaining within acceptable bounds despite high dynamic range.
  • The model generalized well to unseen designs and frequencies: it was trained on 3 frequencies (100MHz, 150MHz, 200MHz) but accurately predicted QoR for 8 frequencies, including 5 outside the training set.
  • On 64 completely new, unseen pragma-optimized designs across Zynq, Virtex-7, and Kintex-7, the model maintained low MAPE (5.55–6.50% for clock period, 17.10–19.50% for latency), demonstrating strong robustness and generalization.
  • The model reduced the need for time-consuming C-synthesis steps by enabling fast, accurate QoR estimation directly from high-level code, thereby accelerating design space exploration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.