TWI220486B - Method for functional verification of hardware design - Google Patents

Method for functional verification of hardware design Download PDF

Info

Publication number
TWI220486B
TWI220486B TW92104177A TW92104177A TWI220486B TW I220486 B TWI220486 B TW I220486B TW 92104177 A TW92104177 A TW 92104177A TW 92104177 A TW92104177 A TW 92104177A TW I220486 B TWI220486 B TW I220486B
Authority
TW
Taiwan
Prior art keywords
hardware design
item
scope
simulation
test sample
Prior art date
Application number
TW92104177A
Other languages
Chinese (zh)
Other versions
TW200416570A (en
Inventor
Chih-Wen Lin
Original Assignee
Faraday Tech Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Faraday Tech Corp filed Critical Faraday Tech Corp
Priority to TW92104177A priority Critical patent/TWI220486B/en
Application granted granted Critical
Publication of TWI220486B publication Critical patent/TWI220486B/en
Publication of TW200416570A publication Critical patent/TW200416570A/en

Links

Abstract

A method for functional verification of hardware design. First, a first memory region storing a test pattern and a second memory region storing interrupt instructions are provided. Then, the test pattern stored in the first memory is hardware-simulated. If an external interrupt is received during the simulation of the test pattern, the second memory region is accessed and the interrupt instructions are hardware-simulated. Thereafter, the simulated result of the interrupt instructions is self-tested to obtain a first verification result, and the hardware design is verified according to the first verification result.

Description

1220486 五、發明說明(i) 發明所屬之技術領域 本發明係有關於一種硬體設計之驗證(Verification) 方法,且特別有關於一種可以支援分支(Branch)與中斷 (Interrupt)指令之硬體模擬的硬體設計之隨機功能驗證 方法。 先前技術1220486 V. Description of the invention (i) The technical field to which the invention belongs The present invention relates to a verification method for a hardware design, and particularly relates to a hardware simulation that can support Branch and Interrupt instructions Random function verification method of hardware design. Prior art

在開發半導體積體電路如大型積體電路(Large Scale Integrated circuit,LSI)的過程中,係利用一電腦輔助 設計(Computer Aided Design,CAD)工具來進行設計。如 此使用電腦輔助設計工具的設計環境也可以用在電子設計 自動化(Electronic Design Automation,EDA)環境。在 此包含電腦輔助設計工具的半導體開發過程中,期望之半 導體電路可以利用硬體描述語言(Hardware Description Language,HDL),如VHDL與Verilog來建立為大型積體電 路。 、 在大型積體電路的設計階段之後,實際的大型積體電 路裝置被送至半導體製造廠中製造(Tape 〇ut),且大型積 體電路產σ口被半導體測试糸統’如大型積體電路測試器進 行測試來決定是否此大型積體電路裝置可以適當地執行預 期的功能。大型積體電路測試器提供一測試樣本(Test Pattern)給大型積體電路裝置來測試,且將大型積體電路 裝置所輸出的結果與一期望的資料進行比對來判斷此大型 積體電路裝置是否是成功的。 為了較高等級功能性與密集地測試大型積體電路裝In the development of semiconductor integrated circuits such as Large Scale Integrated Circuits (LSIs), a computer aided design (CAD) tool is used for design. The design environment using computer-aided design tools can also be used in the Electronic Design Automation (EDA) environment. In this semiconductor development process that includes computer-aided design tools, it is expected that semiconductor circuits can be built as large integrated circuits using Hardware Description Language (HDL) such as VHDL and Verilog. After the design phase of the large-scale integrated circuit, the actual large-scale integrated circuit device is sent to a semiconductor manufacturing plant (Tape Out), and the large-scale integrated circuit production σ is tested by the semiconductor test system. The bulk circuit tester performs tests to determine whether this large scale integrated circuit device can properly perform the intended function. The large integrated circuit tester provides a test pattern to a large integrated circuit device for testing, and compares the output output of the large integrated circuit device with a desired data to determine the large integrated circuit device. Whether it was successful. For higher-level functionality and intensive testing of large integrated circuit devices

0697-8164twf(nl);p2002-016;yianhou.ptd 第5頁 1220486 五、發明說明(2) 置’應用至大型積體電路裝置之測試樣本必須相應地複雜 ^冗長,結果巨幅地導致工作的負荷與工作時間的增加來 =成此測試樣本。因此,當被測試之大型積體電路裝置被 只際製造時’尤其是具有較短生命週期之大型積體電路裝 置被實際製造時來產生測試樣本是不恰當的,因為將會導 致延誤其上市的時間。0697-8164twf (nl); p2002-016; yianhou.ptd Page 5 1220486 V. Description of the invention (2) Test samples applied to large-scale integrated circuit devices must be correspondingly complicated ^ lengthy, and the results greatly cause work The increase in load and working time comes to this test sample. Therefore, it is not appropriate to produce test samples when large integrated circuit devices being tested are manufactured only, especially when large integrated circuit devices with short life cycles are actually manufactured, as it will cause delays in their market launch. time.

因此’為了改善半導體積體電路整體的測試效率與生 產率’在半導體積體電路的實際測試中通常會使用透過一 軟體模擬器之指令所產生的資料。此軟體模擬器係用以評 估半導體電路之功能性。為了驗證一設計,必須提供包含 預期結果的可執行測試情節(S c e n a r i 〇 s )、倚靠軟體或硬 體設計模型來模擬這些測試情節、比對預期結果與由模擬 所貝際传到之結果、並評估測試情節的適當性與品質。 稱為隨機碼產生(Random Code Gene rat i on )之隨機測 試與微處理器變異(Vari ant )已經被廣泛地使用來驗證複 雜設計的正確性。所有隨機測試的一個關鍵型態係使用假 (Pseudo)隨機數目產生器來協助建立刺激來運作設計。隨 機測試產生器的有用與否直接地與測試情況的品質有關。 習知隨機碼產生之設計具有規則來限制測試中使用之 不可測性之數量,以避免不合法的情況且專注於設計中關 注的情況。純粹的隨機測試產生太多的非法情況且不能夠 徹底地著重於複雜的設計來滿足實際的情況。舉例來説, 分支與中斷係非常困難來應付的’因為分支位移為隨機地 且分支指令與其目標間的間隔間也充滿了並未執行的指Therefore, 'in order to improve the overall test efficiency and productivity of the semiconductor integrated circuit', in the actual test of the semiconductor integrated circuit, data generated through instructions of a software simulator is usually used. This software simulator is used to evaluate the functionality of semiconductor circuits. In order to verify a design, an executable test scenario containing expected results must be provided, software or hardware design models must be used to simulate these test scenarios, the expected results must be compared with the results transmitted by the simulation, And assess the appropriateness and quality of the test plot. Random tests called Random Code Gene rat i on and microprocessor variants (Variant) have been widely used to verify the correctness of complex designs. A key form of all random tests is the use of pseudo random number generators to assist in building stimuli to operate the design. The usefulness of the random test generator is directly related to the quality of the test situation. The design of the conventional random code generation has rules to limit the amount of untestability used in the test to avoid illegal situations and focus on situations that are of concern in the design. Purely random testing produces too many illegal situations and cannot focus thoroughly on complex designs to meet actual situations. For example, branches and interrupts are very difficult to cope with because the branch displacement is random and the interval between the branch instruction and its target is filled with unexecuted instructions.

0697-8164twf(nl);p2002-016;yianhou.ptd 第6頁 12204860697-8164twf (nl); p2002-016; yianhou.ptd Page 6 1220486

五、發明說明(3) 令,此外,也由於中斷的非同步本質,因此,確保正常1 息期間中斷訊息的正確優先處理順序,如鑑別程式部^ 非常重要的。 ° 發明内容 有鑑於此’本發明之主要目的為提供一種可以支援分 支與中斷指令的硬體設計之隨機功能驗證方法。 &刀 為了達成本發明之上述目的,可藉由本發明所提供之 硬體設計之隨機功能驗證方法來達成。V. Description of the invention (3) The order, in addition, because of the asynchronous nature of the interrupt, it is very important to ensure the correct priority processing order of the interrupt messages during the normal period of time, such as identifying the program department ^. ° SUMMARY OF THE INVENTION In view of this, the main purpose of the present invention is to provide a random function verification method for a hardware design that can support branch and interrupt instructions. & Knife In order to achieve the above purpose of the invention, it can be achieved by the random function verification method of the hardware design provided by the present invention.

依據本發明實施例之硬體設計之隨機功能驗證方法, 首先,提供一第一記憶體區域,用以儲存一測試^本 ' 與 一第二記憶體區域,用以儲存中斷指令。接著,將儲疒^ 第一記憶體區域中之測試樣本進行硬體模擬。 ::子 如果測試樣本進行模擬時接收到一外部中斷, a 憶體區域被存取且其中之中斷指令被進行硬體模 °己 後,中斷指令的模擬結果被自我測試來得到—第一給=社 果,且依據第一驗證結果來驗證硬體設計。 此外,當測試樣本模擬時接收到外部中 令數目的一標籤被設定。當硬體設計依據第一二 證之後,第-記憶體區塊被存取且由標 ;= 硬體模擬。接著’當測試樣本的模擬完成時, 應測試樣本之一第一模擬結果。 』Μ仟到 之後,得到測試樣本以軟體模擬之一 接著’比對第一模擬結果與第二模擬結果來得到一第: 證結果,且依據第二驗證結果來驗證硬體設計。According to the random function verification method of the hardware design of the embodiment of the present invention, first, a first memory area is provided for storing a test copy and a second memory area for storing interrupt instructions. Then, perform a hardware simulation on the test sample in the first memory area of the storage device. :: If the test sample receives an external interrupt while the simulation is in progress, a memory area is accessed and the interrupt instruction is executed in the hard mode. The simulation result of the interrupt instruction is obtained by self-test-first = Social fruit, and verify the hardware design based on the first verification result. In addition, a tag that receives the number of external commands when the test sample is simulated is set. After the hardware design is based on the first and second certificates, the -th memory block is accessed and marked by the; = hardware simulation. Then, when the simulation of the test sample is completed, the first simulation result of one of the samples should be tested. After the arrival of the test sample, one of the test samples is obtained by software simulation. Then, the first simulation result and the second simulation result are compared to obtain a first verification result, and the hardware design is verified based on the second verification result.

Claims (1)

41220486 六、申請專利範圍41220486 6. Scope of Patent Application 種硬體設計之隨機功能驗證方法,包括下列步 提供一第一記憶體區域,用以儲存一測試樣本; 提供一第二記憶體區域,用以儲存中斷指令; 硬體模擬儲存在該第一記憶體區域中之該測試樣本; )★如果該測試樣本進行模擬時接收到一外部中斷,存取 該第二記憶體區域且硬體模擬儲存於該第二記憶體區域中 之該中斷指令; 自我測試該中斷指令的一模擬結果,從而得到一第一 驗證結果;以及 依據該第一驗證結果來驗證一硬體設計。 2 ·如申請專利範圍第1項所述之硬體設計之隨機功能 驗證方法’更包括當該測試樣本模擬時接收到該外部中斷 時,没疋記錄一指令數目的一標籤。 3 ·如申請專利範圍第2項所述之硬體設計之隨機功能 驗證方法’更包括當該硬體設計依據該第一驗證結果驗證 之後’存取該第一記憶體區塊且由該標籤繼續硬體模擬該 測試樣本。 4·如申請專利範圍第3項所述之硬體設計之隨機功能 驗證方法’更包拾當該測試樣本模擬完成時,得到相應該 測试樣本之一第一模擬結果。 5·如申請專利範圍第4項所述之硬體設計之隨機功能 驗證方法,更包括得到該測試樣本以一軟體模擬器模擬之 一第二模擬結果。 口A random function verification method for hardware design includes the following steps: providing a first memory area for storing a test sample; providing a second memory area for storing interrupt instructions; and hardware simulation storing in the first The test sample in the memory area;) ★ if the test sample receives an external interrupt during simulation, access the second memory area and the hardware simulates the interrupt instruction stored in the second memory area; Self-test a simulation result of the interrupt instruction to obtain a first verification result; and verify a hardware design according to the first verification result. 2 • The random function verification method of the hardware design as described in item 1 of the scope of the patent application, further includes a tag that records a command number when the external interrupt is received while the test sample is being simulated. 3 · The random function verification method of the hardware design as described in item 2 of the scope of the patent application, further includes 'after the hardware design is verified according to the first verification result' access to the first memory block and the tag Continue hardware simulation of the test sample. 4. The random function verification method of the hardware design as described in item 3 of the scope of the patent application, furthermore, when the simulation of the test sample is completed, a first simulation result corresponding to one of the test samples is obtained. 5. The random function verification method of the hardware design as described in item 4 of the scope of the patent application, further including obtaining a second simulation result of the test sample simulated by a software simulator. mouth 0697-8164twf(nl);p2002-016;yianhou.ptd 第13頁 1220486 六、申請專利範圍 6.如申請專利範圍第5項所述之硬體設計之隨機功能 驗證方法,更包括下列步驟: 比對該第一模擬結果與該第二模擬結果’從而得到一 第一驗證結果;以及 依據該第二驗古咨夕士田 ^ 财€結果驗證該硬體設計。 7 ·如申明專利範圍第1項所述之硬體設計之隨機功能 驗證方法,更句紅β 必此人 匕括棱供一第三記憶體區域,用以儲存該中 Ά該:擬結果與該第-驗證結果。 私执女如申明專利範圍第7項所述之硬體設計之隨機功能 4:士 /去’ 5包括提供一第四記憶體區域,用以儲存該測 试樣本的該第一模擬結果。 申利範圍第1項所述之硬體設計之隨機功能 命第—1 11 §邊測試樣本模擬時被一分支指令跳到 玄第一^ 5己思體區域中的_ 憶體區域巾。 、—位置日守’轉移該位置至該第一記 I 0 ·如申請專利筋囹 驗證方法,更包括若有一第宜項所述之硬體設計之隨機功能 域且該寫入指令係於該^ =令係針對該第一 e憶體區 入指令。 測武樣本模擬時被要求,忽略該寫 II ·如申請專利節图错 驗證方法,更包括若有述之硬體設計之隨機功能 域且該讀出指令係於該測;2 t係t對該第二記憶體區 回應輸出給該讀出指令。111 7模擬時被要求,一既定值 卓員所述之硬體設計之隨機功能0697-8164twf (nl); p2002-016; yianhou.ptd Page 13 1220486 6. Application for patent scope 6. The method for random functional verification of hardware design as described in item 5 of the scope of patent application, including the following steps: A first verification result is obtained for the first simulation result and the second simulation result; and the hardware design is verified according to the second ancient inspection result. 7 · The method of random function verification of the hardware design described in item 1 of the declared patent scope, let alone the red β must be used for a third memory area to store the following: The first-verified result. The self-employed woman stated the random function of the hardware design as described in item 7 of the patent scope 4: taxi / go '5 includes providing a fourth memory area for storing the first simulation result of the test specimen. The random function of the hardware design described in item 1 of the claim range. Order No. -11 1 § The edge test sample was jumped to a _ memory body area in the body area of Xuan first ^ 5 by the branch instruction during simulation. 、 —The position of the day guard 'transfers the position to the first record I 0 · If a patent verification method is applied for, it also includes if there is a random functional domain of the hardware design described in item 1 and the write instruction is in the ^ = Order is the first e-memory region entry instruction. The test samples are required to be simulated when ignoring the writing II. If the method of verifying the patent application for the patent section, the method also includes the random functional domain of the hardware design and the read instruction is in the test; 2 t is t pair The second memory area responds to the read command. 111 7 Requested during simulation, a set value Random function of hardware design as described by the mentor 0697-8164twf(nl);p2002-016;yianhou.ptd 第14頁 1 2 ·如申δ青專利範圍篆1 1220486 六、申請專利範圍 驗證方法,其中該中斷指令為自我測試中斷服務程序。 1 3 .如申請專利範圍第1項所述之硬體設計之隨機功能 驗證方法,其中該測試樣本係由一隨機碼產生器產生。0697-8164twf (nl); p2002-016; yianhou.ptd Page 14 1 2 · If you apply for δ green patent scope 篆 1 1220486 VI. Patent scope verification method, where the interrupt instruction is a self-test interrupt service routine. 13. The method for verifying the random function of the hardware design as described in item 1 of the scope of the patent application, wherein the test sample is generated by a random code generator. 0697-8164twf(nl);p2002-016;yianhou.ptd 第15頁0697-8164twf (nl); p2002-016; yianhou.ptd p. 15
TW92104177A 2003-02-27 2003-02-27 Method for functional verification of hardware design TWI220486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW92104177A TWI220486B (en) 2003-02-27 2003-02-27 Method for functional verification of hardware design

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW92104177A TWI220486B (en) 2003-02-27 2003-02-27 Method for functional verification of hardware design

Publications (2)

Publication Number Publication Date
TWI220486B true TWI220486B (en) 2004-08-21
TW200416570A TW200416570A (en) 2004-09-01

Family

ID=34076004

Family Applications (1)

Application Number Title Priority Date Filing Date
TW92104177A TWI220486B (en) 2003-02-27 2003-02-27 Method for functional verification of hardware design

Country Status (1)

Country Link
TW (1) TWI220486B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI461945B (en) * 2009-01-29 2014-11-21 Synopsys Inc Method and apparatus for performing abstraction-refinement using a lower-bound-distance

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI461945B (en) * 2009-01-29 2014-11-21 Synopsys Inc Method and apparatus for performing abstraction-refinement using a lower-bound-distance

Also Published As

Publication number Publication date
TW200416570A (en) 2004-09-01

Similar Documents

Publication Publication Date Title
US7941774B2 (en) Partial timing modeling for gate level simulation
US8161440B2 (en) Highly specialized scenarios in random test generation
US9026966B1 (en) Co-simulation methodology to address performance and runtime challenges of gate level simulations with, SDF timing using emulators
JP2002215712A (en) Method of verifying ic design
US20060130029A1 (en) Programming language model generating apparatus for hardware verification, programming language model generating method for hardware verification, computer system, hardware simulation method, control program and computer-readable storage medium
JP5263904B2 (en) IC structure simulation speed improvement during scan circuit test
US8732632B1 (en) Method and apparatus for automated extraction of a design for test boundary model from embedded IP cores for hierarchical and three-dimensional interconnect test
US10073933B2 (en) Automatic generation of properties to assist hardware emulation
US11789077B2 (en) Single-pass diagnosis for multiple chain defects
TWI220486B (en) Method for functional verification of hardware design
JP2009140222A (en) Power estimation method for lsi, and apparatus thereof
US8065641B2 (en) Automatically creating manufacturing test rules pertaining to an electronic component
US7058557B2 (en) Method for functional verification of hardware design
US7051301B2 (en) System and method for building a test case including a summary of instructions
US7653519B1 (en) Method and mechanism for modeling interconnect structures for integrated circuits
Sethulekshmi et al. Verification of a risc processor ip core using systemverilog
Anghel et al. Self-test library generation for in-field test of path delay faults
US11740288B1 (en) Localization of multiple scan chain defects per scan chain
Reinbrecht et al. Applying in education an FPGA-based methodology to prototype ASIC soft cores and test ICs
US8869080B2 (en) Automatically identifying resettable flops for digital designs
Hashempour et al. An integrated environment for design verification of ATE systems
Bruce et al. Re-useable hardware/software co-verification of IP blocks
Geppert Design tools for analog and digital ICs
Hussin et al. Automatic generation of test instructions for structural faults in processor cores using satisfiability
Guarnieri et al. Reduced-complexity transition-fault test generation for non-scan circuits through high-level mutant injection

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees