天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

USB接口軟IP CORE代碼設(shè)計(jì)及驗(yàn)證

發(fā)布時(shí)間:2018-05-22 18:54

  本文選題:USB + IP核��; 參考:《電子科技大學(xué)》2012年碩士論文


【摘要】:USB是英文(Universal Serial Bus)的縮寫(xiě),中文就是通用串行總線。USB是Intel聯(lián)合(Microsoft,IBM,康柏,NEC等)七家公司共同推出的總線標(biāo)準(zhǔn),這是一種速度快、成本低、易于擴(kuò)展的總線標(biāo)準(zhǔn),同時(shí)也是目前電子產(chǎn)品中應(yīng)用最為廣泛的接口協(xié)議之一。支持設(shè)備即插即用和熱插拔功能的USB總線標(biāo)準(zhǔn)的出現(xiàn),對(duì)于信息產(chǎn)業(yè)和計(jì)算機(jī)的發(fā)展具有重大意義。鑒于USB廣泛的應(yīng)用及迅猛的發(fā)展和經(jīng)濟(jì)效益,本文設(shè)計(jì)了一個(gè)USB設(shè)備接口IP核,討論了設(shè)計(jì)思想和方法。 本論文主要討論了USB設(shè)備接口IP核的設(shè)計(jì)。根據(jù)復(fù)雜數(shù)字邏輯電路和系統(tǒng)設(shè)計(jì)思想,為了降低設(shè)計(jì)復(fù)雜度,經(jīng)過(guò)深入研究USB協(xié)議后,決定在設(shè)計(jì)中采用自頂向下(Top-Down)的設(shè)計(jì)方法;同時(shí)該IP核使用VerilogHDL編寫(xiě)代碼,在設(shè)計(jì)中我們把時(shí)序邏輯電路和組合邏輯電路分開(kāi)設(shè)計(jì),這樣能夠使得設(shè)計(jì)思路更清晰同時(shí)也讓總體結(jié)構(gòu)便于理解;為了使設(shè)計(jì)更易于綜合,代碼編寫(xiě)也必須遵循可綜合風(fēng)格并且注重跨時(shí)鐘域的問(wèn)題。論文主要包括以下幾個(gè)方面: 1)首先學(xué)習(xí)和分析USB協(xié)議,分析協(xié)議標(biāo)準(zhǔn)和數(shù)據(jù)傳輸方式,根據(jù)學(xué)習(xí)到的協(xié)議內(nèi)容和分析結(jié)果提出基于FPGA的USB設(shè)備接口IP核的總體設(shè)計(jì)方案,然后劃分各功能模塊,劃分成五個(gè)模塊:UTMI、控制器、物理層、FIFO、存儲(chǔ)器接口和協(xié)議層。設(shè)計(jì)方案中最關(guān)鍵的三個(gè)模塊是物理層模塊、控制器模塊和協(xié)議層模塊。 2)用Verilog編寫(xiě)RTL級(jí)代碼,完成各功能模塊的詳細(xì)設(shè)計(jì)。物理層模塊主要完成采樣異步數(shù)據(jù)流以及分離時(shí)鐘和數(shù)據(jù),模擬差分信號(hào)和數(shù)字信號(hào)的轉(zhuǎn)換;控制器模塊完成USB設(shè)備的數(shù)據(jù)傳輸和枚舉;協(xié)議層模塊功能比較復(fù)雜,為了實(shí)現(xiàn)復(fù)雜的USB協(xié)議,使用了有限狀態(tài)機(jī)的設(shè)計(jì)方法,協(xié)議層主要完成數(shù)據(jù)的打包和解包等。 3)用ModelSim SE和QuartusⅡ軟件對(duì)USB設(shè)備接口IP核進(jìn)行綜合仿真,對(duì)設(shè)備接口IP在FPGA硬件平臺(tái)上進(jìn)行了驗(yàn)證。在驗(yàn)證過(guò)程中,使用USB HOUND軟件截取USB總線上的通信數(shù)據(jù),然后對(duì)截取數(shù)據(jù)分析來(lái)驗(yàn)證USB主機(jī)和設(shè)備接口的數(shù)據(jù)通信是否成功。 驗(yàn)證結(jié)果表明,,該設(shè)計(jì)的USB設(shè)備接口IP核是符合USB協(xié)議規(guī)范要求的,能很好的實(shí)現(xiàn)USB數(shù)據(jù)通信的功能;如果想作為一個(gè)單獨(dú)的IP模塊嵌入到SoC系統(tǒng)設(shè)計(jì)中,還需要經(jīng)過(guò)更深層次和更專業(yè)的優(yōu)化,這里我們只討論了功能的實(shí)現(xiàn)。
[Abstract]:USB (Universal Serial bus) is a bus standard developed jointly by seven companies, Intel, Microsoft, IBM, Compaq, etc., which is a fast, low cost and easy to extend bus standard. It is also one of the most widely used interface protocols in electronic products. The emergence of USB bus standard which supports plug and play and hot plug function is of great significance to the development of information industry and computer. In view of the wide application, rapid development and economic benefit of USB, this paper designs an IP core of USB device interface, and discusses the design ideas and methods. This paper mainly discusses the design of USB device interface IP core. According to the design idea of complex digital logic circuit and system, in order to reduce the design complexity, after deeply studying the USB protocol, it is decided to adopt Top-Downtop-down design method in the design, and the IP core uses VerilogHDL to write code. In the design, we separate the sequential logic circuit from the combinational logic circuit, which can make the design thinking clearer and the overall structure easier to understand; in order to make the design easier to synthesize, Code writing must also follow an integrated style and focus on cross-clock domains. The paper mainly includes the following aspects: 1) studying and analyzing the USB protocol, analyzing the protocol standard and data transmission mode, according to the protocol content and the analysis result, putting forward the overall design scheme of USB device interface IP core based on FPGA, then dividing each function module. Divided into five modules: UTMI, controller, physical layer FIFO, memory interface and protocol layer. The three key modules in the design are physical layer module, controller module and protocol layer module. 2) write RTL level code with Verilog, complete the detailed design of each function module. Physical layer module mainly completes sampling asynchronous data flow and separating clock and data, analog differential signal and digital signal conversion; Controller module completes data transmission and enumeration of USB device; Protocol layer module has complex function. In order to realize the complex USB protocol, the design method of finite state machine (FSM) is used, and the protocol layer mainly completes the data packaging and unpacking. 3) the IP core of USB device interface is simulated by ModelSim SE and Quartus 鈪

本文編號(hào):1923235

資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1923235.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶b0cb1***提供,本站僅收錄摘要或目錄,作者需要?jiǎng)h除請(qǐng)E-mail郵箱bigeng88@qq.com