FPGA上連通元件分析之高效資源使用率硬體加速器設計與實現

A Resource-Efficient Hardware Accelerator for Connected Component Analysis on FPGA

檔案

日期

2024

類型

語言

中文

摘要

本論文利用遊程編碼(RLE)和廣度優先搜尋(BFS)的合併過程實現連通元件分析演算法,以減少在壓縮地址資料和搜尋相鄰標籤之間關連所需的邏輯單元數量。RLE可以將影像前景資訊以區段為單位記錄特徵值,我們在每個線段結束時才更新臨時標籤值,可以直接處理同區段上的等價關係,減短等價鏈的長度,特徵值與臨時標籤則儲存至BRAM。而標籤計數器同時扮演了臨時標籤值的依據與標籤值BRAM位址檢索的指標,因此,我們設計了僅需一位元的列緩衝器來判斷不同列間的相連性。BFS的標籤合併過程會等待影像光柵掃描結束再開始執行,與傳統演算法中水平消隱期與標籤列緩衝器相比,針對本論文所應用的1296×972尺寸之影像,可以分別減少4100千位元與8748位元的記憶體使用量。實驗結果展示上,我們採用科學數據銀行提供的天基光學星圖資料集,證明其在星空影像的物件偵測之功能正確性,並針對PPA(Power、Performance、Area)指標分別進行分析。隨著影像複雜度與解析度提升,功耗表現上可以穩定維持在平均1.64W。透過資源效率指標來判斷吞吐量與面積間的權衡,與最佳參考文獻比較,最高可提升1.77倍的使用效率。本論文的硬體架構相比於軟體的執行速度快了將近5倍,而整個星象儀系統的改善則達到將近14倍的提升。
This thesis implements a connected component analysis algorithm by combining Run-Length Encoding (RLE) and Breadth-First Search (BFS) processes to reduce the number of logic units required for compressing address data and searching for adjacent labels. RLE records foreground information of the image in segments, where feature values are updated only at the end of each segment. This approach directly handles equivalence within the seg-ment, shortening the length of the equivalence chains. Both feature values and temporary la-bels are stored in BRAM. The label counter serves as both the basis for temporary label val-ues and the index for retrieving label address locations. Therefore, we designed a row buffer that only requires one bit to determine the connectivity between different rows. BFS waits until the image raster scan is completed before execution. Compared to the horizontal blank-ing period and label row buffers in traditional algorithms, for an image size of 1296 × 972 ap-plied in this paper, memory usage can be reduced by 4100 kilobits and 8748 bits, respectively. In the experimental results, we use the space-based optical star dataset provided by the Sci-enceDB to verify the correctness. Additionally, we analyze the PPA indicators. As the image complexity and resolution increase, the power consumption remains stable at an average of 1.64W. By evaluating resource efficiency indicators to balance throughput and area, the usage efficiency can be improved by up to 1.77 times compared to the best reference literature. The hardware architecture in this paper is nearly 5 times faster than the software, while the overall improvement of the astronomical instrument system reaches nearly 14 times.

所屬典藏

電控工程研究所
顯示完整詮釋資料 統計資料

引用此條目

黃俊誠 (2024). FPGA上連通元件分析之高效資源使用率硬體加速器設計與實現. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/83449

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/83449