CN102591757A - Verification method and verification environment platform based on intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM) - Google Patents

Verification method and verification environment platform based on intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM) Download PDF

Info

Publication number
CN102591757A
CN102591757A CN2011100011943A CN201110001194A CN102591757A CN 102591757 A CN102591757 A CN 102591757A CN 2011100011943 A CN2011100011943 A CN 2011100011943A CN 201110001194 A CN201110001194 A CN 201110001194A CN 102591757 A CN102591757 A CN 102591757A
Authority
CN
China
Prior art keywords
usb
verification
interface module
manager
data
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN2011100011943A
Other languages
Chinese (zh)
Inventor
陶涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Huahong Integrated Circuit Co Ltd
Original Assignee
Shanghai Huahong Integrated Circuit Co Ltd
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 Shanghai Huahong Integrated Circuit Co Ltd filed Critical Shanghai Huahong Integrated Circuit Co Ltd
Priority to CN2011100011943A priority Critical patent/CN102591757A/en
Publication of CN102591757A publication Critical patent/CN102591757A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a verification method based on an intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM), which includes adopting the VMM and utilizing a USB-host-verification IP (USB-HOST-VIP) to build a verification environment platform to conduct function verification of the IC-USB interface module; achieving automatic script operation, comparing results automatically, and calculating a coverage rate automatically. The invention further discloses a verification environment platform for the verification method. The verification method and the verification environment platform can improve verification efficiency and completeness.

Description

IC-USB interface module verification method and verification environment platform based on VMM
Technical field
The present invention relates to functional verification field in SOC (system on a chip) chip design, particularly relate to a kind of IC-USB (smart card USB) interface module verification method based on VMM (verification methodology).
Background technology
Checking plays a part very important in the chip design flow process, verification environment platform quality, and quality and speed to project is accomplished all play decisive role.
Development along with chip design and verification technique; Chip design is also increasingly high to the requirement of complex modules functional verification after accomplishing; How can in the short time, accomplish function examination checking to complex modules; The assurance logic function is correct, and to the completeness of verification environment, robotization and reusability have proposed high requirement.
IC-USB belongs to the relatively more novel interface module of SIM (subscriber identification module) the core of the card sheet, except the requirement of satisfying USB (USB) agreement, also has the protocol requirement of himself.IC-USB can let the speed of SIM chip transceive data greatly improve, and is a trend of present SIM development.
Summary of the invention
The technical matters that the present invention will solve provides a kind of IC-USB interface module verification method based on VMM, can improve the efficient and the completeness of checking; The present invention also will provide a kind of verification environment platform that is used for said verification method for this reason.
For solving the problems of the technologies described above; IC-USB interface module verification method based on VMM of the present invention is to adopt following technical scheme to realize: adopt verification methodology VMM; And utilize the USB_HOST_VIP (USB host verification model) of SYNOPSYS company to make up the verification environment platform, the IC-USB interface module is implemented functional verification.
Said enforcement functional verification is meant that randomization produces the arbitrary excitation to the IC-USB interface module, the judgement response results of robotization, and the statistical function coverage rate of robotization automatically.
Said enforcement functional verification is meant, the generation of the usb data bag that can retrain, and the usb data bag is sent in classification, accomplishes data response automatically.
The verification environment platform that adopts in the said verification method adopts system-level hardware description language System verilog to accomplish; Comprise,
Data Generator is accomplished the definition of randomization data bag, comprises the device address, endpoint number, transmission mode, transmission speed, transmits data packets and length thereof, erroneous packets type; After having retrained the concrete characteristic of data, by automatically generated data bag function automatically generated data bag;
USB manager and high-speed high-performance bus manager; Be connected with Data Generator through passage respectively, be used for the packet of resolution data maker generation simultaneously, judge the device address of this communication; End points, the data of transmission mode and transmission and length information;
High-speed high-performance bus master verification model AHB_Master_VIP is connected with the high-speed high-performance bus manager through passage, with corresponding packet, converts signal excitation actual on the high-speed high-performance bus AHB interface to;
USB host verification model USB_HOST_VIP is connected with the high-speed high-performance bus manager through passage, with corresponding packet, converts signal excitation actual on the USB D+/D-interface to;
Scoring plug is obtained data respectively through call back function from high-speed high-performance bus manager and USB manager, the data of relatively sending and accepting in real time;
Smart card USB IC-USB interface module; Pass through high-speed high-performance bus AHB interface or USB D+/D-interface as equipment under test; With high-speed high-performance bus master verification model AHB_Master_VIP, USB host verification model USB_HOST_VIP is connected respectively;
Assert to be connected module distance and parlor distance in overtime, the bag of monitoring in real time that high-speed high-performance bus AHB and USB D+/D-occur with smart card USB IC-USB interface module.
The VMM methodology is a kind of randomness that SYNOPSYS company proposes, the methodology of substantive test, and the module level that is mainly used in complex modules is verified.
The present invention adopts the method for the VMM that SYNOPSYS company provides, in conjunction with the IC-USB protocol requirement, fully absorbs the advantage of VMM methodology in the module level checking; Made up a kind of automatic configuration register; Automatically transmitting-receiving usb data bag is accomplished the comprehensive functional verification of IC-USB interface module from the Physical layer to the protocol layer, the operation of the script of robotization; Automatic transceive data, the verification environment platform of comparing result automatically; Modular proof scheme, the checking structure of stratification makes the efficient of checking improve greatly; And the modularization stratification after, it is more convenient revise, so reusability is better.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further detailed explanation:
Fig. 1 is SIM chip interface figure;
Fig. 2 is an IC-USB interface module verification environment platform synoptic diagram.
Embodiment
Need among the present invention checking to as if the IC-USB interface module of SIM chip.As shown in Figure 1, this IC-USB interface is as the C4 (being D+) and C8 (the being D-) pin of SIM chip, for SIM communication in the future provides mode more at a high speed.
As shown in Figure 2, the present invention utilizes USB_HOST_VIP (USB host verification model) as main frame (HOST), and the IC-USB interface module is as equipment (device), simulating actual conditions transceive data bag.IC-USB interface module one end is connected with main frame, and the other end disposes relevant register through AHB (high-speed high-performance bus) bus.
After configuring relevant register with ahb bus, main frame is accomplished and being connected of IC-USB interface module, and resets, and enumerates and communicates by letter.The scoring plug of the collected centre of data result (Scoreboard) compares automatically.With the relevant signal of Physical layer through asserting that (Assertion) module carries out verification.
In conjunction with shown in Figure 2, the IC-USB interface module verification environment platform that the present invention created adopts system-level hardware description language System verilog to accomplish; Mainly comprise following seven assemblies: Data Generator (Usb_gen); High-speed high-performance bus manager (Ahb_manager); USB manager (Usb_manager), AHB_Master_VIP (high-speed high-performance bus master verification model), USB_HOST_VIP (USB host verification model); Scoring plug (Scoreboard) is asserted (Assertion) module.Through passage (channel), readjustment (callback) function or AHB interface (AHB interface) are connected or communicate by letter between the assembly.
Data Generator (Usb_gen) is accomplished the definition of randomization data bag, comprises the device address, endpoint number; Transmission mode, transmission speed, transmits data packets and length thereof; Information such as erroneous packets type; As a packet (Packet), after having retrained the concrete characteristic of data, can generate automatically by automatically generated data bag function (vmm_automic_gen).
Data Generator (Usb_gen) is connected with high-speed high-performance bus manager (Ahb_manager) and USB manager (Usb_manager) through passage (channel).The packet of high-speed high-performance bus manager (Ahb_manager) and USB manager (Usb_manager) resolution data maker (Usb_gen) generation simultaneously; Judge the device address of this communication; End points, the data of transmission mode and transmission and length information.Generally speaking, once in the transmission, device address and transmission speed are changeless.
According to the communication process of IC-USB interface module, high-speed high-performance bus manager (Ahb_manager) should dispose the initialization register of IC-USB interface module earlier, and (PHY) enables like analog module, speed selection (generally only supporting the transmission of low speed and middling speed) etc.In test top layer (test_top) file, need draw high or drag down DP/DM (being the D+/D-signal in the USB D+/D-interface) according to friction speed.AHB_Master_VIP is when detecting DP/DM (being D+/D-) and have differential signal (being that USB D+/D-interface exists differential signal); Will accomplish resetting of USB D+/D-through USB manager (Usb_manager) to (Reset) signal that resets that USB D+/D-sends 10ms.Then, USB manager (Usb_manager) just can send to the IC-USB interface module and enumerates and communication data packet.
USB manager (Usb_manager) all is to be connected with AHB_Master_VIP with USB_HOST_VIP respectively through passage (channel) with high-speed high-performance bus manager (Ahb_manger).The effect of USB_HOST_VIP and AHB_Master_VIP is exactly with corresponding packet, converts signal excitation actual on the AHB interface to, is about to abstract behavior and specializes.Therefore, as shown in Figure 2, USB_HOST_VIP and AHB_Master_VIP are exactly that AHB interface through reality is connected with IC-USB interface module (being equipment under test DUT), through the interface signal of reality, encourage the IC-USB interface module; Be exactly the D+/D-signal from USB_HOST_VIP on one side.
USB manager (Usb_manager) sends the USB affairs (usb_transaction) of packet through exampleization USB_HOST_VIP; Retrain these USB affairs then and accomplish, sending the bag that reads and writes data just as high-speed high-performance bus manager (Ahb_manager) needs exampleization high-speed high-performance bus transaction (ahb_transaction) to realize.The transmitting-receiving control of the reasonable completion data of ability like this.For example: when be resolved to current OUT (output) bag that needs to send from Data Generator (Usb_gen); So just USB affairs (usb_transation) are constrained to the OUT packet; After sending completion, read the data that receive in the buffer (Buffer) of IC-USB interface module through high-speed high-performance bus manager (Ahb_managuer); Otherwise; When be resolved to current IN (input) bag that needs to send from Data Generator (Usb_gen); So just USB affairs (usb_transaction) are constrained to the IN packet; Need in the buffer of IC-USB interface module, write data through high-speed high-performance bus manager (Ahb_manager) simultaneously, treat that the IN bag takes out.The data of sending and accepting compare through scoring plug in real time, and wherein, the data of scoring plug are obtained from high-speed high-performance bus manager (Ahb_manager) and USB manager (Usb_manager) respectively by readjustment (callback) function.
For other packets, accomplish according to IC-USB interface module protocol requirement equally.Concrete data type can retrain in USB manager (Usb_manger).General USB manager (Usb_manager) can be accomplished enumeration process through sending foundation (SETUP) bag earlier, and then sends IN/OUT (I/O) bag and realize communication.
The statistics of function coverage is passed through function covering group (cover_group) function definition function covering points in USB manager (Usb_manger), and adds up coverage rate automatically through sampling function covering points.
Overtime (time_out) that occurs for ahb bus and USB D+/D-, apart from (inner-packet), parlor can be through asserting that (Assersion) module monitors in real time apart from the monitoring of (end to end) in the bag.Like this, to protocol monitor, can both adopt this verification environment platform to realize from the data transmission of IC-USB interface module.Be mingled with the situation of erroneous packets simultaneously in the correct data bag that possibly occur for the usb protocol requirement, also can be fully verified.
The present invention adopts the hierarchical structure of VMM; Utilize USB_HOSE_VIP to realize that the robotization of main frame and IC-USB interface module is connected and communication; Realize the robotization configuration register through AHB_Master_VIP (high-speed high-performance bus master verification model), accomplish and enumerate and normal transmitting-receiving bag communication verification; The operation of realization automatized script, comparative result, and the statistics of coverage rate automatically.
The present invention can accomplish IC-USB interface module Physical layer, and protocol layer is verified comprehensively, comprises the processing of misdata bag, realizes the comprehensive complete functional level simulating, verifying of IC-USB interface module; The compatible aspect of IC-USB interface module also there is certain checking.
The invention enables the checking of IC-USB interface module complete and abundant, randomized excitation producing method, the result of robotization relatively also make things convenient for checking regression test (Regression).
More than through embodiment the present invention has been carried out detailed explanation, but these are not to be construed as limiting the invention.Under the situation that does not break away from the principle of the invention, those skilled in the art also can make many distortion and improvement, and these also should be regarded as protection scope of the present invention.

Claims (9)

1. smart card USB IC-USB interface module verification method based on verification methodology VMM; It is characterized in that: adopt verification methodology VMM; And utilize USB host verification model USB_HOST_VIP to make up the verification environment platform, smart card USB IC-USB interface module is implemented functional verification.
2. verification method according to claim 1 is characterized in that: utilize USB host verification model USB_HOST_VIP as main frame, smart card USB IC-USB interface module is as equipment, simulating actual conditions transceive data bag; IC-USB interface module one end is connected with main frame, and the other end disposes relevant register through high-speed high-performance bus AHB;
After configuring relevant register with high-speed high-performance bus AHB, main frame is accomplished and being connected of smart card USB IC-USB interface module, and resets, and enumerates and communicates by letter; The collected scoring plug of data result compares automatically; With the relevant signal of Physical layer through asserting that module carries out verification.
3. verification method according to claim 1 and 2; It is characterized in that: said enforcement functional verification is meant; Randomization produces the arbitrary excitation to smart card USB IC-USB interface module, the judgement response results of robotization, and the statistical function coverage rate of robotization automatically.
4. verification environment platform according to claim 3 is characterized in that: the statistical function coverage rate of said robotization, and pass through function covering group function definition function covering points by the USB manager, and realize through sampling function covering points.
5. verification method according to claim 1 and 2 is characterized in that: said enforcement functional verification is meant, the generation of the general-purpose serial bus USB packet that can retrain, and the general-purpose serial bus USB packet is sent in classification, accomplishes data response automatically.
6. verification environment platform that is used for the arbitrary said verification method of claim 1-5 is characterized in that: smart card USB IC-USB interface module verification environment platform adopts system-level hardware description language System verilog to accomplish; Comprise,
Data Generator is accomplished the definition of randomization data bag, comprises the device address, endpoint number, transmission mode, transmission speed, transmits data packets and length thereof, erroneous packets type; After having retrained the concrete characteristic of data, by automatically generated data bag function automatically generated data bag;
USB manager and high-speed high-performance bus manager; Be connected with Data Generator through passage respectively, be used for the packet of resolution data maker generation simultaneously, judge the device address of this communication; End points, the data of transmission mode and transmission and length information;
High-speed high-performance bus master verification model AHB_Master_VIP is connected with the high-speed high-performance bus manager through passage, with corresponding packet, converts signal excitation actual on the high-speed high-performance bus AHB interface to;
USB host verification model USB_HOST_VIP is connected with the high-speed high-performance bus manager through passage, with corresponding packet, converts signal excitation actual on the USB D+/D-interface to;
Scoring plug is obtained data respectively through call back function from high-speed high-performance bus manager and USB manager, the data of relatively sending and accepting in real time;
Smart card USB IC-USB interface module; Pass through high-speed high-performance bus AHB interface or USB D+/D-interface as equipment under test; With high-speed high-performance bus master verification model AHB_Master_VIP, USB host verification model USB_HOST_VIP is connected respectively;
Assert to be connected module distance and parlor distance in overtime, the bag of monitoring in real time that high-speed high-performance bus AHB and USB D+/D-occur with smart card USB IC-USB interface module.
7. verification environment platform according to claim 6 is characterized in that: the initialization register of the said high-speed high-performance bus manager configurable smart card USB IC-USB of elder generation interface module; In the test top document,, draw high or drag down the D+/D-signal in the USB D+/D-interface according to friction speed; Said high-speed high-performance bus master verification model AHB_Master_VIP is when detecting USB D+/D-interface and have differential signal; The reset signal of then sending 10ms through the USB manager to USB D+/D-is accomplished resetting of USB D+/D-; Then, the USB manager then can send to smart card USB IC-USB interface module and enumerate and communication data packet.
8. verification environment platform as claimed in claim 6; It is characterized in that: said USB manager sends the USB affairs of packet through exampleization USB host verification model USB_HOST_VIP, retrains these USB affairs then and accomplishes.
9. verification environment platform as claimed in claim 6 is characterized in that: said USB manager passes through function covering group function definition function covering points, and through the automatic statistical function coverage rate of sampling function covering points.
CN2011100011943A 2011-01-05 2011-01-05 Verification method and verification environment platform based on intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM) Pending CN102591757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100011943A CN102591757A (en) 2011-01-05 2011-01-05 Verification method and verification environment platform based on intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100011943A CN102591757A (en) 2011-01-05 2011-01-05 Verification method and verification environment platform based on intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM)

Publications (1)

Publication Number Publication Date
CN102591757A true CN102591757A (en) 2012-07-18

Family

ID=46480455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100011943A Pending CN102591757A (en) 2011-01-05 2011-01-05 Verification method and verification environment platform based on intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM)

Country Status (1)

Country Link
CN (1) CN102591757A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812607A (en) * 2013-12-04 2014-05-21 安徽虹庄微电子有限公司 Method for simulating packet errors in transmission process of USB 3.0
CN104142876A (en) * 2013-05-06 2014-11-12 上海华虹集成电路有限责任公司 Function verification method and verification environmental platform for USB (universal serial bus) equipment controller modules
CN104462626A (en) * 2013-09-24 2015-03-25 上海华虹集成电路有限责任公司 RFIF verification platform based on VMM verification methodology and implementation method
CN104636521A (en) * 2013-11-14 2015-05-20 上海华虹集成电路有限责任公司 Smart card chip security authentication method based on VMM and authentication environment platform
CN104866415A (en) * 2014-02-25 2015-08-26 安凯(广州)微电子技术有限公司 VMM (verification methodology manual) based verification method and device for second-level cache
CN105301480A (en) * 2015-11-19 2016-02-03 四川和芯微电子股份有限公司 Test method of SOC chip
CN105320583A (en) * 2014-07-31 2016-02-10 上海华虹集成电路有限责任公司 UVM (universal verification methodology) based write-only register verification test platform and verification method
CN106294895A (en) * 2015-05-19 2017-01-04 上海华虹集成电路有限责任公司 HDCP transponder controller module level function verification method and verification environment platform

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609862A (en) * 2004-11-19 2005-04-27 华南理工大学 IP nuclear simulation confirmation platform based on PCI bus and proving method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609862A (en) * 2004-11-19 2005-04-27 华南理工大学 IP nuclear simulation confirmation platform based on PCI bus and proving method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘兆勇: "基于VMM 的外部存储器接口验证", 《微处理机》, no. 04, 30 April 2009 (2009-04-30), pages 1 - 4 *
刘旭恒: "基于VMM的外部存储接口模块的验证平台搭建", 《电子技术》, no. 09, 25 September 2010 (2010-09-25), pages 61 - 63 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142876A (en) * 2013-05-06 2014-11-12 上海华虹集成电路有限责任公司 Function verification method and verification environmental platform for USB (universal serial bus) equipment controller modules
CN104462626A (en) * 2013-09-24 2015-03-25 上海华虹集成电路有限责任公司 RFIF verification platform based on VMM verification methodology and implementation method
CN104636521A (en) * 2013-11-14 2015-05-20 上海华虹集成电路有限责任公司 Smart card chip security authentication method based on VMM and authentication environment platform
CN103812607A (en) * 2013-12-04 2014-05-21 安徽虹庄微电子有限公司 Method for simulating packet errors in transmission process of USB 3.0
CN104866415A (en) * 2014-02-25 2015-08-26 安凯(广州)微电子技术有限公司 VMM (verification methodology manual) based verification method and device for second-level cache
CN104866415B (en) * 2014-02-25 2018-01-30 安凯(广州)微电子技术有限公司 L2 cache verification method and device based on VMM
CN105320583A (en) * 2014-07-31 2016-02-10 上海华虹集成电路有限责任公司 UVM (universal verification methodology) based write-only register verification test platform and verification method
CN106294895A (en) * 2015-05-19 2017-01-04 上海华虹集成电路有限责任公司 HDCP transponder controller module level function verification method and verification environment platform
CN106294895B (en) * 2015-05-19 2019-11-12 上海华虹集成电路有限责任公司 HDCP transponder controller module grade function verification method and verification environment platform
CN105301480A (en) * 2015-11-19 2016-02-03 四川和芯微电子股份有限公司 Test method of SOC chip

Similar Documents

Publication Publication Date Title
CN102591757A (en) Verification method and verification environment platform based on intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM)
CN103530216B (en) A kind of PCIE based on UVM verifies system
CN107992390B (en) Chip debugging method based on-chip bus
CN110213143A (en) A kind of 1553B bus IP Core and monitoring system
CN105741879B (en) A kind of simulation intelligent electric energy meter memory test plate system and its test method
CN101419582B (en) MVB/USB adapter based on SOPC technology and communication method thereof
CN101105782A (en) Border scanning system based on high-performance computer communication framework
CN102967815A (en) Chip testing method, automated testing equipment and system
CN102591756A (en) Verification method and system for interface protocol compatibility of multi-interface protocol chip
CN106326167A (en) PCIE sub-card-based hot plugging method and apparatus
CN104050133A (en) Communication device and method for realizing communication between DSP and PC by means of PCIE on basis of FPGA
CN106598639A (en) Upgrading method and system for logic chip
CN203260029U (en) System chip prototype verification debugging device based on field programmable gate array (FPGA)
CN101114249A (en) I2C bus testing apparatus of mainboard and method thereof
CN115695234A (en) System-level verification platform for PCIe bus network interface card
CN101458305B (en) Embedded module test and maintenance bus system
CN208207795U (en) A kind of system for realizing Rapid IO and PCIE data conversion
CN109358995A (en) A kind of multifunctional testing backboard and test method
CN202815170U (en) Chip test system
CN109815073A (en) A kind of test method of the High Speed Serial SRIO based on PXI platform
CN205563550U (en) KVM module of PS2 interface based on soft nuclear of microblaze
CN109116314A (en) VPX module universal testing method
CN108153624B (en) Test circuit board suitable for NGFF slot
CN106709120A (en) PCIE (peripheral component interface express) verification method
CN101344874B (en) Method and device for controlling I2C device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C05 Deemed withdrawal (patent law before 1993)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120718