車用微控制器的模糊邏輯與BDM部件研究與設(shè)計(jì)
本文選題:車用微控制器 切入點(diǎn):模糊邏輯部件 出處:《湖南大學(xué)》2012年碩士論文 論文類型:學(xué)位論文
【摘要】:微控制器在汽車電子領(lǐng)域的廣泛應(yīng)用,使現(xiàn)代汽車正向著智能化和網(wǎng)絡(luò)化方向發(fā)展。國(guó)外從20世紀(jì)70年代后期開始致力于微控制器在汽車電子中的應(yīng)用與研究,現(xiàn)已形成較成熟的車用微控制器產(chǎn)品和解決方案。而國(guó)內(nèi)起步晚、發(fā)展速度慢,具有成熟的自主知識(shí)產(chǎn)權(quán)的車用微控制器產(chǎn)品基本還是空白。因此,研制具有我國(guó)自主知識(shí)產(chǎn)權(quán)的車用微控制器芯片是我國(guó)科技工作者面臨的挑戰(zhàn)。 隨著汽車電子控制系統(tǒng)所在環(huán)境的復(fù)雜化和干擾多元化,具有很好適應(yīng)性的模糊邏輯控制技術(shù)被引入車用微控制器的指令集中。Freescale HCS12是世界上第一個(gè)包含完整的模糊邏輯指令的微控制器。本課題通過(guò)分析車用微控制器的特點(diǎn)與使用范圍,設(shè)計(jì)一款兼容于Freescale HCS12指令集的16位車用微控制器。本文負(fù)責(zé)模糊邏輯與后臺(tái)調(diào)試模式(Background Debug Mode,BDM)部件研究與設(shè)計(jì),并對(duì)系統(tǒng)的安全性問題進(jìn)行分析與應(yīng)對(duì)。論文的主要工作如下: 通過(guò)研究車用微控制器的特征與指令集,設(shè)計(jì)了兩讀兩寫四總線數(shù)據(jù)通路結(jié)構(gòu)。在參考硬件設(shè)計(jì)方法的基礎(chǔ)上,采用“自頂向下”的層次化設(shè)計(jì)思路,進(jìn)行系統(tǒng)模塊劃分及模塊間接口信號(hào)定義,并對(duì)系統(tǒng)的安全性進(jìn)行了分析。 通過(guò)分析模糊邏輯指令的體系結(jié)構(gòu),設(shè)計(jì)了模糊邏輯微指令格式,提出了模糊邏輯部件16位統(tǒng)一數(shù)據(jù)通路和兩個(gè)快速運(yùn)算單元的結(jié)構(gòu)。提出的統(tǒng)一通路和結(jié)構(gòu),使用一個(gè)運(yùn)算模塊就可以滿足模糊邏輯指令中8位/16位的有符號(hào)/無(wú)符號(hào)運(yùn)算,避免了運(yùn)算模塊的重復(fù),減少了部件的占用面積,兩個(gè)ALU的結(jié)構(gòu)可以實(shí)現(xiàn)運(yùn)算的并行性,從而提高模糊邏輯指令執(zhí)行速度。模糊邏輯指令測(cè)試的結(jié)果表明設(shè)計(jì)的模糊邏輯部件達(dá)到了目標(biāo)。 在對(duì)BDM的指令結(jié)構(gòu)和通信時(shí)序深入分析的基礎(chǔ)上,設(shè)計(jì)了BDM部件的數(shù)據(jù)通路及接口信號(hào),提出一種BDM指令集的快速譯碼方案,實(shí)現(xiàn)了BDM接口握手協(xié)議、BDM指令譯碼及執(zhí)行和BDM字節(jié)通信的設(shè)計(jì)。對(duì)BDM部件的仿真與FPGA驗(yàn)證結(jié)果證實(shí)BDM通信時(shí)序的正確性及BDM指令的有效譯碼與執(zhí)行。 針對(duì)系統(tǒng)安全性,通過(guò)研究AES的攻擊與掩碼技術(shù),提出了GF(((22)2)2)域上一種基于門級(jí)掩碼的輸入中間值與輸入掩碼值構(gòu)成非線性關(guān)系的S-盒設(shè)計(jì)方案,,并將已設(shè)計(jì)的S-盒應(yīng)用于AES中完成GF(((22)2)2)域上基于掩碼的AES抗功耗攻擊方案,改進(jìn)的S-盒與已有的S-盒進(jìn)行了比較與分析,結(jié)果表明,改進(jìn)的S-盒能有效抵抗功耗攻擊與glitch攻擊,與現(xiàn)有的S-盒相比綜合性能更優(yōu)。
[Abstract]:With the wide application of microcontroller in the field of automobile electronics, modern automobile is developing towards intelligence and networking. Since the late 1970s, the application and research of microcontroller in automobile electronics have been devoted to. But the domestic starts late, the development speed is slow, the vehicle microcontroller product which has the mature independent intellectual property right is basically blank. It is a challenge for Chinese science and technology workers to develop vehicle microcontroller chip with our own intellectual property rights. With the complexity and interference of the environment in which the automotive electronic control system is located, The adaptive fuzzy logic control technique is introduced into the instruction set of vehicle microcontroller. Freescale HCS12 is the first microcontroller with complete fuzzy logic instruction in the world. Characteristics and scope of use, A 16-bit microcontroller compatible with the Freescale HCS12 instruction set is designed. This paper is responsible for the research and design of the fuzzy logic and background debugging mode Debug mode BDM, and analyzes and solves the security problems of the system. The main work of this paper is as follows:. By studying the characteristics and instruction sets of vehicle microcontrollers, the data path structure of two readings, two writes and four buses is designed. On the basis of the reference hardware design method, the hierarchical design idea of "top-down" is adopted. The system module is divided and the interface signal between modules is defined, and the security of the system is analyzed. By analyzing the architecture of fuzzy logic instruction, the format of fuzzy logic microinstruction is designed, and the structure of 16 bits uniform data path and two fast operation units of fuzzy logic component is proposed. Using one operation module can satisfy the signed / unsigned operation of 8-bit / 16-bit in the fuzzy logic instruction, avoid the repetition of the operation module, reduce the occupied area of the parts, and the structure of the two ALU can realize the parallelism of the operation. The result of fuzzy logic instruction test shows that the designed fuzzy logic unit has achieved the goal. Based on the deep analysis of the instruction structure and communication timing of BDM, the data path and interface signal of BDM are designed, and a fast decoding scheme of BDM instruction set is proposed. The design of BDM handshake protocol decoding and execution and BDM byte communication are implemented. The results of BDM simulation and FPGA verification verify the correctness of BDM communication timing and the effective decoding and execution of BDM instructions. In view of the security of the system, by studying the attack and mask technology of AES, this paper presents a Sbox design scheme in which the input intermediate value and the input mask value form a nonlinear relationship in the domain of AES. The designed S- box is applied to AES to complete the masking based AES power attack scheme. The improved S- box is compared with the existing S- box. The results show that the improved S- box can resist power attack and glitch attack effectively. Compared with the existing S- box, the comprehensive performance is better.
【學(xué)位授予單位】:湖南大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2012
【分類號(hào)】:U463.6;TP368.11
【參考文獻(xiàn)】
相關(guān)期刊論文 前9條
1 張琴;王宜懷;劉曉升;;單線調(diào)試接口BDM的通信技術(shù)研究[J];單片機(jī)與嵌入式系統(tǒng)應(yīng)用;2008年05期
2 鞠芳;馬昕;田嵐;;基于FPGA的數(shù)字乘法器性能比較[J];電子器件;2011年06期
3 李浪;李仁發(fā);童元滿;章競(jìng)競(jìng);沙行勉;;嵌入式加密芯片功耗分析攻擊與防御研究進(jìn)展[J];計(jì)算機(jī)研究與發(fā)展;2010年04期
4 王水魚;安鴿;;基于FPGA汽車電控單元模糊控制器的設(shè)計(jì)[J];計(jì)算機(jī)測(cè)量與控制;2010年09期
5 王利,李向華;基于FPGA的模糊邏輯控制器的硬件實(shí)現(xiàn)[J];控制工程;2004年01期
6 李燕輝;吳冬寒;;汽車電子行業(yè)發(fā)展的主旋律[J];汽車零部件;2010年07期
7 張濤;范明鈺;;一種面向密碼芯片的旁路攻擊防御方法[J];軟件學(xué)報(bào);2008年11期
8 楊栩楠;蔣大明;;功能安全與微控制器自診斷技術(shù)的研究[J];鐵路計(jì)算機(jī)應(yīng)用;2011年07期
9 陳文軍,陳理君;FPGA在窯爐溫度模糊控制中的應(yīng)用設(shè)計(jì)[J];自動(dòng)化技術(shù)與應(yīng)用;2004年08期
相關(guān)博士學(xué)位論文 前1條
1 孫康慧;中國(guó)汽車電子產(chǎn)業(yè)創(chuàng)新體系構(gòu)建研究[D];吉林大學(xué);2011年
相關(guān)碩士學(xué)位論文 前1條
1 沈曉慧;S12系列微控制器的編程調(diào)試系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];蘇州大學(xué);2009年
本文編號(hào):1650156
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1650156.html