標題: X86相容微處理機驗證之自動測試程式產生器
Automatic Test Program Generator for X86 Compatible Microprocessor Verification
作者: 吳烈銘
Wu, Leih-Ming
王國禎
Kuochen Wang
資訊科學與工程研究所
關鍵字: 自動測試程式產生器;貝氏正規表示式;相容性驗證;由上而下的遞迴下降剖析方法;X86微處理機;automatic test program generator;BNF;compatibility verification;top-down recursive descent parsing method;X86 microprocessor
公開日期: 1997
摘要: 在本論文中,我們提出一種基於貝氏正規表示式的自動測試程式產生器的 設計方法,此產生器可以自動產生適於X86相容微處理機之由簡單到複雜 的測試程式。我們首先說明自動測試程式產生器的設計要點。這些要點包 括自動測試程式產生器的使用者控制部分、分支指令處理、資料相依性測 試、指令共存需求、有限制的程式大小,以及資料快速記憶體測試。我們 採用編譯器設計之由上而下的遞迴下降剖析方法,來解決這些設計要點所 面對的問題,並實作出一個自動測試程式產生器。我們的自動測試程式產 生器不僅可以產生隨機測試程式,也能夠針對使用者之輸入檔案來對某一 個特定模組產生特定順序的一些指令。這些測試程式對X86相容微處理機 的驗證是非常有用的。此外,由自動測試程式產生器所產生出來的測試程 式有以下的特點:沒有無限迴圈、不會進入非法狀態、可控制的資料相依 性、有彈性的程式大小,以及資料快速記憶體可測試。我們對產生出來的 測試程式所做的實驗評估顯示,此自動測試程式產生器的設計方法是有效 率且可行的。 A BNF-based method to automatically generate test programs from simple to complex ones for X86 compatible microprocessors is presented in this thesis. Design issues for an automatic test program generator (ATPG) are firstoutlined. They are user menu- driven ATPG, branch handling, test fordata dependency, instructions appearing together requirement, bounded program size, and test for data cache. We have resolved these design issues and implemented an ATPG by a top-down recursive descent parsing method which was originated from compiler design. Our ATPG can produce not only random test programs but also a sequence of instructions for a specified module to be tested by specifying different user menu-driven files. These test programs are very useful for verification of X86 compatible microprocessors. In addition, test programs generated by our ATPG have the features of no infinite loop, not entering illegal states, controllable data dependency, flexible program size, and data cache testable. Experimental evaluation of our test programs indicate that our method is efficient and feasible for the development of an ATPG.
URI: http://140.113.39.130/cdrfb3/record/nctu/#NT860394075
http://hdl.handle.net/11536/62908
顯示於類別:畢業論文