《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 模擬設(shè)計 > 設(shè)計應(yīng)用 > 基于FPGA的卷積神經(jīng)網(wǎng)絡(luò)并行加速器設(shè)計
基于FPGA的卷積神經(jīng)網(wǎng)絡(luò)并行加速器設(shè)計
2021年電子技術(shù)應(yīng)用第2期
王 婷,陳斌岳,張福海
南開大學(xué) 電子信息與光學(xué)工程學(xué)院,天津300350
摘要: 近年來,卷積神經(jīng)網(wǎng)絡(luò)在許多領(lǐng)域中發(fā)揮著越來越重要的作用,然而功耗和速度是限制其應(yīng)用的主要因素。為了克服其限制因素,設(shè)計一種基于FPGA平臺的卷積神經(jīng)網(wǎng)絡(luò)并行加速器,以Ultra96-V2 為實(shí)驗(yàn)開發(fā)平臺,而且卷積神經(jīng)網(wǎng)絡(luò)計算IP核的設(shè)計實(shí)現(xiàn)采用了高級設(shè)計綜合工具,使用Vivado開發(fā)工具完成了基于FPGA的卷積神經(jīng)網(wǎng)絡(luò)加速器系統(tǒng)設(shè)計實(shí)現(xiàn)。通過對GPU和CPU識別率的對比實(shí)驗(yàn),基于FPGA優(yōu)化設(shè)計的卷積神經(jīng)網(wǎng)絡(luò)處理一張圖片的時間比CPU要少得多,相比GPU功耗減少30倍以上,顯示了基于FPGA加速器設(shè)計的性能和功耗優(yōu)勢,驗(yàn)證了該方法的有效性。
中圖分類號: TN402
文獻(xiàn)標(biāo)識碼: A
DOI:10.16157/j.issn.0258-7998.200858
中文引用格式: 王婷,陳斌岳,張福海. 基于FPGA的卷積神經(jīng)網(wǎng)絡(luò)并行加速器設(shè)計[J].電子技術(shù)應(yīng)用,2021,47(2):81-84.
英文引用格式: Wang Ting,Chen Binyue,Zhang Fuhai. Parallel accelerator design for convolutional neural networks based on FPGA[J]. Application of Electronic Technique,2021,47(2):81-84.
Parallel accelerator design for convolutional neural networks based on FPGA
Wang Ting,Chen Binyue,Zhang Fuhai
College of Electronic Information and Optical Engineering,Nankai University,Tianjin 300350,China
Abstract: In recent years, convolutional neural network plays an increasingly important role in many fields. However, power consumption and speed are the main factors limiting its application. In order to overcome its limitations, a convolutional neural network parallel accelerator based on FPGA platform is designed. Ultra96-v2 is used as the experimental development platform, and the design and implementation of convolutional neural network computing IP core adopts advanced design synthesis tools. The design and implementation of convolutional neural network accelerator system based on FPGA is completed by using vivado development tools. By comparing the recognition rate of GPU and CPU, the convolutional neural network based on FPGA optimized design takes much less time to process a picture than CPU, and reduces the power consumption of GPU by more than 30 times. It shows the performance and power consumption advantages of FPGA accelerator design, and verifies the effectiveness of this method.
Key words : parallel computing;convolutional neural network;accelerator;pipeline

0 引言

    隨著人工智能的快速發(fā)展,卷積神經(jīng)網(wǎng)絡(luò)越來越受到人們的關(guān)注。由于它的高適應(yīng)性和出色的識別能力,它已被廣泛應(yīng)用于分類和識別、目標(biāo)檢測、目標(biāo)跟蹤等領(lǐng)域[1]。與傳統(tǒng)算法相比,CNN的計算復(fù)雜度要高得多,并且通用CPU不再能夠滿足計算需求。目前,主要解決方案是使用GPU進(jìn)行CNN計算。盡管GPU在并行計算中具有自然優(yōu)勢,但在成本和功耗方面存在很大的缺點(diǎn)。卷積神經(jīng)網(wǎng)絡(luò)推理過程的實(shí)現(xiàn)占用空間大,計算能耗大[2],無法滿足終端系統(tǒng)的CNN計算要求。FPGA具有強(qiáng)大的并行處理功能,靈活的可配置功能以及超低功耗,使其成為CNN實(shí)現(xiàn)平臺的理想選擇。FPGA的可重配置特性適合于變化的神經(jīng)網(wǎng)絡(luò)網(wǎng)絡(luò)結(jié)構(gòu)。因此,許多研究人員已經(jīng)研究了使用FPGA實(shí)現(xiàn)CNN加速的方法[3]。本文參考了Google提出的輕量級網(wǎng)絡(luò)MobileNet結(jié)構(gòu)[4],并通過并行處理和流水線結(jié)構(gòu)在FPGA上設(shè)計了高速CNN系統(tǒng),并將其與CPU和GPU的實(shí)現(xiàn)進(jìn)行了比較。




本文詳細(xì)內(nèi)容請下載:http://ihrv.cn/resource/share/2000003393




作者信息:

王  婷,陳斌岳,張福海

(南開大學(xué) 電子信息與光學(xué)工程學(xué)院,天津300350)

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。