現今的SoC上,由於電路設計的複雜度與日俱增。所以在測試上相對產生龐大的測試相應資料量,在此資料量中未知向量所佔的比率已經非常的高。用傳統的測試方法過度消耗時間、浪費空間,或者壓縮過後造成失真、不易診斷等問題,本篇論文將提出一個解決方法。 在可測試(DFT)的SoC上,經由ATPG產生測試樣本後,我們會將測試反饋的樣本資料中的未知向量經由遮罩後,再對控制遮罩的控制碼加以壓縮,其中會使用到自動化測試設備(ATE)的重複功能。此方法可以不變動輸出響應,將要作比對的資料壓縮後傳輸在做比對,因為壓縮後資料量變少,可以節省記憶體空間,也可以節省硬體面積。同時也因為沒有改變資料內容,也不會有失真的問題,可以達到完全偵錯。 Reducing test application time and test data volume are major cost factor in SoC design. Currently, scan-based testing is widely adopted on SoC test, a large number of scan cells coupled with a large number of scan patterns have inflated test data volume and test application time. To reduce the test cost, test data compression solutions are used. In general solution, a few number of scan-in channels drive a large number of internal scan chains through decompressor, while the responses collected from the internal scan chains are taken through compactor that drives a few number of scan-out channels. There are many unknown x-bits are generated and collected into compactor after testing, it will be increased the test time and difficulty that the ATE (Automatic Test Equipment) judges. In this paper, we propose a method to fill fixed value into these unknown x-bits of internal scan chains output and then output to compactor. The method is performed prefix aim at the test data of internal scan chains output and then utilize ATE vector repeat function to compress the test data reducing the test data volume that stored in the ATE vector memory.