基于USB接口MCU在線仿真器研究與設計
發(fā)布時間:2018-07-22 17:03
【摘要】:近幾年,MCU(Micro Controller Unit)微控制單元經(jīng)過不斷地研究和發(fā)展,歷經(jīng)4位,8位,到現(xiàn)在的16位和32位,甚至64位。產(chǎn)品的成熟度越來越高,應用也越來越廣,對于芯片的再次開發(fā)也變得越來越常見,但是MCU不能進行二次開發(fā),需要借助一定的平臺對MCU重復開發(fā),在線仿真器的出現(xiàn)會帶來很多方便。 從在線仿真器的仿真技術來看,國內(nèi)外市場上的在線仿真器產(chǎn)品采用的技術主要可以分為Bondout仿真技術、HOOKS仿真技術、嵌入式仿真技術和商用CPU仿真技術。還有一種基于FPGA的通用仿真技術,雖然并沒有統(tǒng)一的產(chǎn)品但是在自主開發(fā)當中仍占有一定的比例。目前,通用仿真器技術仍然沒有詳細的實現(xiàn)方案。 本文基于通用仿真器框架詳細設計了各個子模塊,經(jīng)過FPGA進行了驗證。首先設計了USB通信接口程序,并且根據(jù)在線仿真器的斷點,單步,停止,運行等命令設計了具有校驗功能的數(shù)據(jù)流協(xié)議,滿足了電腦和FPGA的通信需求。其次,采用自頂向下和自底向上相結合的模塊化設計方法,設計出了處理交互數(shù)據(jù)流的調(diào)試模塊。調(diào)試模塊是在線仿真器硬件部分最重要的模塊,經(jīng)過一定的優(yōu)化處理生成了調(diào)試模塊的IP軟核。在線仿真器硬件另一重要部分為MCU軟核程序,網(wǎng)表文件可以從virtuoso中經(jīng)過驗證的原理圖中提取,,提取出的網(wǎng)表文件經(jīng)過一定的修改之后才可以在FPGA平臺上實現(xiàn)仿真。最后,將USB接口程序、調(diào)試模塊程序、MCU軟核網(wǎng)表以及FPGA自己生成的RAM、ROM下載到FPGA中之后,整個在線仿真器的硬件部分在一塊FPGA芯片中實現(xiàn)。連通電腦端軟件之后,實現(xiàn)了整個在線仿真系統(tǒng)。通過電腦端發(fā)送斷點、單步、停止、運行等命令,硬件部分可以得到相應控制,將在線仿真器對應IO口連接到LED燈上,編譯一段簡單的匯編語言程序之后,通過觀察LED燈的狀態(tài)可以觀察到IO口的狀態(tài)變化。同時,接入示波器可以觀察IO口的波形。最終,在線仿真器在Xilinx Spartan系列XC3S700AN開發(fā)板套件中進行了調(diào)試驗證,實現(xiàn)了通用在線仿真系統(tǒng)。
[Abstract]:In recent years, MCU (Micro Controller Unit) microcontrol unit has been continuously studied and developed, and has gone through 4 bits and 8 bits, now 16 bits and 32 bits, or even 64 bits. The maturity of the product is becoming higher and higher, and the application is becoming more and more extensive. The re-development of the chip is becoming more and more common, but MCU can not be re-developed, so it needs to use a certain platform to develop the MCU repeatedly. The emergence of online emulators will bring a lot of convenience. From the point of view of the simulation technology of the on-line simulator, the technologies used in the online simulator products in the domestic and foreign markets can be divided into Bondout simulation technology, embedded simulation technology and commercial CPU simulation technology, which can be divided into three parts: Bondout simulation technology, embedded simulation technology and commercial CPU simulation technology. There is also a general simulation technology based on FPGA, although there is no uniform product, it still occupies a certain proportion in the independent development. At present, the universal simulator technology still has no detailed implementation scheme. Based on the universal simulator framework, each sub-module is designed in detail and verified by FPGA. First, the USB communication interface program is designed, and the data flow protocol with check function is designed according to the breakpoint, single step, stop and run of the on-line simulator, which meets the communication requirement between the computer and FPGA. Secondly, the modularization design method of top-down and bottom-up is used to design the debugging module to deal with the interactive data flow. Debugging module is the most important module in the hardware part of on-line simulator, and the IP soft core of debugging module is generated by certain optimization processing. Another important part of the hardware of the on-line simulator is the MCU soft core program. The network table file can be extracted from the schematic diagram verified in virtuoso, and the extracted network table file can be simulated on the platform of virtuoso after some modification. Finally, after downloading USB interface program, debug module program, MCU soft core network table and RAM ROM generated by FPGA into FPGA, the hardware part of the whole on-line simulator is implemented in a FPGA chip. The whole online simulation system is realized after the software is connected to the computer. By sending breakpoints, single steps, stopping, running and so on, the hardware can be controlled accordingly. The corresponding IO port of the on-line simulator is connected to the LED lamp, and a simple assembly language program is compiled. The state of IO port can be observed by observing the state of LED lamp. At the same time, access oscilloscope can observe the waveform of IO port. Finally, the on-line simulator is debugged in Xilinx Spartan series XC3S700AN development board, and the universal on-line simulation system is realized.
【學位授予單位】:河北工業(yè)大學
【學位級別】:碩士
【學位授予年份】:2014
【分類號】:TP334.7
本文編號:2138153
[Abstract]:In recent years, MCU (Micro Controller Unit) microcontrol unit has been continuously studied and developed, and has gone through 4 bits and 8 bits, now 16 bits and 32 bits, or even 64 bits. The maturity of the product is becoming higher and higher, and the application is becoming more and more extensive. The re-development of the chip is becoming more and more common, but MCU can not be re-developed, so it needs to use a certain platform to develop the MCU repeatedly. The emergence of online emulators will bring a lot of convenience. From the point of view of the simulation technology of the on-line simulator, the technologies used in the online simulator products in the domestic and foreign markets can be divided into Bondout simulation technology, embedded simulation technology and commercial CPU simulation technology, which can be divided into three parts: Bondout simulation technology, embedded simulation technology and commercial CPU simulation technology. There is also a general simulation technology based on FPGA, although there is no uniform product, it still occupies a certain proportion in the independent development. At present, the universal simulator technology still has no detailed implementation scheme. Based on the universal simulator framework, each sub-module is designed in detail and verified by FPGA. First, the USB communication interface program is designed, and the data flow protocol with check function is designed according to the breakpoint, single step, stop and run of the on-line simulator, which meets the communication requirement between the computer and FPGA. Secondly, the modularization design method of top-down and bottom-up is used to design the debugging module to deal with the interactive data flow. Debugging module is the most important module in the hardware part of on-line simulator, and the IP soft core of debugging module is generated by certain optimization processing. Another important part of the hardware of the on-line simulator is the MCU soft core program. The network table file can be extracted from the schematic diagram verified in virtuoso, and the extracted network table file can be simulated on the platform of virtuoso after some modification. Finally, after downloading USB interface program, debug module program, MCU soft core network table and RAM ROM generated by FPGA into FPGA, the hardware part of the whole on-line simulator is implemented in a FPGA chip. The whole online simulation system is realized after the software is connected to the computer. By sending breakpoints, single steps, stopping, running and so on, the hardware can be controlled accordingly. The corresponding IO port of the on-line simulator is connected to the LED lamp, and a simple assembly language program is compiled. The state of IO port can be observed by observing the state of LED lamp. At the same time, access oscilloscope can observe the waveform of IO port. Finally, the on-line simulator is debugged in Xilinx Spartan series XC3S700AN development board, and the universal on-line simulation system is realized.
【學位授予單位】:河北工業(yè)大學
【學位級別】:碩士
【學位授予年份】:2014
【分類號】:TP334.7
【參考文獻】
相關期刊論文 前10條
1 葉敏;周文暉;顧偉康;;基于FPGA的實時圖像濾波及邊緣檢測方法[J];傳感技術學報;2007年03期
2 王紅;彭亮;于宗光;;FPGA現(xiàn)狀與發(fā)展趨勢[J];電子與封裝;2007年07期
3 譚安菊;龔彬;;USB2.0控制器CY7C68013與FPGA接口的Verilog HDL實現(xiàn)[J];電子工程師;2007年07期
4 覃祥菊,朱明程,張?zhí)?魏忠義;FPGA動態(tài)可重構技術原理及實現(xiàn)方法分析[J];電子器件;2004年02期
5 楊海鋼;孫嘉斌;王慰;;FPGA器件設計技術發(fā)展綜述[J];電子與信息學報;2010年03期
6 宋亞軍;許廷發(fā);倪國強;高昆;王強;;基于Virtex-4 FPGA的低功耗圖像融合系統(tǒng)[J];光學精密工程;2007年06期
7 王祖強;張華;李玲;;8位RISC MCU IP軟核仿真的新方法[J];計算機工程;2007年06期
8 李舸;桑楠;熊光澤;;一種通用在線仿真調(diào)試器的設計[J];計算機應用;2007年04期
9 楊朋林,張曉飛;FPGA控制實現(xiàn)圖像系統(tǒng)視頻圖像采集[J];計算機測量與控制;2003年06期
10 谷鑾;徐貴力;王友仁;;FPGA動態(tài)可重構理論及其研究進展[J];計算機測量與控制;2007年11期
本文編號:2138153
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2138153.html
最近更新
教材專著