《電子技術應用》
您所在的位置:首頁 > 可編程邏輯 > 設計應用 > 基于FPGA的自定義CPU架構設計
基于FPGA的自定義CPU架構設計
2020年電子技術應用第5期
李 俊1,任連新2,廖振雄3
1.深圳市合信自動化技術有限公司,廣東 深圳518055; 2.華南理工大學 自動化科學與工程學院,廣東 廣州510640;3.深圳市科創(chuàng)思科技有限公司,廣東 深圳518055
摘要: 為滿足當前工業(yè)應用下越來越多的分布式計算的需求,提出了一種在FPGA芯片中構建自定義指令集的CPU的方式,以此來使FPGA具有類似于單片機的處理指令的能力。并且,這種能力的前提是復用計算單元,因此資源消耗有限,不會隨著計算量的增加而增大。在自定義指令集CPU的改進型架構中,使用了并行計算的結構,使得運算速度大幅提升。最后,結合實際應用案例,移植電流環(huán)計算中的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.
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)觀測器、卡爾曼濾波器、模糊控制算法、甚至是神經網絡算法,不一而足。其中有些算法計算步驟復雜,同時又對控制帶寬有一定的要求,所以對設備的處理器芯片的運算能力要求很高。因此,有些設備中可能會同時存在2個甚至多個處理器,分別完成不同的功能算法。這樣多個處理器分布式地處理不同的算法,完成不同的控制功能,無疑是一個解決思路。但是這又會帶來IC數量增加,成本上升的問題。同時,現在的工業(yè)設備控制器的主控PCB上的集成度越來越高,在上面增加IC對硬件設計也是一種挑戰(zhàn)。

    現在許多設備控制主板上都會使用FPGA芯片來對外部信號做預處理。本文旨在提供一種在FPGA內構建精簡架構的CPU,使其可以具備算法處理能力的方法。這樣,在不額外增加處理器的前提下,可以讓FPGA也承擔一部分的計算任務[1]。




論文詳細內容請下載http://ihrv.cn/resource/share/2000002788




作者信息:

李  俊1,任連新2,廖振雄3

(1.深圳市合信自動化技術有限公司,廣東 深圳518055;

2.華南理工大學 自動化科學與工程學院,廣東 廣州510640;3.深圳市科創(chuàng)思科技有限公司,廣東 深圳518055)

此內容為AET網站原創(chuàng),未經授權禁止轉載。