基于FPGA的CAN IP軟核設(shè)計
發(fā)布時間:2018-03-24 20:14
本文選題:CAN 切入點:IP 出處:《吉林大學(xué)》2017年碩士論文
【摘要】:CAN是一種應(yīng)用十分廣泛的現(xiàn)場總線,尤其在汽車領(lǐng)域被越來越廣泛的使用。隨著發(fā)展CAN的應(yīng)用領(lǐng)域被逐漸拓展,使其具有非常優(yōu)秀的發(fā)展前景。FPGA由于運行速度快,具有大量軟核便于開發(fā)等優(yōu)點在嵌入式系統(tǒng)中也得到越來越廣泛的重視。CAN與FPGA相結(jié)合即拓寬了CAN協(xié)議的應(yīng)用范圍又?jǐn)U展了FPGA的應(yīng)用領(lǐng)域。目前主流的硬件描述語言編程軟件支持CAN協(xié)議的很少,所以本文具有一定的開創(chuàng)意義。同時采用CAN軟核形式不需要額外的原件,硬件簡單、更加靈活,所以又具有一定的實用意義。本文創(chuàng)新在于在CAN協(xié)議的基礎(chǔ)上增加了靈活的郵箱管理和報文管理,使收發(fā)過程得到更好的控制。同時整體結(jié)構(gòu)上借鑒了意法半導(dǎo)體系列單片機的CAN設(shè)計,使得熟悉單片機操作的人可以在不掌握硬件描述語言下方便使用CAN IP軟核。本文基于Altera公司Cyclone IV系列FPGA,編寫一個CAN IP軟核實現(xiàn)CAN總線規(guī)范規(guī)定的基本功能,并設(shè)計了收發(fā)郵箱和濾波器,其后可以以此為基礎(chǔ)設(shè)計更為復(fù)雜的結(jié)構(gòu)來滿足各種不同系統(tǒng)的需求。使用QuartusⅡ軟件,基于其Qsys功能,封裝CAN IP核,用avalon總線與NiosⅡ軟核處理器相連,構(gòu)造具有CAN功能的Qsys系統(tǒng)。使用eclipse的NiosⅡ軟件構(gòu)造工具,編寫一段測試代碼,測試系統(tǒng)的CAN收發(fā)功能。經(jīng)測試IP核具有正常的CAN收發(fā)功能,傳輸基本穩(wěn)定。IP核代碼結(jié)構(gòu)清楚,對接口稍作更改便可移植到其他處理器中。
[Abstract]:CAN is a very widely used fieldbus, especially in the field of automobile. With the development of CAN application field is gradually expanded, making it has a very good development prospects. In embedded system, the combination of can and FPGA not only widens the application scope of CAN protocol, but also extends the application field of FPGA. Very few programming software support the CAN protocol, So this paper has certain pioneering significance. At the same time, using CAN soft core form does not need additional original, the hardware is simple, more flexible, The innovation of this paper lies in the addition of flexible mailbox management and message management on the basis of CAN protocol. So that the transceiver process can be better controlled. At the same time, the CAN design of Italian semiconductor series microcontroller is used for reference in the overall structure. It makes it easy to use CAN IP soft core without mastering the hardware description language. Based on Cyclone IV series FPGAof Altera Company, this paper compiles a CAN IP soft core to realize the basic function of CAN bus specification. A transceiver mailbox and a filter are designed, based on which a more complex structure can be designed to meet the needs of different systems. Quartus 鈪,
本文編號:1659859
本文鏈接:http://sikaile.net/shoufeilunwen/xixikjs/1659859.html
最近更新
教材專著