arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1803.02660cs.AR
收藏

在FPGA上使用自定义位宽合成功耗和面积有效的图像处理流水线

Synthesizing Power and Area Efficient Image Processing Pipelines on FPGAs using Customized Bit-widths

Vinamra Benara, Ziaul Choudhury, Suresh Purini, Uday Bondhugula

摘要:

近年来,高级综合(HLS)得到了极大的关注,提高了FPGA的可编程性。PolyMage是一种用于图像处理流水线的领域特定语言(DSL),它还具有HLS后端,用于将输入DSL转换为可以在FPGA上合成的等效电路,同时利用HLS套件。流水线的每一级的数据使用定点数据类型(alpha,beta)存储,其中alpha和beta表示整数位和小数位的数量。在对定点数据类型执行算术运算时,已知功率和面积节省比使用浮点显著。在本文中,我们首先提出了一个基于区间算术的范围分析(阿尔法分析)算法来估计所需的位数存储在每个阶段的图像处理流水线的数据的组成部分。该分析算法利用每个阶段像素信号的同质性对它们进行聚类,并进行组合范围分析。其次,我们提出了一个软件架构,可以轻松地部署任何类型的区间/仿射算法的范围分析的DSL编译器。第三,我们提出了一种新的范围分析技术,使用可满足性模理论(SMT)求解器,并表明,通过它获得的范围估计是非常接近的下限通过配置文件驱动的analysis.We评估我们的位宽分析算法上列出的四个图像处理基准的复杂性增加的顺序:锐化掩模,上下采样,哈里斯角检测和霍恩-Schunck光流。例如,在光流上,基于区间分析的方法显示出面积和功率度量分别比浮点表示提高了1.4倍和1.14倍;而基于SMT求解器的方法显示出面积和功率度量与区间分析相比提高了2.49倍和1.58倍。

英文摘要:

High-level synthesis (HLS) has received significant attention in recent years, improving programmability for FPGAs. PolyMage is a domain-specific language (DSL) for image processing pipelines that also has a HLS backend to translate the input DSL into an equivalent circuit that can be synthesized on FPGAs, while leveraging an HLS suite. The data at each stage of a pipeline is stored using a fixed-point data type (alpha,beta) where alpha and beta denote the number of integral and fractional bits. The power and area savings while performing arithmetic operations on fixed-point data type is known to be significant over using floating point. In this paper, we first propose an interval-arithmetic based range analysis (alpha-analysis) algorithm to estimate the number of bits required to store the integral part of the data at each stage of an image processing pipeline. The analysis algorithm uses the homogeneity of pixel signals at each stage to cluster them and perform a combined range analysis. Secondly, we propose a software architecture for easily deploying any kind of interval/affine arithmetic based range analyses in the DSL compiler. Thirdly, we propose a new range analysis technique using Satisfiability Modulo Theory (SMT) solvers, and show that the range estimates obtained through it are very close to the lower bounds obtained through profile-driven analysis.We evaluated our bitwidth analysis algorithms on four image processing benchmarks listed in the order of increasing complexity: Unsharp Mask, Down-Up Sampling, Harris Corner Detection and Horn-Schunck Optical Flow. For example, on Optical Flow, the interval analysis based approach showed an 1.4x and 1.14x improvement on area and power metrics over floating-point representation respectively; whereas the SMT solver based approach showed 2.49x and 1.58x improvement on area and power metrics when compared to interval analysis.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑