簡易檢索 / 詳目顯示

研究生: 古濱鴻
Ku, Pin-Hung
論文名稱: 具有高速乙太網路單元之186相容處理器 單晶片系統設計
A Single Chip Design of a 186 Compatible Embedded Processor with Fast Ethernet MAC unit
指導教授: 陳中和
Chen, Chung-Ho
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 電機工程學系
Department of Electrical Engineering
論文出版年: 2002
畢業學年度: 90
語文別: 中文
論文頁數: 72
中文關鍵詞: 高速乙太網路
外文關鍵詞: Ethernet
相關次數: 點閱:48下載:1
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 隨著網際網路的廣泛應用,單單具有處理、運算的功能,已經不敷使用,所以本論文研製了一個符合IEEE 802.3 CSMA/CD protocol 乙太網路存取介面的186相容指令之嵌入式單晶片處理器,由於這個單晶片是屬於嵌入式的微處理器,所以乙太網路媒介存取控制晶片,可以傳送直接來自晶片上週邊匯流排欲傳送的資料封包經由MII介面,再傳送到實體層,相反地,則是接受由實體層到MII介面的封包資料,乙太網路存取控制再透過晶片週邊匯流排將資料搬移到系統記憶體中。
    在我們的設計中,首先我們先設計一個符合IEEE 802.3標準,同時支援半雙工與全雙工傳送與接收模式的控制晶片,特別是我們在傳送與接收端各配置了二千個位元組的先入先出的記憶體,以為了避免晶片週邊匯流排的頻寬消耗。接著我們將這個乙太網路存取控制晶片整合入一個嵌入式微處理器中,使之成為一個系統單晶片,透過嵌入式微處理器中的直接記憶體存取控制器與中斷控制器,緊緊的整合運作。然後我們以硬體與軟體共同驗證的方式尋找出硬體與軟體的相依性,並將我們的驅動程式載入full HDL system model中,更精確的來驗證我們所製作的系統單晶片。最後經由FPGA demo board,透過實際的網路傳輸線,驗證MAC unit 封包傳送與接收的正確性。

    In this thesis, we present a single chip design of a 186 compatible embedded processor with fast Ethernet MAC unit that complies with IEEE 802.3 CSMA/CD protocol. On transmitting, this chip aggregated a valid data frame from the On-chip Peripheral Bus (OPB) to Media Independent Interface (MII) and passed to Physical Layer (PHY). On receiving, the PHY assembled the serial data and passed it to MII. The MAC unit assembled the nibble data into an FIFO and passed it to system memory by the OPB.
    We design a MAC unit that supports both full duplex and half duplex mode to transmit and receive frame data. It also supports flow control mode that complies with IEEE 802.3 standard. In order to save OPB bandwidth, we put 2K-byte FIFO into transmit and receive block respectively. Through the DMA controller and interrupt controller of the embedded processor, the MAC unit is incorporated tightly with the processor. Then we look for the dependencies between the hardware and software by hardware/software co-verification model. We put all of our hardware and software designs into a full HDL system model for verification. At last, we use FPGA demo board to transmit and receive frame data through the physical layer chip to verify our design.
    The thesis describes the architecture of the processor and media access control protocol of the Ethernet MAC unit. Finally, we show the simulation result and evaluation analysis and implementation result.

    Chapter 1. 序論 1 1.1 緣起 1 1.2 動機與目標 1 1.3 本篇論文之貢獻 2 1.4 章節介紹 2 Chapter 2. 背景知識介紹 3 2.1 MAC frame structure 3 2.2 CSMA/CD Media Access Control 精確描述 5 2.2.1 IEEE 802.3 CSMA/CD 組織架構 5 2.2.2 Frame transmit process 6 2.2.3 Bit transmit process 9 2.2.4 Frame receive process 10 2.2.5 Bit receive process 12 2.3 流量控制 13 2.3.1 Pause Frame 描述 13 2.3.2 Pause frame format 14 2.4 如何設計一個SOC單晶系統 14 2.5 總結 17 Chapter 3. 系統設計 18 3.1 系統架構 18 3.2 Ethernet MAC Architecture 19 3.2.1 Host Interface 20 3.2.2 Media independent interface 21 3.3 Function description 22 3.3.1 Tx MAC block 22 3.3.2 Rx MAC block 26 3.3.3 Flow control block 29 3.3.4 Station management block 32 3.3.5 FIFO block 34 3.3.6 Control/Status Registers Block 35 3.4 如何讓MAC unit動作 43 3.5 總結 44 Chapter 4. 系統實作的方法以及成果 45 4.1 SOC challenges 45 4.1.1 Test Methodologies 45 4.1.2 Co-verification models 46 4.2 MAC device driver 48 4.3 Function simulation 50 4.3.1 Tx MAC and host interface 51 4.3.2 Transmit frame 52 4.3.3 Transmission in half-duplex with collision 54 4.3.4 Receive frame 55 4.3.5 Rx MAC and host interface 57 4.3.6 Receive frame with address error 58 4.3.7 Receive frame with FCS error 59 4.3.8 Receive frame with RXERR error 60 4.3.9 Control frame 61 4.4 Verification 65 4.4.1 Implementation flow 65 4.4.2 Gate count 66 4.5 FPGA Prototyping 66 4.5.1 環境設定與封包內容 67 4.6 總結 68 Chapter 5. 結語與未來工作 69 5.1 結語 69 5.2 未來工作 69

    References

    [1] IEEE Std.802.3, 1998 Edition.
    [2] Advances Micro Devices , “Am186ES/ESLV and Am188 ES/ESLV,” Data Sheet, Feb. 2000
    [3] Samsung Electronics, “KS32C50100 High Performance Network Controller,” Users Manual, Feb. 2000.
    [4] Jing-Fei Ren and R. Landry,“Flow Control and Congestion Avoidance in Switched Ethernet LANs,” Communications, 1997. ICC '97 Montreal, Towards the Knowledge Millennium. 1997 IEEE International Conference on , Vol. 1 , 1997.
    [5] C. H. Chen, M. H. Sheu, M. D. Shieh, T. S. Li, and M. C. Chen, “Design and Implementation of a 10/100 Mbps Ethernet Switching Hub Controller,” Proceeding of the IEEE Asia Pacific Conference on Communications, 1998.
    [6] M. H. Shue, C. H. Chen, M. D. Shieh, and T. S. Li, “A High Performance VLSI Architecture Design for 10/100 Mbps Ethernet Switching Fabric,” Digest of Technical Papers, 1998.
    [7] M. C. Chen, I. J. Huang, and C. H. Chen, “Parameter MAC Unit Implementation,” Design Automation Conference, 2001.
    [8] M. D. Shieh, M. H. Shue, C. H. Chen, and H. F. Lo, “A systematic Approach for Parallel CRC Computations,” Journal of Information Science and Engineering, Vol.17, pp. 445-461, 2001.
    [9] T. B. Pei and C. Zukowski, “High-Speed Parallel CRC Circuits in VLSI,” Communications, IEEE Transactions on , Vol. 40 Issue: 4 , April 1992
    [10] Intel, “M80C186 CHMOS HIGH INTEFRATION 16-BIT MICROPROCESSOR,” Data Sheet, Feb. 2000.
    [11] Rajesh Nair, Gerry Ryan and Farivar Farzaneh,“A Symbol Based Algorithm for Hardware Implementation of Cyclic Redundancy Check ( CRC )“, Bay NetWorks, INC.,Santa Clara, 95052, 1997.
    [12] Turbo86/Turbo186 Specification and Data Sheet, March, 2000.
    [13] VT86C100A PCI Fast Ethernet Controller Data Sheet, VIA Technologies, INC. Aug 31, 1997.
    [14]“R1320 FAST ETHERNET RISC PROCESSOR ”, Users Manual, RISC DSP Communication Semiconductor Co., Ltd Feb. 2002.
    [15]“ Practical Approaches to SOC Verification,”Guy Mosensoson Verisity Design, Inc.
    [16]Terminology by courtesy of Bob Morasse,”Effective use of various levels of system abstractions within a HW/SW co-verification development,”class 545 Embedded Systems Conference.
    [17] A. S. Tanenbaum, “Computer Networks,” 3rd, Prentice-Hall, INC., 1996.
    [18] 陳銘志,陳中和,“10/100 Mbps乙太網路橋接器之微架構設計和集線器系統之研製,”,第十三屆全國技術及職業教育研討會論文集,1998年5月。
    [19] 陳銘志,”10/100 Mbps乙太網路集線控制器之研製和效能量測”,雲林科技大學電子與資訊工程技術研究所碩士論文,1999年2月。
    [20] 黃能富,”區域網路與高速網路”,維科出版社,1998年6月。
    [21] DEC chip 21140 PCI Fast Ethernet LAN Controller Hardware Reference Manual, Version 2.1, Digital Equipment Corporation.
    [22] IEEE 802.3 CSMA/CD (ETHERNET) Home Page
    URL: http://grouper.ieee.org/groups/802/3/index.html

    下載圖示 校內:2003-07-24公開
    校外:2003-07-24公開
    QR CODE