《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 可編程邏輯 > 設(shè)計應(yīng)用 > 基于UVM和C語言驗證JTAG調(diào)試協(xié)議的研究與實現(xiàn)
基于UVM和C語言驗證JTAG調(diào)試協(xié)議的研究與實現(xiàn)
電子技術(shù)應(yīng)用
陶青平,沈婧
(中國電子科技集團公司第五十八研究所,江蘇 無錫 214035)
摘要: 芯片驗證中,JTAG協(xié)議功能的好壞決定了芯片流片回來后是否具有可調(diào)試狀態(tài)。多數(shù)情況下是編寫一段既冗長且不易維護的TestBench代碼進行驗證;有些情況依賴FPGA原型驗證手段去驗證JTAG協(xié)議,但在該情況下,一些模塊需進行FPGA資源替換,無法保證與RTL級網(wǎng)表一致,可能導(dǎo)致流片后回來的芯片JTAG調(diào)試不通。針對這些情況,結(jié)合UVM方法學(xué)的通用性和C語言的便利性,提出一種基于UVM和C語言聯(lián)合驗證JTAG調(diào)試協(xié)議的實現(xiàn)方法。UVM搭建驗證JTAG協(xié)議的框架,C語言側(cè)編寫測試用例,用例通過調(diào)用UVM側(cè)實現(xiàn)的芯片JTAG接口驅(qū)動時序的方法來到達實現(xiàn)C語言驗證芯片JTAG協(xié)議的結(jié)果。
中圖分類號:TP391 文獻標(biāo)志碼:A DOI: 10.16157/j.issn.0258-7998.233886
中文引用格式: 陶青平,沈婧. 基于UVM和C語言驗證JTAG調(diào)試協(xié)議的研究與實現(xiàn)[J]. 電子技術(shù)應(yīng)用,2023,49(10):112-117.
英文引用格式: Tao Qingping,Sheng Jing. Design and implementation for JTAG protocol test based on UVM and C[J]. Application of Electronic Technique,2023,49(10):112-117.
Design and implementation for JTAG protocol test based on UVM and C
Tao Qingping,Sheng Jing
(China Electronic Technology Group Corporation No.58 Research Institute,Wuxi 214035,China)
Abstract: In IC verification,due to the complexity and multiplicity of the JTAG protocol,the code written separately in TestBench for verification is long and difficult to maintain.Sometimes some companies and groups put this part of verification in FPGA prototype verification.In prototype verification,some modules need to be replaced,which cannot be guaranteed to be the same as the RTL level netlist.It may lead to the failure of chip tog debugging after streaming.In view of this situation,this paper proposes an implementation method for joint verification of JTAG debugging protocol based on UVM and C language.Combining the universality of UVM methodology and the convenience of C language,UCM builds a framework for verification of JTAG protocol,C language verification of chip JTAG protocol is realized by calling the chip JTAG interface implemented on the UVM side to drive the timing.
Key words : UVM;FPGA prtotype verification;C language;JTAG protocol

0 引言

隨著集成電路工藝的快速發(fā)展,芯片的研究設(shè)計周期亦在不斷縮短[1]。四線制的JTAG接口調(diào)試依然是大多數(shù)芯片設(shè)計采用的調(diào)試手段。JTAG協(xié)議功能的好壞很大程度上決定了流片回來后的芯片是否具有可調(diào)試狀態(tài)。不同芯片的JTAG協(xié)議不盡相同,基于TestBench或者原型驗證的方式,在驗證JTAG協(xié)議上存在著驗證效率低下、可移植性差或者無法完全復(fù)制芯片的JTAG功能,這對JTAG協(xié)議驗證調(diào)試提出了巨大的挑戰(zhàn)。眾所周知,通用驗證方法學(xué)UVM在IC驗證領(lǐng)域得到了全面廣泛的運用[2-3],其所具有的封裝、繼承、面向?qū)ο蟮冗@些優(yōu)點,并且包含大量功能全面的組件和基類,同時又擁有factory、config、TLM等機制[4-8],使得其具有良好的移植特性。而C語言作為一種悠久且優(yōu)秀的語言,編寫測試用例較為便利。

綜合二者的優(yōu)勢,對比傳統(tǒng)的驗證方式,方案中驗證JTAG協(xié)議方式猶如上位機IDE通過JTAG仿真器調(diào)試芯片一樣便利。C語言編程可封裝大量函數(shù)供驗證人員調(diào)用,利于僅熟悉C語言編程的開發(fā)和驗證人員一同參與到驗證JTAG調(diào)試協(xié)議中。更有甚者IDE設(shè)計開發(fā)亦可同步進行開發(fā)。通過該種方法來驗證JTAG功能,明顯優(yōu)于依賴FPGA原型驗證或者設(shè)計驗證人員寫TestBench來驗證其功能的方法。



本文詳細內(nèi)容請下載:http://ihrv.cn/resource/share/2000005723




作者信息:

陶青平,沈婧

(中國電子科技集團公司第五十八研究所,江蘇 無錫 214035)


微信圖片_20210517164139.jpg

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。