本論文提出以場規劃邏輯閘陣列 (Field Programmable Gate Array, FPGA)控制器實現通用序列匯流排 (Universal Serial Bus, USB)傳輸架構之研究。USB目前已廣泛應用在各種資訊領域中,其通訊協定可分為四種模式。第一種為控制傳輸,主要以控制型態來傳輸資料,資料可由主機傳輸至裝置或由裝置傳輸至主機。第二種為巨量傳輸,主要用以傳輸大量資料流量。第三種為等時傳輸,其速度雖維持一定但不保證資料傳輸之正確性。第四種為中斷傳輸,資料僅可由裝置傳輸至主機,但資料傳輸錯誤時可要求重新傳送。 另外,FPGA相較於傳統的可程式控制器 (Programmable Logic Controller, PLC)與PC-Based的程式,確實將程式的設計、驗證、除錯、實作與執行監控等系統發展與應用階段整合在同一個環境中,有效簡化發展時程與通暢的管道,並主動提供故障信號分析與循跡錯誤行列附加在控制系統當中,因此比PLC與PC-Based控制器更具有彈性與經濟效益,所以FPGA控制系統會成為新一代數位控制系統發展的主流之一。 本論文利用兩套FPGA開發板進行實驗,並採用超高速集成電路硬體描述語言 (Very-High-Speed Integrated Circuit Hardware Description Language, VHDL)以實現各種USB通訊模式,達到正確且快速的傳輸資料,實驗結果顯示控制傳輸、巨量傳輸、等時傳輸與中斷傳輸四種通訊協定皆可以正確實行,確定本論文建構之FPGA控制系統是一個很完整、很穩定的控制架構。 關鍵詞:場規劃邏輯閘陣列,通用序列匯流排,超高速集成電路硬體描述語言
The thesis applies the field programmable gate array (FPGA) to implement the communication protocols of universal serial bus (USB). The communication protocols have four types. The first type is control transfer, and the data can be transferred from the host to the device or from the device to the host. The second type is bulk transfer, and it is used for transferring huge data. The third type is isochronous transfer. In this type, the transfer speed is constant, but the correctness of the data cannot be ensured. The final type is interrupt transfer, and the data are only transferred from the device to the host. But when the communication error occurs, the data can be transferred again. In contrast to the programmable logic controller (PLC), the FPGA combines design, debug, implementation, and supervision into a develop environment. The development time can be reduced, and the supervision system can be added in the system. Therefore, FPGA produces more economic benefits than PLC and PC-Based controller, and the FPGA has become a popular digital control development system. To verify the feasibility of the system, two FPGA are used in the test. The system is developed by the very-high-speed integrated circuit hardware description language (VHDL) to implement the USB communication protocol. Test results exhibit that control transfer, bulk transfer, isochronous transfer and interrupt transfer are all executed very well. Keywords: field programmable gate array (FPGA), universal serial bus (USB),very-high-speed integrated circuit hardware description language (VHDL)