簡易檢索 / 詳目顯示

研究生: 林嘉和
CHIA-HO LIN
論文名稱: 以FPGA為基礎之嵌入式視覺平台實作
Designing a FPGA-based Embedded Vision System
指導教授: 許孟超
Mon-chau Shie
口試委員: 阮聖彰
Shanq-jang Ruan
林昌鴻
Chang-hong Lin
吳晉賢
Chin-Hsien Wu
林淵翔
Yuan-Hsiang Lin
學位類別: 碩士
Master
系所名稱: 電資學院 - 電子工程系
Department of Electronic and Computer Engineering
論文出版年: 2013
畢業學年度: 101
語文別: 中文
論文頁數: 73
中文關鍵詞: FPGA偵測定位SoPCX-Y Table步進馬達
外文關鍵詞: FPGA, Detection, Location, SoPC, X-Y Table, Step Motor
相關次數: 點閱:254下載:11
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報

影像處理在工業界的應用日漸普及,有越來越多的企業導入視覺檢測與定位系統來提高生產效率及降低錯誤發生率。以系統硬體來說,可以使用工業電腦、 ARM-based硬體或是 FPGA-based硬體等三種平台為基礎。其中工業電腦的應用必須搭配影像擷取卡,ARM-based平台所用 CPU 可以提供影像輸出入功能,FPGA-based硬體則是以 Verilog 開發硬體來搭配影像輸出入晶片, FPGA-based硬體有較大開發彈性以及所需零件少等優點,因此我們選用做為開發平台。
我們曾經使用市面上適用的 FPGA-based 開發平台如友晶科技的 DE2-70,因為該開發板同時提供了兩組 Video in 以及一組 VGA out。然而該產品已停產,且 LE ( logic element )數目達 70,000個。其後繼的DE2-115及其他開發板並未提供兩組 Video in,加上 DE2 系列的定位是發展與教育用,很多的功能如 Audio、LCD以及SMA在嵌入式視覺平台並不會用到,因此以適當LE 數目的 FPGA為基礎,自行來開發一片符合嵌入式視覺平台需求的發展板是比較可行的方式。
除了 FPGA 本身,外部記憶體如 Flash和 SDRAM對於嵌入式視覺平台的應用上也扮演很重要的角色,如何確保外部記憶體的穩定與高速運行,成為在開發此平台時的重要課題。但現有文獻與書籍大多只有描述架構,鮮少提及開發與設計細節,這也成為在開發此平台上的另一挑戰。


The embedded visual system is widely used in industries. It might use an industrial PC, an ARM-based or a FPGA-based hardware as its platform. If we use an industrial PC, a frame grabber card is needed. The CPU of an ARM-based platform can handle the video input and output. The FPGA-based platform needs the Verilog and the video decoder for the functions. With flexibility on design and fewer parts needed, the FPGA-based platform is chosen as our platform.
We used the DE2-70 ( with two video inputs and one VGA output, by Terasic technology ) to develop in past projects. But now it was end of life, and it came with 70,000 LEs ( logic elements ). The successors ( like DE2-115) do not have the same features. Being positioned to development and education, there are many features like Audio, LCD, and SMA came with DE2 series. But those are not needed for developing an embedded visual system. It is a better way to develop a customized FPGA-based board to meet the requirements of the embedded vision system.
Aside from the FPGA itself, the usage of external memories like Flash and SDRAM are critical for the application. It is important to ensure both the running speed and stability when developing the board. These details for design were rarely mentioned in existing papers and books, which has become another challenge on the board’s development.

論文摘要 4 Abstract 5 誌謝 6 目錄 7 圖索引 9 表索引 11 第一章 序論 12 1.1 動機 12 1.2 章節架構 16 第二章 相關知識 18 2.1 FPGA 18 2.2 SoPC技術 18 2.3 Altera NIOS II處理器 19 2.4 Avalon Bus 21 第三章 開發平台與目標 23 3.1 開發平台與設備 23 3.1.1 影像輸入設備 23 3.1.2 FPAG開發平台 24 3.1.3 外部記憶體 28 3.1.4 待測物載具 40 3.2 目標 42 3.2.1 偵測物件 42 3.2.2 實驗流程與目標 43 第四章 硬體架構 45 4.1 系統架構 45 4.1.1 影像輸出入架構 45 4.1.2 系統方塊圖 47 4.1.3 系統連接圖 48 4.2 ITU656 Decoder模組 50 4.3 Video Input模組(影像輸入) 51 4.4 VGA Controller模組(影像輸出) 53 4.5 Detect Module(偵測模組) 56 4.6 FPGA資源與記憶體頻寬分析 58 4.7 系統建立與整合 59 4.8 硬體架構結論 61 第五章 軟體演算法設計 62 5.1 偵測演算法 62 5.1.1 錯誤的判斷 62 5.1.2 八點判斷法 63 5.2 名詞定義與例外狀況 64 5.3 移動逼近法 66 5.3.1 演算法流程圖 66 5.3.2 移動逼近法實例 68 第六章 結論與未來展望 71 參考文獻 72

[1] Rafael C. Gonzalez and Richard E. Woods,“Digital Image Processing”,3rd Edition,Prentice-Hall,2007.
[2] Michael D. Ciletti,“Advanced Digital Design with the VERILOG HDL”,2nd Edition, Prentice-Hall,2010.
[3] Samir Palnitkar,“Verilog HDL: A Guide to Digital Design and Synthesis”,2nd Edition,Prentice-Hall,2003.
[4] Andreas Koschan and Mongi Abidi,“Digital Color Image Processing”,1st Edition, John Wiley,2008.
[5] 鐘國亮,“影像處理與電腦視覺”,5th Edition,東華書局,2012
[6] 鄭信源,“Verilog 硬體描述語言數位電路”,6th Edition,儒林出版社,2007
[7] 周立功,“SOPC嵌入式系統實驗教程”,北京航空航天大學出版社,2006
[8] 李藝英,“Nios II嵌入式軟核SOPC設計原理與應用”, 北京航空航天大學出版社,2006
[9] 周博、邱衛東、陳燕、周學功、方茁,“以 NIOS 為基礎的 SOPC 設計與實作”,全華出版社,2005
[10] 鄭子凡,“以多組CMOS感測器實現高速攝影系統之SOPC硬體架構”,國立台灣科技大學電子工程系碩士論文,2007
[11] 陳首元,“基於SOPC平台之相機陣列式高速攝影系統軟體架構及影像校正設計”, 國立台灣科技大學電子工程系碩士論文,2007
[12] 王佳鴻,“以TI DM6446 DSP實現且最佳化H.264之移動向量估計”, 國立台灣科技大學電子工程系碩士論文,2007
[13] 蔡昇達,“以SoPC 為基礎之自動化視覺檢測與定位系統”, 國立台灣科技大學電子工程系碩士論文,2009
[14] “Quartus II Handbook”, Version 12.1, Altera Corporation, Nov. 2012.
[15] “Configuration Handbook”, Altera Corporation, Jun. 2011.
[16] “Avalon Interface Specifications”, Altera Corporation, May. 2011.
[17] “Nios II Software Developer’s Handbook”, Altera Corporation, May. 2011.
[18] “Nios II Processor Reference Handbook”, Altera Corporation, May 2011.
[19] “Cyclone III Device handbook”,Version CIII5V1-4.2,Altera Corporation,Aug. 2012.
[20] “ADV7180 : SDTV Video Decoder Datasheet”,Version G,ANALOG DEVICE,2012.
[21] “ADV7123 : Triple 10-Bit High Speed Video DAC Datasheet”,Version D, ANALOG DEVICE,2010.
[22] “Stellaris LM3S9B92 Microcontroller Datasheet”,TEXAS INSTRUMENTS INCORPARTED,Jan 2012.
[23] “W98256GJH : 4M x 4 BANKS x 16 BITS SDRAM”,WINBOND, Nov 2011.
[24] “W29GL128C : 128M-BIT 3.0-VOLT PARALLEL FLASH MEMORY WITH PAGE MODE”,WINBOND, Aug 2012.
[25] “CY7C1089DV33 : 64-Mbit (8M x 8) Static RAM”,CYPRESS Semiconductor Corporation, Feb 2011.
[26] “PC SDRAM Specification”,Revision 1.7,INTEL Corporation, Nov 1999.
[27] VGA Timing, http://www.epanorama.net/documents/pc/vga_timing.html
[28] 丁文初,“數位影像介面概論”,
http://ee.chit.edu.tw/V2/91-93各類講座資料/051222丁文初/20051222_數位影像介面概論.ppt
[29] “ITU-R BT.656-4”,http://inst.eecs.berkeley.edu/~cs150/Documents/ITU656.PDF
[30] “HP D1194A Super VGA Display & HP D1195A Ergonomic Super VGA Display Installation Guide“,HP,May 1991.

QR CODE