CN102298112B - The method of testing of a kind of PLD and system - Google Patents

The method of testing of a kind of PLD and system Download PDF

Info

Publication number
CN102298112B
CN102298112B CN201110114893.9A CN201110114893A CN102298112B CN 102298112 B CN102298112 B CN 102298112B CN 201110114893 A CN201110114893 A CN 201110114893A CN 102298112 B CN102298112 B CN 102298112B
Authority
CN
China
Prior art keywords
pld
measured
packet
result
function
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.)
Expired - Fee Related
Application number
CN201110114893.9A
Other languages
Chinese (zh)
Other versions
CN102298112A (en
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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110114893.9A priority Critical patent/CN102298112B/en
Publication of CN102298112A publication Critical patent/CN102298112A/en
Application granted granted Critical
Publication of CN102298112B publication Critical patent/CN102298112B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Logic Circuits (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses the method for testing of a kind of PLD and system, including: adopt computer language to realize the function of PLD to be measured, perform this function and packet is processed; Further, also delivering a packet to PLD to be measured, packet is processed by PLD to be measured; The result of packet is carried out comparison in difference with PLD to be measured by the result of packet by the function realized by computer language, and exports comparative result. The logical design of communications protocol is adopted computer language to describe by the present invention, solve in logical design, every test index carries out the limitation tested only by logical language, provide the method utilizing computer language verifying logic to design, reduce the difficulty of test job, improve the reliability of test result.

Description

The method of testing of a kind of PLD and system
Technical field
The present invention relates to technology of CPLD field, particularly relate to method of testing and the system of a kind of PLD.
Background technology
Along with PLD more and more uses in design of electronic circuits, the function of its integrated level, density, performance and realization is also more and more stronger.
In order to check by the ability to work of type selecting logical device, the integrity of verifying logic development function, it is necessary to the development process of PLD is carried out a series of test.
The method being currently used for that the development process of PLD is tested has two kinds:
A kind of development platform provided by logical device producer carries out system emulation, and this method cannot to the disposal ability of logical device, and response speed carries out directviewing description.
Another kind of use measures instrument, by oscillograph and logic analyser, the development result of PLD is intuitively caught, this test is based upon on the basis of logic development result basic forming, it is impossible to provide early stage design considerations and design object for logic development process.
Therefore, existing verification method cannot provide the solution of complete set all sidedly for the test in PLD development process.
Summary of the invention
The technical problem to be solved in the present invention is to provide method of testing and the system of a kind of PLD, it is possible to PLD is tested by the development process at PLD.
For solving above-mentioned technical problem, the method for testing of a kind of PLD of the present invention, including:
Adopt computer language to realize the function of PLD to be measured, perform function and packet is processed; Further, also delivering a packet to PLD to be measured, packet is processed by PLD to be measured;
The result of packet is carried out comparison in difference with PLD to be measured by the result of packet by the function realized by computer language, and exports comparative result.
Further, the function that computer language realizes PLD to be measured is adopted to include:
Computer language is adopted to redefine the logical language used on PLD to be measured;
The computer language corresponding with logical language is adopted to describe the function of PLD to be measured.
Further, also include:
Generate protocol package, send protocol package to PLD to be measured, according to the PLD to be measured result to protocol package, PLD to be measured is carried out functional fault detection.
Further, also include:
Performing after packet processes by function, and after packet processes by PLD to be measured, showing result respectively.
Further, deliver a packet to PLD to be measured include:
Tester of giving out a contract for a project produces packet, and delivers a packet to PLD to be tested by cascade communication equipment.
Further, the test system of a kind of PLD, including: data transmission interface, behavior description processing unit, PLD to be measured and contrast difference's unit, wherein:
Data transmission interface, for sending packet to behavior description processing unit and PLD to be measured;
Behavior description processing unit, for adopting computer language to realize the function of PLD to be measured, after receiving the packet that data transmission interface sends, performs function and packet is processed, result exports contrast difference's unit;
PLD to be measured, for, after receiving the packet that data transmission interface sends, processing packet, result export contrast difference's unit;
Contrast difference's unit, for the result of behavior description processing unit and PLD to be measured is carried out comparison in difference, and exports comparative result.
Further, data transmission interface includes: give out a contract for a project tester and cascade communication equipment, wherein:
Give out a contract for a project tester, be used for producing packet, and the packet of generation is sent to cascade communication equipment;
Cascade communication equipment, for being sent respectively to behavior description processing unit and PLD to be measured by the packet that tester of giving out a contract for a project produces.
Further, the function that behavior description processing unit realizes PLD to be measured by adopting computer language is to adopt computer language to redefine the logical language used on PLD to be measured; And adopt the computer language corresponding with logical language to describe the function of PLD to be measured.
Further, functional fault unit is also included;
Give out a contract for a project tester, be additionally operable to generate protocol package, by cascade communication equipment, protocol package is sent to functional fault unit;
Functional fault unit, for sending protocol package to PLD to be measured, according to the PLD to be measured result to protocol package, carries out functional fault detection to PLD to be measured.
Further, contrast difference's unit, it is additionally operable to the behavior description processing unit result to packet, and the result of packet is displayed by PLD to be measured respectively.
In sum, the logical design of communications protocol is adopted computer language to describe by the present invention, solve in logical design, every test index carries out the limitation tested only by logical language, provide the method utilizing computer language verifying logic to design, reduce the difficulty of test job, improve the reliability of test result.
Accompanying drawing explanation
Fig. 1 is the Organization Chart of the test system of the PLD of the present invention;
Fig. 2 is the structural representation of the data transmission interface adopted in the present invention;
Fig. 3 is the flow chart of the method for testing of the PLD of the present invention.
Detailed description of the invention
Present embodiment mainly comprises two parts: the concordance demonstration of logical design event and differentiation contrast. The concordance demonstration of logical design event is logical design event to be calculated machine language describe and algorithm process; Differentiation contrast is the result that logical design result and computer language describe to be compared, in order to the integrity of verifying logic design.
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with accompanying drawing, embodiments of the invention are described in detail. It should be noted that when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
As it is shown in figure 1, the test system of the PLD of present embodiment includes: behavior description processing unit, data transmission interface, contrast difference's unit and functional fault unit, wherein:
Behavior description processing unit, function for being realized by PLD is realized by computer language, namely with computer language, such as C language etc., logical language is redefined, and adopt the computer corresponding with logical language to describe the function of PLD to be measured, and completing the definition to logical code, the function that PLD realizes can be that communications protocol processes function etc. Behavior description processing unit is installed on computers.
Data transmission interface, for realizing being transferred to packet behavior description processing unit and PLD to be measured, and also generates protocol package, by protocol package is sent to functional fault unit.
With reference to Fig. 2, data transmission interface includes give out a contract for a project tester and cascade communication equipment, the packet that tester of giving out a contract for a project produces is transferred to PLD to be measured and behavior description processing unit by cascade communication equipment, and the protocol package that tester of giving out a contract for a project produces is sent to functional fault unit.
Contrast difference's unit, for receiving and record behavior description processing unit and the PLD to be measured result to packet, the result of function realized by computer language compares output comparative result with the result of tested PLD; Also by the behavior description processing unit result to packet, and the result of packet is displayed by PLD to be measured respectively.
Functional fault unit, is used for producing specific communications protocol bag, sends protocol package to PLD to be measured, according to the PLD to be measured result to protocol package, PLD to be measured is carried out functional fault detection.
Fig. 3 show the method for testing of the PLD of present embodiment, including:
Step 301: tester of giving out a contract for a project sends packet by cascade communication equipment respectively to behavior description processing unit and PLD to be measured;
Step 302: behavior description processing unit and PLD to be measured all process the packet received from tester of giving out a contract for a project;
The step processing packet includes: receive packet, decomposes, extracts related protocol bag, searches the packet header of required protocol package, such as 1588 agreements etc., it may be judged whether process the protocol package extracted, if need not process, then again detect the protocol package of reception, if desired process, perform processing procedure.
Step 303: result is imported in contrast difference's unit by behavior description processing unit and PLD to be measured respectively;
Step 304: the result of behavior description processing unit and PLD to be measured is compared by contrast difference's unit, and exports comparative result, to reach the purpose of verifying logic design result;
Step 305: functional fault unit sends protocol package to PLD to be measured, and PLD to be measured carries out functional fault detection, and recording test time and test result.
By above five steps, it is possible to verifying logic is designed and developed the integrity of function and is shown to tester intuitively.
Obviously, those skilled in the art should be understood that, each module of the above-mentioned present invention, each step can realize with general calculation element, they can concentrate on single calculation element, or it is distributed on the network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, can be stored in storage device is performed by calculation element, or they are fabricated to respectively each integrated circuit modules, or their multiple modules or step are fabricated to single integrated circuit module realize. so, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only embodiments of the invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations. All within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.

Claims (4)

1. a method of testing for PLD, including:
Adopt computer language to realize the function of PLD to be measured, perform described function and packet is processed; The function that described employing computer language realizes PLD to be measured includes: including: adopt computer language to redefine the logical language used on described PLD to be measured; The computer language corresponding with described logical language is adopted to describe the function of described PLD to be measured; Further,
Tester of giving out a contract for a project produces described packet, and by cascade communication equipment, described packet is sent to described PLD to be measured, and described packet is processed by described PLD to be measured;
The result of described packet is carried out comparison in difference with described PLD to be measured by the result of described packet by the function realized by described computer language, and exports comparative result;
Also include: generate protocol package, send described protocol package to described PLD to be measured, according to the described PLD to be measured result to described protocol package, described PLD to be measured is carried out functional fault detection.
2. the method for claim 1, it is characterised in that also include:
Performing after packet processes by described function, and after described packet processes by described PLD to be measured, showing result respectively.
3. a test system for PLD, including: data transmission interface, behavior description processing unit, PLD to be measured and contrast difference's unit, also include functional fault unit; Wherein:
Described data transmission interface, for sending packet to described behavior description processing unit and PLD to be measured; Described data transmission interface includes give out a contract for a project tester and cascade communication equipment,
Described tester of giving out a contract for a project, is used for producing described packet, and the packet of generation is sent to described cascade communication equipment; It is additionally operable to generate protocol package, by described cascade communication equipment, described protocol package is sent to described functional fault unit;
Described cascade communication equipment, for being sent respectively to described behavior description processing unit and described PLD to be measured by the packet that described tester of giving out a contract for a project produces;
Described behavior description processing unit, for adopting computer language to realize the function of PLD to be measured, after receiving the packet that described data transmission interface sends, perform described function and described packet is processed, result is exported described contrast difference's unit; The function that described behavior description processing unit realizes PLD to be measured by adopting computer language is to adopt computer language to redefine the logical language used on described PLD to be measured; And adopt the computer language corresponding with described logical language to describe the function of described PLD to be measured;
Described PLD to be measured, for, after receiving the packet that described data transmission interface sends, processing described packet, result export described contrast difference's unit;
Described contrast difference's unit, for the result of described behavior description processing unit and PLD to be measured is carried out comparison in difference, and exports comparative result;
Described functional fault unit, for sending described protocol package to described PLD to be measured, according to the described PLD to be measured result to described protocol package, carries out functional fault detection to described PLD to be measured.
4. system as claimed in claim 3, it is characterised in that:
Described contrast difference's unit, is additionally operable to the described behavior description processing unit result to described packet, and the result of described packet is displayed by described PLD to be measured respectively.
CN201110114893.9A 2011-05-05 2011-05-05 The method of testing of a kind of PLD and system Expired - Fee Related CN102298112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110114893.9A CN102298112B (en) 2011-05-05 2011-05-05 The method of testing of a kind of PLD and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110114893.9A CN102298112B (en) 2011-05-05 2011-05-05 The method of testing of a kind of PLD and system

Publications (2)

Publication Number Publication Date
CN102298112A CN102298112A (en) 2011-12-28
CN102298112B true CN102298112B (en) 2016-06-01

Family

ID=45358667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110114893.9A Expired - Fee Related CN102298112B (en) 2011-05-05 2011-05-05 The method of testing of a kind of PLD and system

Country Status (1)

Country Link
CN (1) CN102298112B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104515947A (en) * 2014-12-12 2015-04-15 中国电子科技集团公司第五十八研究所 Rapid configuration and test method for programmable logic device in system programming
CN104678292B (en) * 2015-03-09 2018-10-09 新华三技术有限公司 A kind of complex programmable logic device (CPLD) test method and device
CN106558348A (en) * 2016-11-11 2017-04-05 北京京存技术有限公司 A kind of eMMC readwrite tests method and apparatus
US10916467B2 (en) * 2017-01-18 2021-02-09 Texas Instruments Incorporated Apparatus having on-chip fail safe logic for I/O signal in high integrity functional safety applications
CN107765174B (en) * 2017-09-07 2020-07-03 国营芜湖机械厂 Device and method for reversely solving large-scale combinational logic relationship of programmable logic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6052816A (en) * 1996-02-28 2000-04-18 Nec Corporation Programmable ROM and parity programmable ROM having a correction coding circuit
US6058253A (en) * 1996-12-05 2000-05-02 Advanced Micro Devices, Inc. Method and apparatus for intrusive testing of a microprocessor feature
CN101551774A (en) * 2009-04-24 2009-10-07 东莞虎门泰达电子有限公司 Software automatic test system
CN101840367A (en) * 2009-12-23 2010-09-22 上海高性能集成电路设计中心 Device for verifying floating point unit of microprocessor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02307125A (en) * 1989-05-22 1990-12-20 Nec Corp Detection system for cpu malfunction
CN1246777C (en) * 2001-02-14 2006-03-22 英业达股份有限公司 Method for testing CPU performance
DE102004010783A1 (en) * 2004-03-05 2005-09-29 Infineon Technologies Ag Method and circuit arrangement for testing electrical components
DE502005001065D1 (en) * 2005-05-02 2007-08-30 Accemic Gmbh & Co Kg Method and device for emulation of a programmable unit
CN101140314B (en) * 2007-10-12 2011-02-16 电子科技大学 On-site programmable gate array wire laying channel verification method and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6052816A (en) * 1996-02-28 2000-04-18 Nec Corporation Programmable ROM and parity programmable ROM having a correction coding circuit
US6058253A (en) * 1996-12-05 2000-05-02 Advanced Micro Devices, Inc. Method and apparatus for intrusive testing of a microprocessor feature
CN101551774A (en) * 2009-04-24 2009-10-07 东莞虎门泰达电子有限公司 Software automatic test system
CN101840367A (en) * 2009-12-23 2010-09-22 上海高性能集成电路设计中心 Device for verifying floating point unit of microprocessor

Also Published As

Publication number Publication date
CN102298112A (en) 2011-12-28

Similar Documents

Publication Publication Date Title
CN108737187B (en) CAN bus fault simulation system and fault simulation method
CN111209203B (en) Model verification method based on source code
CN102298112B (en) The method of testing of a kind of PLD and system
CN113342583B (en) Chip verification system, method, device, equipment and storage medium
CN113434355B (en) Module verification method, UVM verification platform, electronic device and storage medium
CN108959678B (en) Method and apparatus for testing the design of satellite wiring harnesses and signal processing units
CN113572726B (en) Multimode network control-data plane consistency verification method and device
CN107195131A (en) A kind of method and device of analog hardware equipment
Jiang et al. Safety-assured model-driven design of the multifunction vehicle bus controller
CN102707712B (en) Electronic equipment fault diagnosis method and system
CN102968367A (en) Static detection method on basis of embedded software and system thereof
CN107966648B (en) A kind of embedded failure diagnosis method based on correlation matrix
CN114816980A (en) Automatic testing device and method for embedded communication system
CN107294814A (en) The method of testing and device of a kind of network-on-chip
Chung et al. Testing of concurrent programs based on message sequence charts
CN110572296B (en) Internet of things terminal equipment communication protocol consistency safety detection method
CN111240972B (en) Model verification device based on source code
CN106919748B (en) Device and method for improving FPGA prototype verification efficiency
CN112699648B (en) Data processing method and device
CN114706768A (en) I3C bus verification method and verification system
CN111786842B (en) Data processing method and hardware-in-the-loop test system
Lee et al. Collecting big data from automotive ECUs beyond the CAN bandwidth for fault visualization
CN110659215A (en) Open type industrial APP rapid development and test verification method
US9477800B1 (en) System, method, and computer program product for automatically selecting a constraint solver algorithm in a design verification environment
CN113010409B (en) Intelligent contract testing method and device, electronic equipment and 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160601

Termination date: 20190505

CF01 Termination of patent right due to non-payment of annual fee