基于FPGA的自定义CPU架构设计
2020年电子技术应用第5期
李 俊1,任连新2,廖振雄3
1.深圳市合信自动化技术有限公司,广东 深圳518055; 2.华南理工大学 自动化科学与工程学院,广东 广州510640;3.深圳市科创思科技有限公司,广东 深圳518055
摘要: 为满足当前工业应用下越来越多的分布式计算的需求,提出了一种在FPGA芯片中构建自定义指令集的CPU的方式,以此来使FPGA具有类似于单片机的处理指令的能力。并且,这种能力的前提是复用计算单元,因此资源消耗有限,不会随着计算量的增加而增大。在自定义指令集CPU的改进型架构中,使用了并行计算的结构,使得运算速度大幅提升。最后,结合实际应用案例,移植电流环计算中的FOC算法到自定义CPU中运算。并用ModelSim软件进行仿真,测试其计算时间仅需7.48 μs。
中圖分類號: TN402
文獻標識碼: A
DOI:10.16157/j.issn.0258-7998.200011
中文引用格式: 李俊,任連新,廖振雄. 基于FPGA的自定義CPU架構設計[J].電子技術應用,2020,46(5):40-43,49.
英文引用格式: Li Jun,Ren Lianxin,Liao Zhenxiong. Design of custom CPU architecture based on FPGA[J]. Application of Electronic Technique,2020,46(5):40-43,49.
文獻標識碼: A
DOI:10.16157/j.issn.0258-7998.200011
中文引用格式: 李俊,任連新,廖振雄. 基于FPGA的自定義CPU架構設計[J].電子技術應用,2020,46(5):40-43,49.
英文引用格式: Li Jun,Ren Lianxin,Liao Zhenxiong. Design of custom CPU architecture based on FPGA[J]. Application of Electronic Technique,2020,46(5):40-43,49.
Design of custom CPU architecture based on FPGA
Li Jun1,Ren Lianxin2,Liao Zhenxiong3
1.Shenzhen Co-trust Technology Limited Company,Shenzhen 518055,China; 2.College of Automation Science and Engineering,South China University of Technology,Guangzhou 510640,China; 3.Shenzhen Kechuangsi Technology Limited Company,Shenzhen 518055,China
Abstract: In order to meet the needs of more and more distributed computing in current industrial applications, this article proposes a way to build a custom instruction set CPU in an FPGA chip. In this way, the FPGA has the ability to process instructions similar to a microcontroller. Moreover, the premise of this capability is the reuse of computing units, so resource consumption is limited and will not increase as the amount of calculation increases. In the improved architecture of the custom instruction set CPU, a parallel computing structure is used, which greatly improves the operation speed. Finally, combining the actual application case, the FOC algorithm in the current loop calculation is transplanted to the operation in the custom CPU. And ModelSim software is used to simulate, its calculation time is only 7.48 μs.
Key words : custom instruction set;CPU architecture;FPGA;parallel computing structure;FOC
0 引言
在目前的工業(yè)應用環(huán)境下,許多的工業(yè)設備控制器中都包含有相當復雜程度的算法。例如:狀態(tài)觀測器、卡爾曼濾波器、模糊控制算法、甚至是神經(jīng)網(wǎng)絡算法,不一而足。其中有些算法計算步驟復雜,同時又對控制帶寬有一定的要求,所以對設備的處理器芯片的運算能力要求很高。因此,有些設備中可能會同時存在2個甚至多個處理器,分別完成不同的功能算法。這樣多個處理器分布式地處理不同的算法,完成不同的控制功能,無疑是一個解決思路。但是這又會帶來IC數(shù)量增加,成本上升的問題。同時,現(xiàn)在的工業(yè)設備控制器的主控PCB上的集成度越來越高,在上面增加IC對硬件設計也是一種挑戰(zhàn)。
現(xiàn)在許多設備控制主板上都會使用FPGA芯片來對外部信號做預處理。本文旨在提供一種在FPGA內(nèi)構建精簡架構的CPU,使其可以具備算法處理能力的方法。這樣,在不額外增加處理器的前提下,可以讓FPGA也承擔一部分的計算任務[1]。
論文詳細內(nèi)容請下載http://ihrv.cn/resource/share/2000002788
作者信息:
李 俊1,任連新2,廖振雄3
(1.深圳市合信自動化技術有限公司,廣東 深圳518055;
2.華南理工大學 自動化科學與工程學院,廣東 廣州510640;3.深圳市科創(chuàng)思科技有限公司,廣東 深圳518055)
此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權禁止轉(zhuǎn)載。
