CN104123212A - System test method of USB chip - Google Patents
System test method of USB chip Download PDFInfo
- Publication number
- CN104123212A CN104123212A CN201410347403.3A CN201410347403A CN104123212A CN 104123212 A CN104123212 A CN 104123212A CN 201410347403 A CN201410347403 A CN 201410347403A CN 104123212 A CN104123212 A CN 104123212A
- Authority
- CN
- China
- Prior art keywords
- chip
- usb
- test
- encoding
- detection method
- 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.)
- Granted
Links
Landscapes
- Tests Of Electronic Circuits (AREA)
Abstract
The invention discloses a system test method of a USB chip. The method is used for performing system test on a USB 3.0 chip and comprises steps as follows: a, a test encoding module marks all logic states in the standard USB 3.0 chip according to the sequence, and corresponding marking functions are generated; b, the test encoding module encodes the marking functions corresponding to the internal logic states of the chip according to a set encoding rule, and standard encoding values are formed and recorded into a standard file library; c, in a simulation process of the to-be-tested USB 3.0 chip, the test module encodes the internal logic states of the to-be-tested USB 3.0 chip according to the same encoding rule, obtained encoding values are recorded into a temporary file, encoding value contents and standard encoding value contents are compared, and the encoding value contents with different results are searched. According to the system test method of the USB chip, the investment cost is low, and the method and logic simulation are performed simultaneously in the test process, so that real time monitoring and error locating can be performed to the internal logic states of the USB 3.0 chip rapidly.
Description
Technical field
The present invention relates to chip system field tests, relate more specifically to a kind of system detection method of USB chip.
Background technology
The system testing technology of existing USB3.0 chip is mainly to utilize thereafter relevant USB3.0 standard testing function to carry out system testing to USB3.0 chip by FPGA plate, USB3.0 logic analyser, its hardware finished product test after mainly taking to have designed, with USB3.0 logic analyser, to connecting USB3.0 main frame and carrying out the test of related protocol from the system of machine equipment, cannot accomplish in logical design just logic state real-time error and the location to protocol processes.
And the shortcoming of the system test mode of prior art USB3.0 chip is that cost of investment is high, because logic analyser and correlative measurement test plate (panel) (as FPGA plate) cost is higher, and cannot accomplish monitoring and location of mistake in real time to USB3.0 chip internal logic state, can only check external data, therefore location of mistake speed is slow, evening positioning time.
Therefore, be necessary to provide a kind of system detection method of improved USB chip to overcome above-mentioned defect.
Summary of the invention
The system detection method that the object of this invention is to provide a kind of USB chip, for USB3.0 chip is carried out to system testing, the system detection method cost of investment of USB chip of the present invention is low, at test process, synchronize and carry out with logical simulation, thereby can to USB3.0 chip internal logic state, monitor in real time and location of mistake fast.
For achieving the above object, the invention provides a kind of system detection method of USB chip, for USB3.0 chip is carried out to system testing, it comprises the steps: that a. detects coding module by the mark successively in order of all logic states in standard USB3.0 chip, and produces corresponding labeling function; B. detect coding module according to the coding rule of setting, the corresponding labeling function of chip internal logic state encoded, form standard code value, and by standard code value record in normative document storehouse; C. in USB3.0 chip emulation process to be measured, detection module is encoded USB3.0 chip internal logic state to be measured according to identical coding rule, the encoded radio obtaining after coding is recorded in temporary file, and the standard code value content in the encoded radio content in temporary file and normative document storehouse is contrasted, search the inconsistent encoded radio content of comparing result.
Preferably, the coding rule in described step c is identical with the coding rule in described step b.
Preferably, in described step c, by test logic code, USB3.0 chip to be measured is carried out to system testing.
Preferably, in described step c, when the result of the standard code value content contrast of recording in the encoded radio content in temporary file and normative document storehouse is inconsistent, end contrast, according to described label information, locate inconsistent encoded radio content, find out the position in the USB3.0 chip to be measured of wrong place.
Preferably, described labeling function is stored in test platform one fixed data storehouse.
Compared with prior art, the system detection method of USB chip of the present invention, by the standard code value content recording in the encoded radio content in temporary file and normative document storehouse is contrasted successively, the real-time monitoring of realization to tested USB3.0 chip, when comparing result is inconsistent, can judge that tested USB3.0 chip makes mistakes, thereby by comparing result, can judge whether tested USB3.0 chip has makes mistakes, and by the inconsistent position of comparing result, can locate exactly the position that USB3.0 chip is made mistakes, can to mistake, position rapidly.
By following description also by reference to the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are used for explaining the present invention.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the system detection method of USB chip of the present invention.
Embodiment
With reference now to accompanying drawing, describe embodiments of the invention, in accompanying drawing, similarly element numbers represents similar element.As mentioned above, the invention provides a kind of system detection method of USB chip, for USB3.0 chip is carried out to system testing, the system detection method cost of investment of USB chip of the present invention is low, at test process, synchronize and carry out with logical simulation, thereby can to USB3.0 chip internal logic state, monitor in real time and location of mistake fast.
Please refer to Fig. 1, Fig. 1 is the process flow diagram of the method for testing of USB chip of the present invention.As shown in Figure 1, the method for testing of described USB chip, is specially the method for testing of USB3.0 chip in the present invention, comprises the steps:
Step S101, detects coding module by the mark successively in order of all logic states in standard USB3.0 chip, and produces corresponding labeling function; In this step, the detection coding module of detection platform carries out mark in order successively by all logic states of standard USB3.0 chip, and produces corresponding labeling function; For example logic state LTSSM, SS.Disabled, SS.Inactive, Rx.Detect, Polling, compliance, Recovery, U0, U1, U2, U3, loopback, HotReset are marked as to 0x1001,0x1002,0x1003,0x1004,0x1005,0x1006,0x1007,0x1008,0x1009,0x100a, 0x100b, 0x100c successively, and other logic state codings are similar; In addition, associated monitoring point is added automatically to each logic state of chip internal to be measured in the trial function storehouse that adopts perl, C etc. to write in the preferred embodiment of the present invention.
Step S102, detects coding module according to the coding rule of setting, and the corresponding labeling function of chip internal logic state is encoded, and forms standard code value, and by standard code value record in normative document storehouse; In this step, described detection coding module, under the regulation of USB3.0 agreement, is encoded to the labeling function producing by mark, thereby forms standard code value, and by standard code value record in the normative document storehouse of test platform; Wherein said coding regulation, for the conventional coding rule under USB3.0 agreement, is no longer carefully stated at this.For example at USB3.0 chip, enumerate normally in data transmission procedure, logic state in LTSSM related protocol is: SS.Disabled--Rx.Detect--Polling--U0, first each logic state is marked as to 0x1001,0x1003,0x1004,0x1007, and then each logic state is encoded, store in normative document storehouse; In addition, in the preferred embodiment of the present invention, described labeling function is stored in test platform one fixed data storehouse, thereby the labeling function in described normative document storehouse can repeatedly used in test.
Step S103, in USB3.0 chip emulation process to be measured, detection module is encoded USB3.0 chip internal logic state to be measured according to identical coding rule, the encoded radio obtaining after coding is recorded in temporary file, and the standard code value content in the encoded radio content in temporary file and normative document storehouse is contrasted, search the inconsistent encoded radio content of comparing result, in this step, utilize test logic code to carry out system testing to USB3.0 chip to be measured, in carrying out, test by test detection module, USB3.0 chip internal logic state to be measured is encoded according to the coding rule identical with step S102, encoded radio after coding is recorded in the temporary file of test platform, and the standard code value content of the encoded radio content in temporary file and tab file record is contrasted successively, wherein encoded radio content specifically comprises each logical value in USB3.0 chip, place module position, the information such as wrong numerical value that should not occur.In the preferred embodiment of the present invention, when the result of the standard code value content contrast of recording in the encoded radio content in temporary file and normative document storehouse is inconsistent, illustrate that current USB3.0 chip to be measured exists mistake, thereby end contrast, and locate inconsistent encoded radio content according to described label information, find out the position in the USB3.0 chip to be measured of wrong place, i.e. the location of mistake to current USB3.0 chip to be measured; When the result of the encoded radio content in temporary file and the standard code value content contrast of recording in normative document storehouse is consistent, illustrate that current USB3.0 chip to be measured, by test, does not have problems.
The method of testing of USB chip of the present invention, the method of testing that is specially USB3.0 chip is carried out system testing by call preprepared trial function storehouse on test platform to USB3.0 chip to be measured, and in test process, do not need to use FPGA plate and USB3.0 logic analyser, thereby cost of investment is low; In addition, the test process of the system detection method of USB chip of the present invention is almost synchronizeed with logical simulation, thereby can to the logic state of chip internal, monitor in real time fast and carry out location of mistake.
Invention has been described for above combination most preferred embodiment, but the present invention is not limited to the embodiment of above announcement, and should contain the various modifications of carrying out according to essence of the present invention, equivalent combinations.
Claims (5)
1. a system detection method for USB chip, for USB3.0 chip is carried out to system testing, is characterized in that, comprises the steps:
A. detect coding module by the mark successively in order of all logic states in standard USB3.0 chip, and produce corresponding labeling function;
B. detect coding module according to the coding rule of setting, the corresponding labeling function of chip internal logic state encoded, form standard code value, and by standard code value record in normative document storehouse;
C. in USB3.0 chip emulation process to be measured, detection module is encoded USB3.0 chip internal logic state to be measured according to identical coding rule, the encoded radio obtaining after coding is recorded in temporary file, and the standard code value content in the encoded radio content in temporary file and normative document storehouse is contrasted, search the inconsistent encoded radio content of comparing result.
2. the system detection method of USB chip as claimed in claim 1, is characterized in that, the coding rule in described step c is identical with the coding rule in described step b.
3. the system detection method of USB chip as claimed in claim 1, is characterized in that, in described step c, by test logic code, USB3.0 chip to be measured is carried out to system testing.
4. the system detection method of USB chip as claimed in claim 1, it is characterized in that, in described step c, when the result of the standard code value content contrast of recording in the encoded radio content in temporary file and normative document storehouse is inconsistent, end contrast, according to described label information, locate inconsistent encoded radio content, find out the position in the USB3.0 chip to be measured of wrong place.
5. the system detection method of USB chip as claimed in claim 1, is characterized in that, described labeling function is stored in test platform one fixed data storehouse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410347403.3A CN104123212B (en) | 2014-07-21 | 2014-07-21 | The system detection method of USB chips |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410347403.3A CN104123212B (en) | 2014-07-21 | 2014-07-21 | The system detection method of USB chips |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104123212A true CN104123212A (en) | 2014-10-29 |
CN104123212B CN104123212B (en) | 2017-03-15 |
Family
ID=51768632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410347403.3A Active CN104123212B (en) | 2014-07-21 | 2014-07-21 | The system detection method of USB chips |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104123212B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965166A (en) * | 2015-07-16 | 2015-10-07 | 四川和芯微电子股份有限公司 | Test method of USB chip and system thereof |
CN109444716A (en) * | 2018-11-27 | 2019-03-08 | 中科曙光信息产业成都有限公司 | A kind of sweep test structure and method with positioning function |
CN112597444A (en) * | 2020-12-29 | 2021-04-02 | 芯启源电子科技有限公司 | USB device IP infringement identification method based on USB protocol and terminal thereof |
CN114325333A (en) * | 2021-12-30 | 2022-04-12 | 江苏集萃智能集成电路设计技术研究所有限公司 | High-efficiency normalized SOC (system on chip) system level verification method and device |
CN114384400A (en) * | 2022-01-13 | 2022-04-22 | 集睿致远(厦门)科技有限公司 | Positioning system and positioning method for chip abnormal signals |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262205B (en) * | 2010-05-31 | 2015-08-26 | 无锡中星微电子有限公司 | A kind of screen method of test point of test vector source file and shield assembly |
CN102214154A (en) * | 2011-05-31 | 2011-10-12 | 上海交通大学 | USB (Universal Serial Bus)-based communication module and communication method for alternating current servo driver |
-
2014
- 2014-07-21 CN CN201410347403.3A patent/CN104123212B/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965166A (en) * | 2015-07-16 | 2015-10-07 | 四川和芯微电子股份有限公司 | Test method of USB chip and system thereof |
CN109444716A (en) * | 2018-11-27 | 2019-03-08 | 中科曙光信息产业成都有限公司 | A kind of sweep test structure and method with positioning function |
CN109444716B (en) * | 2018-11-27 | 2021-08-10 | 中科曙光信息产业成都有限公司 | Scanning test structure with positioning function and method |
CN112597444A (en) * | 2020-12-29 | 2021-04-02 | 芯启源电子科技有限公司 | USB device IP infringement identification method based on USB protocol and terminal thereof |
WO2022141731A1 (en) * | 2020-12-29 | 2022-07-07 | 芯启源(上海)半导体科技有限公司 | Usb device ip infringement identification method and terminal based on usb protocol |
CN112597444B (en) * | 2020-12-29 | 2024-01-09 | 芯启源(上海)半导体科技有限公司 | USB equipment IP infringement identification method based on USB protocol and terminal thereof |
US11977609B2 (en) | 2020-12-29 | 2024-05-07 | Corigine (Shanghai), Inc. | USB device IP infringement identification method and terminal based on USB protocol |
CN114325333A (en) * | 2021-12-30 | 2022-04-12 | 江苏集萃智能集成电路设计技术研究所有限公司 | High-efficiency normalized SOC (system on chip) system level verification method and device |
CN114384400A (en) * | 2022-01-13 | 2022-04-22 | 集睿致远(厦门)科技有限公司 | Positioning system and positioning method for chip abnormal signals |
Also Published As
Publication number | Publication date |
---|---|
CN104123212B (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107808831B (en) | Whole-course traceable semiconductor test data recording method | |
CN106951364B (en) | Test method and device | |
CN104123212A (en) | System test method of USB chip | |
CN105022694B (en) | Method for generating test case and system for mobile terminal test | |
CN105956410B (en) | A kind of Universal-purpose quick detection method of IEC61850 full models | |
CN105223889A (en) | Method for automatically monitoring PMC RAID card log suitable for production line | |
WO2018195795A1 (en) | Test method, test server, and system | |
CN104881355A (en) | Method and system for testing test coverage | |
US20130111268A1 (en) | Testing device capable of simulating plugging and unplugging operations and method thereof | |
EP2700961B1 (en) | Test and measurement instrument with auto-sync for bit-error detection | |
CN105372545A (en) | A cable error prevention method based on code identification | |
CN113611348B (en) | Dotting method and device, electronic equipment and storage medium | |
CN103913672A (en) | Satellite low-frequency interface automatic testing system | |
CN103838664A (en) | Pressure testing method and device | |
CN105653455A (en) | Program vulnerability detection method and detection system | |
CN103336935B (en) | A kind of probe card identification apparatus and method | |
CN117214664A (en) | Method, system, device, equipment and storage medium for offline testing chip | |
CN106886471A (en) | A kind of read-write fault detection method and system based on disk in linux | |
CN103165405A (en) | Mutli-dimensional variable code real-time generation method through general purpose interface bus (GPIB) interface | |
CN106257257A (en) | A kind of detect the method for optical module planisphere, device and virtual vector analyser | |
CN104361012A (en) | Testing method and device for route data of urban rail traffic engineering | |
CN113743039B (en) | Method, device, storage medium and equipment for checking network label designed by schematic diagram | |
CN105227333B (en) | The method and apparatus of network element device data maintenance | |
CN108615543A (en) | Self checking method for discrete magnitude signal processing chip | |
CN114942623B (en) | Method and device for testing controller, vehicle and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |