TW202427257A - Method for generating register verification code file and integrated circuit design verification system applied to an integrated circuit design verification system comprising a verification platform and a control unit - Google Patents
Method for generating register verification code file and integrated circuit design verification system applied to an integrated circuit design verification system comprising a verification platform and a control unit Download PDFInfo
- Publication number
- TW202427257A TW202427257A TW111149981A TW111149981A TW202427257A TW 202427257 A TW202427257 A TW 202427257A TW 111149981 A TW111149981 A TW 111149981A TW 111149981 A TW111149981 A TW 111149981A TW 202427257 A TW202427257 A TW 202427257A
- Authority
- TW
- Taiwan
- Prior art keywords
- register
- verification
- file
- code file
- verification code
- Prior art date
Links
- 238000012795 verification Methods 0.000 title claims abstract description 122
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012942 design verification Methods 0.000 title claims abstract description 17
- 238000012360 testing method Methods 0.000 claims abstract description 55
- 238000004088 simulation Methods 0.000 claims abstract description 20
- 238000012552 review Methods 0.000 claims description 27
- 230000006870 function Effects 0.000 claims description 5
- 238000007689 inspection Methods 0.000 abstract description 3
- 238000013461 design Methods 0.000 description 8
- 230000008901 benefit Effects 0.000 description 5
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 4
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 4
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Images
Landscapes
- Design And Manufacture Of Integrated Circuits (AREA)
Abstract
Description
本發明為積體電路之設計驗證的相關技術領域,尤指一種寄存器驗證代碼文件生成方法。The present invention relates to the technical field of integrated circuit design verification, and more particularly to a method for generating a register verification code file.
隨著消費性電子產品和車用電子產品對於積體電路晶片的功能性要求的不斷提高,積體電路晶片所包含的電路集成規模也越來越大,導致電路複雜程度也越來越高。因此,隨著電路集成規模越來越大,一個積體電路晶片通常會包含複數個電路模塊,分別由不同的工程師負責設計。熟悉積體電路晶片之設計開發的電子工程師應知道,一個積體電路晶片的項目開發係包括以下幾個階段:產品規劃階段、設計與模擬驗證階段、design flow階段、以及晶片製造與測試階段。其中,在設計與模擬驗證階段,工程師首先利用Verilog完成其負責設計的電路模塊之RTL電路設計(即,RTL coding),並接著利用一積體電路設計驗證系統執行模擬驗證以檢查RLT coding的正確性。As the functional requirements for integrated circuit chips in consumer electronics and automotive electronics continue to increase, the scale of circuit integration contained in integrated circuit chips is getting larger and larger, resulting in higher and higher circuit complexity. Therefore, as the scale of circuit integration becomes larger and larger, an integrated circuit chip usually contains multiple circuit modules, which are designed by different engineers. Electronic engineers who are familiar with the design and development of integrated circuit chips should know that the project development of an integrated circuit chip includes the following stages: product planning stage, design and simulation verification stage, design flow stage, and chip manufacturing and testing stage. In the design and simulation verification stage, engineers first use Verilog to complete the RTL circuit design (i.e., RTL coding) of the circuit module they are responsible for designing, and then use an integrated circuit design verification system to perform simulation verification to check the correctness of the RTL coding.
具體而言,一個積體電路晶片包含複數個寄存器,作為複數個電路模塊之間的交互接口。因此,對特定的電路模塊進行模擬驗證時,係通常執行:(1) 通過讀出寄存器的當前值以確認測試中的電路模塊(DUT)的當前狀態;及/或(2)通過對寄存器進行配置,從而使測試中的電路模塊工作在一定模式下。因此,在單次模擬驗證的過程中,必須多次地對一個或多個寄存器進行讀操作和寫操作。Specifically, an integrated circuit chip contains a plurality of registers that serve as the interactive interface between a plurality of circuit modules. Therefore, when performing simulation verification on a specific circuit module, it is usually performed by: (1) confirming the current state of the circuit module under test (DUT) by reading the current value of the register; and/or (2) configuring the register so that the circuit module under test works in a certain mode. Therefore, in a single simulation verification process, one or more registers must be read and written multiple times.
目前,現有技術已經實現了寄存器驗證的自動化。舉例而言,目前已有一種寄存器自動化驗證方法可在某種程度上減輕驗證工程師的工作負擔。在該習知的寄存器自動化驗證方法之中,係由用戶(即,系統工程師)負責填寫一寄存器描述文件的Excel文檔,接著利用一代碼文件生成腳本依據所述寄存器描述文件生成一寄存器驗證代碼文件(.ralf),而後依據該寄存器驗證代碼文件生成一RAL模型(.sv),最終由驗證平台(test bench)通過該RAL模型對特定的電路模塊進行模擬驗證。然而,實務經驗指出,由於寄存器描述文件是由系統工程師所填寫,因此寄存器描述文件係無法避免會包含錯誤的內容。At present, the existing technology has realized the automation of register verification. For example, there is currently a register automation verification method that can reduce the workload of verification engineers to a certain extent. In the known register automation verification method, the user (i.e., system engineer) is responsible for filling out an Excel document of a register description file, and then using a code file to generate a script to generate a register verification code file (.ralf) based on the register description file, and then generating a RAL model (.sv) based on the register verification code file, and finally the verification platform (test bench) performs simulation verification on a specific circuit module through the RAL model. However, practical experience shows that since the register description file is filled out by the system engineer, it is inevitable that the register description file will contain erroneous content.
舉例而言,一個寄存器的數據寬度和地址範圍分別為8bit與16bit,但是系統工程師在填寫該寄存器的描述文件時,填錯了其數據寬度或地址範圍的數值。再舉例而言,實務上單個寄存器可以被拆分為多個寄存器域,不同的域往往代表著某一項獨立的功能,例如:WO(write-only,只寫)、RO(read-only,只讀)、RW(read and write,讀寫)、或Reserved(保留)。因此,在填寫每個域的bit頭與bit尾(即,起始位元和終止位元)時,也極容易發生人為錯誤,如填寫不連續。For example, the data width and address range of a register are 8 bits and 16 bits respectively, but when the system engineer fills in the description file of the register, he fills in the wrong value of the data width or address range. For another example, in practice, a single register can be divided into multiple register domains, and different domains often represent a certain independent function, such as: WO (write-only), RO (read-only), RW (read and write), or Reserved. Therefore, when filling in the bit header and bit tail (i.e., the start bit and the end bit) of each domain, it is also very easy to make human errors, such as filling in discontinuously.
易於想像的,若設計上有需求將上千個寄存器組成一個寄存器模塊之時,系統工程師在編輯該寄存器模塊的寄存器描述文件之後必然會出現非常多的錯誤內容。在此情況下,即使利用所述代碼文件生成腳本仍舊可以成功地依據寄存器描述文件生成一寄存器驗證代碼文件(.ralf),該寄存器驗證代碼文件顯然也不是正確的,從而導致最後生成的RAL模型不會百分百對應待測積體電路(DUT)所包含的硬體寄存器。在此情況下,模擬驗證的結果是通過(pass)還是失敗(fail)都是沒有意義的。It is easy to imagine that if there is a design requirement to group thousands of registers into a register module, the system engineer will inevitably encounter a lot of errors after editing the register description file of the register module. In this case, even if the code file generation script can still successfully generate a register verification code file (.ralf) based on the register description file, the register verification code file is obviously not correct, resulting in the RAL model generated in the end not 100% corresponding to the hardware registers contained in the integrated circuit under test (DUT). In this case, whether the result of the simulation verification is pass or fail is meaningless.
由上述說明可知,本領域亟需一種新式的寄存器驗證代碼文件生成方法。From the above description, it can be seen that a new register verification code file generation method is urgently needed in the field.
本發明之主要目的在於提供一種寄存器驗證代碼文件生成方法,其應用於包含一驗證平台以及一控制單元的一積體電路設計驗證系統之中。在應用本發明之方法的情況下,係可以在生成寄存器驗證代碼文件之前自動檢視寄存器描述文件(如Excel)的內容是否正確,且在Excel內容有部分填寫錯誤的情況下,自動生成正確的寄存器驗證代碼文件以及測試用例。接續地,在依據所述寄存器驗證代碼文件生成一RAL模型(.sv)之後,該控制單元利用該RAL模型、該測試用例文件與該驗證平台完成一待測電路模塊(DUT)的模擬驗證。The main purpose of the present invention is to provide a register verification code file generation method, which is applied to an integrated circuit design verification system including a verification platform and a control unit. When the method of the present invention is applied, it is possible to automatically check whether the content of the register description file (such as Excel) is correct before generating the register verification code file, and when there are partial errors in the Excel content, the correct register verification code file and test case are automatically generated. Subsequently, after a RAL model (.sv) is generated according to the register verification code file, the control unit uses the RAL model, the test case file and the verification platform to complete the simulation verification of a circuit module under test (DUT).
為達成上述目的,本發明提出所述寄存器驗證代碼文件生成方法的一實施例,其係應用於包含一驗證平台以及一控制單元的一積體電路設計驗證系統之中,且由該控制單元所執行;所述寄存器驗證代碼文件生成方法包括: 獲取一寄存器描述文件;以及 在對該寄存器描述文件進行一內容檢視操作之後,依據該寄存器描述文件生成一寄存器驗證代碼文件(.ralf)。 To achieve the above-mentioned purpose, the present invention proposes an embodiment of the register verification code file generation method, which is applied to an integrated circuit design verification system including a verification platform and a control unit, and is executed by the control unit; the register verification code file generation method includes: Obtaining a register description file; and After performing a content review operation on the register description file, generating a register verification code file (.ralf) according to the register description file.
在可行的實施例中,本發明之寄存器驗證代碼文件生成方法,係更包括: 依據該寄存器描述文件將一測試用例模板文件調整成一測試用例文件。 In a feasible embodiment, the register verification code file generation method of the present invention further includes: Adjusting a test case template file into a test case file based on the register description file.
在一實施例中,該控制單元包括一內容檢視腳本、一代碼文件生成腳本以及一測試用例文件生成腳本,且該內容檢視腳本、該代碼文件生成腳本以及該測試用例文件生成腳本皆為利用一程式語言編輯成一電腦可執行檔。In one embodiment, the control unit includes a content viewing script, a code file generation script, and a test case file generation script, and the content viewing script, the code file generation script, and the test case file generation script are all edited into a computer executable file using a programming language.
在一實施例中,該寄存器描述文件依複數個項目欄位記載複數個寄存器的基本參數,且該複數個項目欄位包含一識別詞欄位,該識別詞欄位係記載一用以描述寄存器的位元寬度的識別詞。In one embodiment, the register description file records basic parameters of a plurality of registers according to a plurality of entry fields, and the plurality of entry fields include an identifier field, and the identifier field records an identifier used to describe the bit width of the register.
在一實施例中,該控制單元依據所述識別詞檢視所述寄存器的位元寬度、字節(byte)數、字(word)數以及域(field)位元範圍是否記載正確,從而完成所述內容檢視操作。In one embodiment, the control unit checks the bit width, byte number, word number and field bit range of the register according to the identification word to see if they are recorded correctly, thereby completing the content review operation.
在一實施例中,一檢視紀錄(log)係在所述內容檢視操作之後生成,且該檢視紀錄係記載該寄存器描述文件所含有的至少一錯誤信息。In one embodiment, a view log is generated after the content view operation, and the view log records at least one error message contained in the register description file.
在一實施例中,該控制單元透過讀取一文件路徑檔案而獲知該寄存器描述文件的一存取路徑,從而經由該存取路徑獲取該寄存器描述文件。In one embodiment, the control unit obtains an access path of the register description file by reading a file path file, and thereby obtains the register description file through the access path.
在一實施例中,該寄存器驗證代碼文件的內容包括: 寄存器代碼,用以定義複數個寄存器(uvm_reg)及其對應位元寬度; 寄存器域代碼,用以定義複數個寄存器域(uvm_reg_field)及其對應功能; 地址代碼,用以定義各所述寄存器的地址、存取屬性以及通用匯流排; 寄存器模塊代碼,用以定義一包含複數個所述寄存器的寄存器模塊(uvm_reg_blcok);以及 一儲存單元代碼,用以定義一儲存單元(uvm_mem)。 In one embodiment, the content of the register verification code file includes: Register code, used to define a plurality of registers (uvm_reg) and their corresponding bit widths; Register field code, used to define a plurality of register fields (uvm_reg_field) and their corresponding functions; Address code, used to define the address, access attributes and common bus of each of the registers; Register module code, used to define a register module (uvm_reg_blcok) containing a plurality of the registers; and A storage unit code, used to define a storage unit (uvm_mem).
在一實施例中,該測試用例文件的內容包括:測試序列(sequence)代碼、序列器(sequencer)代碼、以及通用匯流排驅動器(driver)代碼。In one embodiment, the content of the test case file includes: test sequence code, sequencer code, and universal bus driver code.
並且,本發明同時提供一種積體電路設計驗證系統,其包含一驗證平台以及一控制單元;其特徵在於,該控制單元執行一驗證流程以對包含複數個電路模塊的一積體電路進行模擬驗證;該驗證流程包括: 一代碼文件生成程序,其係通過執行如前所述本發明之寄存器驗證代碼文件生成方法而完成,從而產生一寄存器驗證代碼文件(.ralf)與一測試用例文件; 一RAL模型生成程序,依據所述寄存器驗證代碼文件生成一RAL模型(.sv);以及 一電路模塊驗證程序,利用該RAL模型、該測試用例文件與該驗證平台完成一待測電路模塊(DUT)的一模擬驗證。 Furthermore, the present invention also provides an integrated circuit design verification system, which includes a verification platform and a control unit; the feature of the system is that the control unit executes a verification process to perform simulation verification on an integrated circuit including a plurality of circuit modules; the verification process includes: A code file generation program, which is completed by executing the register verification code file generation method of the present invention as described above, thereby generating a register verification code file (.ralf) and a test case file; A RAL model generation program, which generates a RAL model (.sv) according to the register verification code file; and A circuit module verification program, which uses the RAL model, the test case file and the verification platform to complete a simulation verification of a circuit module under test (DUT).
為使 貴審查委員能進一步瞭解本發明之結構、特徵、目的、與其優點,茲附以圖式及較佳具體實施例之詳細說明如後。In order to enable the Review Committee to further understand the structure, features, purpose, and advantages of the present invention, the following are attached with drawings and detailed descriptions of preferred specific embodiments.
圖1顯示應用本發明之一種寄存器驗證代碼文件生成方法的一積體電路設計驗證系統的方塊圖。如圖1所示,在一積體電路晶片的設計模擬驗證階段,包含一控制單元12與一驗證平台11的一積體電路設計驗證系統1被搭建用於對一積體電路(如,利用Verilog所完成的RTL電路)執行模擬驗證。進行模擬驗證時,該控制單元12執行一驗證流程以對包含複數個電路模塊的一積體電路進行驗證測試。更詳細地說明,該驗證流程包括:一代碼文件生成程序、一RAL(register abstraction layer;寄存器抽象層)模型生成程序以及一電路模塊驗證程序,其中該控制單元12通過執行本發明之一種寄存器驗證代碼文件生成方法以完成所述代碼文件生成程序,從而產生一寄存器驗證代碼文件與一測試用例文件。FIG1 shows a block diagram of an integrated circuit design verification system to which a register verification code file generation method of the present invention is applied. As shown in FIG1 , in the design simulation verification stage of an integrated circuit chip, an integrated circuit design verification system 1 including a
圖2顯示本發明之一種寄存器驗證代碼文件生成方法的流程圖。如圖1與圖2所示,本發明之寄存器驗證代碼文件生成方法的流程係執行步驟S1:獲取一寄存器描述文件。並且,接著執行步驟S2:在對該寄存器描述文件進行一內容檢視操作之後,依據該寄存器描述文件生成一寄存器驗證代碼文件(.ralf)。在一實施例中,該控制單元12內設有包含一內容檢視腳本的一文件檢視單元121。如此設置,該控制單元12可以啟用該內容檢視腳本從而自動執行所述內容檢視操作。FIG2 shows a flow chart of a register verification code file generation method of the present invention. As shown in FIG1 and FIG2, the process of the register verification code file generation method of the present invention is to execute step S1: obtain a register description file. And, then execute step S2: after performing a content review operation on the register description file, generate a register verification code file (.ralf) according to the register description file. In one embodiment, the
驗證工程師應知道,寄存器描述文件是由系統工程師所填寫,又稱寄存器列表,通常為Excel或CVS文件。特別地,本發明將所述寄存器描述文件的存放路徑整理在一文本文件(如 .txt)之內,以產生一文件路徑檔案。如此,執行步驟S1時,該控制單元12透過讀取該文件路徑檔案而獲知該寄存器描述文件的一存取路徑,從而經由該存取路徑獲取該寄存器描述文件。這樣做的好處在於,當該寄存器描述文件的存取路徑被變更了,只需要修改txt文件即可,無需修改所述內容檢視腳本。Verification engineers should know that the register description file is filled in by system engineers, also known as a register list, usually an Excel or CVS file. In particular, the present invention organizes the storage path of the register description file in a text file (such as .txt) to generate a file path file. In this way, when executing step S1, the
通常,該寄存器描述文件(Excel)包含:寄存器名稱、地址、寄存器位元寬度(如8bit、16bit、32bit)、寄存器域、寄存器域的位元範圍、寄存器域的功能等複數個項目欄位。系統工程師在填寫每個寄存器的基本參數時,係依各個項目欄位逐一填寫。特別地,本發明令該複數個項目欄位進一步包含一識別詞欄位,該識別詞欄位係記載一用以描述寄存器的位元寬度的識別詞。舉例而言,識別詞“word”表示寄存器的位元寬度為32bit,而識別詞“byte”則表示寄存器的位元寬度為8bit,用戶可以自行定義習慣使用的識別詞。如此設計,執行所述內容檢視操作時,該控制單元12依據所述識別詞檢視寄存器的位元寬度、字節(byte)數、字(word)數以及域(field)位元範圍是否記載正確。Usually, the register description file (Excel) includes: register name, address, register bit width (such as 8bit, 16bit, 32bit), register domain, bit range of register domain, function of register domain and other multiple item fields. When filling in the basic parameters of each register, the system engineer fills in each item field one by one. In particular, the present invention makes the multiple item fields further include an identifier field, and the identifier field records an identifier used to describe the bit width of the register. For example, the identifier "word" indicates that the bit width of the register is 32bit, and the identifier "byte" indicates that the bit width of the register is 8bit. Users can define the identifiers they are used to. With such a design, when executing the content inspection operation, the
具體而言,該控制單元12依據寄存器的bit範圍和所述識別詞計算byte數/word數是否一致,即,以bit範圍除以位元寬度,確認運算結果是否等於表格中填寫的byte數/word數。並且,內容檢視還包括檢查寄存器域(field)的位元範圍是否連續。舉例而言,對於一8位寬且包含三個寄存器域的寄存器而言,其三個寄存器域在表格填寫正常的情況下可被配置分別具有[5:0]、[6:6]以及[7:7]的位元範圍。因此,具體地,可以透過檢查表格內的上一行的bit尾和下一行的bit頭是否連續的方式,完成寄存器域(field)的位元範圍是否連續之檢查。完成所述內容檢視操作之後,一檢視紀錄(log)係在所述內容檢視操作之後生成,且該檢視紀錄係記載該寄存器描述文件所含有的至少一錯誤信息。例如,檢查過程發現,三個寄存器域的位元範圍的總和超過了該寄存器的位元寬度,此錯誤信息會記錄在log檔案內。又例如,檢查過程發現,三個寄存器域的位元範圍頭、尾部連續,此錯誤信息也會記錄在log檔案內。Specifically, the
在一實施例中,該控制單元12內設有包含一代碼文件生成腳本的一代碼文件產生單元122。如此設置,該控制單元12可以啟用該代碼文件生成腳本從而依據該寄存器描述文件生成一寄存器驗證代碼文件。在此過程中,對於包含多個寄存器域的各個寄存器,該控制單元12會按照寄存器的位元寬度自動計算其所含有的每個寄存器域的bit頭與bit尾(即,起始位元和終止位元)。具體地,在所述byte數/word數大於1的情況下,可得知該寄存器包含多個寄存器域,此時,若前面的內容檢查過程中發現有一些寄存器域的位元範圍填寫錯誤,則以自動計算的正確的起始位元及/或終止位元替換不正確者。最終,在完成寄存器描述文件的內容修正之後,該控制單元12依據該寄存器描述文件生成一寄存器驗證代碼文件。In one embodiment, the
值得說明的是,所生成的寄存器驗證代碼文件包含層次化結構代碼;具體上,包括:寄存器模塊代碼、寄存器代碼、地址代碼、寄存器域代碼、以及儲存單元代碼。其中,該寄存器代碼用以定義複數個寄存器(uvm_reg)及其對應位元寬度,該寄存器域代碼用以定義複數個寄存器域(uvm_reg_field)及其對應功能,該地址代碼用以定義各所述寄存器的地址、存取屬性以及通用匯流排,該寄存器模塊代碼用以定義一包含複數個所述寄存器的寄存器模塊(uvm_reg_blcok),且該儲存單元代碼用以定義一儲存單元(uvm_mem)。It is worth noting that the generated register verification code file contains hierarchical structure codes; specifically, it includes: register module code, register code, address code, register field code, and storage unit code. Among them, the register code is used to define a plurality of registers (uvm_reg) and their corresponding bit widths, the register field code is used to define a plurality of register fields (uvm_reg_field) and their corresponding functions, the address code is used to define the address, access attributes and universal bus of each of the registers, the register module code is used to define a register module (uvm_reg_blcok) containing a plurality of the registers, and the storage unit code is used to define a storage unit (uvm_mem).
如圖1與圖2所示,在完成寄存器描述文件(Excel)的內容檢視以及生成生成一寄存器驗證代碼文件(.ralf)之後,本發明之寄存器驗證代碼文件生成方法的流程係可以接著執行步驟S3:依據該寄存器描述文件將一測試用例模板文件調整成一測試用例文件。在一實施例中,該控制單元12內設有包含一測試用例文件生成腳本的一測試用例產生單元123。如此設置,該控制單元12可以啟用該測試用例文件生成腳本從而依據該寄存器描述文件將一測試用例模板文件調整成一測試用例文件。這樣做的好處在於,當運行測試用例文件生成腳本後,即可自動參照正確的寄存器描述文件(Excel),接著按照預先寫好的測試用例模板,生成每個寄存器模塊(uvm_reg_blcok)對應的測試用例文件。As shown in FIG. 1 and FIG. 2 , after completing the content review of the register description file (Excel) and generating a register verification code file (.ralf), the process of the register verification code file generation method of the present invention can then execute step S3: adjusting a test case template file into a test case file according to the register description file. In one embodiment, the
換句話說,當系統工程師變更寄存器描述文件(Excel)之後,該文件檢視單元121自動檢查其內容正確性,該代碼文件產生單元122依據完成內容檢視的寄存器描述文件自動生成一寄存器驗證代碼文件(.ralf),且該測試用例產生單元123亦依據完成內容檢視的寄存器描述文件自動生成一測試用例文件,整個過程無須驗證工程師介入,因而大幅減輕了驗證工程師的工作負擔,也提高了晶片的積體電路的模擬驗證效率。另一方面,當後期的項目需要修改測試用例的內容時,只需要對試用例模板文件進行修改,就可以通過運行測試用例文件生成腳本實現所有的測試用例文件的更新。In other words, after the system engineer changes the register description file (Excel), the
在完成代碼文件生成程序之後,該驗證流程係接著進入一RAL模型生成程序與一電路模塊驗證程序。在一實施例中,該控制單元12內設有包含一RAL模型生成腳本的一RAL模型產生單元124。如此設置,在該RAL模型生成程序中,該控制單元12運行該RAL模型生成腳本,從而自動地依據所述寄存器驗證代碼文件(.ralf)生成一RAL模型(.sv)。最終,在該電路模塊驗證程序中,該控制單元12利用該RAL模型、該測試用例文件與該驗證平台完成至少一個所述電路模塊的模擬驗證。After completing the code file generation procedure, the verification process then enters a RAL model generation procedure and a circuit module verification procedure. In one embodiment, the
如此,上述已完整且清楚地說明本發明之寄存器驗證代碼文件生成方法及包含其之積體電路驗證方法;並且,經由上述可得知本發明具有下列優點:Thus, the register verification code file generation method and the integrated circuit verification method including the register verification code file generation method of the present invention have been fully and clearly described above; and, from the above, it can be known that the present invention has the following advantages:
(1)本發明揭示一種寄存器驗證代碼文件生成方法,其應用於包含一驗證平台以及一控制單元的一積體電路設計驗證系統之中。在應用本發明之方法的情況下,係可以在生成寄存器驗證代碼文件之前自動檢視寄存器描述文件(如Excel)的內容是否正確,且在Excel內容有部分填寫錯誤的情況下,自動生成正確的寄存器驗證代碼文件以及測試用例。接續地,在依據所述寄存器驗證代碼文件生成一RAL模型(.sv)之後,該控制單元利用該RAL模型、該測試用例文件與該驗證平台完成一待測電路模塊(DUT)的模擬驗證。(1) The present invention discloses a register verification code file generation method, which is applied to an integrated circuit design verification system including a verification platform and a control unit. When the method of the present invention is applied, it is possible to automatically check whether the content of a register description file (such as Excel) is correct before generating a register verification code file, and when there are partial errors in the Excel content, a correct register verification code file and test case are automatically generated. Subsequently, after a RAL model (.sv) is generated according to the register verification code file, the control unit uses the RAL model, the test case file and the verification platform to complete the simulation verification of a circuit module under test (DUT).
(2)本發明同時提供一種電路模塊設計驗證系統,積體電路設計驗證系統,其包含一驗證平台以及一控制單元;其特徵在於,該控制單元執行一驗證流程以對包含複數個電路模塊的一積體電路進行模擬驗證;該驗證流程包括:如前所述本發明之寄存器驗證代碼文件生成程序、一RAL模型生成程序、以及一電路模塊驗證程序。(2) The present invention also provides a circuit module design verification system, an integrated circuit design verification system, which includes a verification platform and a control unit; its characteristic is that the control unit executes a verification process to perform simulation verification on an integrated circuit including a plurality of circuit modules; the verification process includes: the register verification code file generation program of the present invention as described above, a RAL model generation program, and a circuit module verification program.
必須加以強調的是,前述本案所揭示者乃為較佳實施例,舉凡局部之變更或修飾而源於本案之技術思想而為熟習該項技藝之人所易於推知者,俱不脫本案之專利權範疇。It must be emphasized that what is disclosed in the above-mentioned case is a preferred embodiment. Any partial changes or modifications that are derived from the technical ideas of this case and are easily inferred by people familiar with the art do not deviate from the scope of the patent rights of this case.
綜上所陳,本案無論目的、手段與功效,皆顯示其迥異於習知技術,且其首先發明合於實用,確實符合發明之專利要件,懇請 貴審查委員明察,並早日賜予專利俾嘉惠社會,是為至禱。In summary, this case shows that its purpose, means and effects are very different from the known technology, and it is the first invention that is practical and indeed meets the patent requirements for invention. We sincerely request the review committee to examine this carefully and grant a patent as soon as possible to benefit the society. This is our utmost prayer.
1:電路模塊設計驗證系統 11:驗證平台 12:控制單元 121:文件檢視單元 122:代碼文件產生單元 123:測試用例產生單元 124:RAL模型產生單元 S1:獲取一寄存器描述文件 S2:在對該寄存器描述文件進行一內容檢視操作之後,依據該寄存器描述文件生成一寄存器驗證代碼文件 S3:依據該寄存器描述文件將一測試用例模板文件調整成一測試用例文件 1: Circuit module design verification system 11: Verification platform 12: Control unit 121: File viewing unit 122: Code file generation unit 123: Test case generation unit 124: RAL model generation unit S1: Obtain a register description file S2: After performing a content viewing operation on the register description file, generate a register verification code file according to the register description file S3: Adjust a test case template file into a test case file according to the register description file
圖1為應用本發明之一種寄存器驗證代碼文件生成方法的一積體電路設計驗證系統的方塊圖;以及 圖2為本發明之一種寄存器驗證代碼文件生成方法的流程圖。 FIG1 is a block diagram of an integrated circuit design verification system using a register verification code file generation method of the present invention; and FIG2 is a flow chart of a register verification code file generation method of the present invention.
S1:獲取一寄存器描述文件 S1: Get a register description file
S2:在對該寄存器描述文件進行一內容檢視操作之後,依據該寄存器描述文件生成一寄存器驗證代碼文件 S2: After performing a content review operation on the register description file, a register verification code file is generated based on the register description file
S3:依據該寄存器描述文件將一測試用例模板文件調整成一測試用例文件 S3: Adjust a test case template file into a test case file based on the register description file
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW111149981A TW202427257A (en) | 2022-12-26 | 2022-12-26 | Method for generating register verification code file and integrated circuit design verification system applied to an integrated circuit design verification system comprising a verification platform and a control unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW111149981A TW202427257A (en) | 2022-12-26 | 2022-12-26 | Method for generating register verification code file and integrated circuit design verification system applied to an integrated circuit design verification system comprising a verification platform and a control unit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| TW202427257A true TW202427257A (en) | 2024-07-01 |
Family
ID=92929039
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW111149981A TW202427257A (en) | 2022-12-26 | 2022-12-26 | Method for generating register verification code file and integrated circuit design verification system applied to an integrated circuit design verification system comprising a verification platform and a control unit |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TW202427257A (en) |
-
2022
- 2022-12-26 TW TW111149981A patent/TW202427257A/en unknown
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8682631B2 (en) | Specifications-driven platform for analog, mixed-signal, and radio frequency verification | |
| CN114912391B (en) | Register design and verification model automatic generation method, device, equipment and medium | |
| US8051402B2 (en) | Method and apparatus for implementing communication between a software side and a hardware side of a test bench in a transaction-based acceleration verification system | |
| JPH05167046A (en) | Factory programmed device manufacturing system and manufacturing method | |
| CN114327476A (en) | Chip design file generation method and device and chip design method and device | |
| US9507680B2 (en) | Verification system and method for automated verification of register information for an electronic system | |
| US5745501A (en) | Apparatus and method for generating integrated circuit test patterns | |
| CN113536718B (en) | Method and device for verifying correctness of gate-level simulation netlist file | |
| CN116341428B (en) | Method for constructing reference model, chip verification method and system | |
| CN116227398B (en) | Method and system for automatically generating IP core test stimulus | |
| CN109634600A (en) | A kind of code generating method based on security extension SysML and AADL model | |
| CN114091383A (en) | Test sequence generation method, device and system and related equipment | |
| US7900174B2 (en) | Method and system for characterizing an integrated circuit design | |
| CN114692537B (en) | FPGA circuit TILE level connection checking method and device, electronic equipment and storage medium | |
| TW202427257A (en) | Method for generating register verification code file and integrated circuit design verification system applied to an integrated circuit design verification system comprising a verification platform and a control unit | |
| CN118363715B (en) | Integration method and device of reference model, electronic equipment and storage medium | |
| TWM662198U (en) | Integrated Circuit Design Verification System | |
| CN113255287A (en) | OTP register verification method based on RAL | |
| US20070266361A1 (en) | Logic verification method, logic verification apparatus and recording medium | |
| JP2005222371A (en) | Logic circuit functional verification system and method | |
| CN116932412B (en) | Sharing platform and method that can generate test stimulus files in different formats | |
| Krishnamoorthy | Leveraging Generative AI for Platform Hardware Design Automation-Learnings and Recommendations | |
| CN119862827B (en) | Hardware verification method, device, electronic device and readable storage medium | |
| CN117574817B (en) | Design automation verification method, system and verification platform for adaptive timing changes | |
| CN119883374B (en) | UVM register model address randomization method and device |