The content of the invention
In view of the above problems, the embodiment of the present invention proposes a kind of pumping signal processing method, device and module verification system
System, realizes application of the same pumping signal processing unit under distinct interface agreement scene in checking system.
One aspect of the present invention, there is provided a kind of pumping signal processing method, methods described includes:
|input paramete according to user configuring selects corresponding exciting signal source;
The pumping signal of the exciting signal source generation is obtained, and according to preset signals treatment strategy to the pumping signal
Pre-processed, obtained meeting the target excitation signal of the input request signal of design under test;
Determine the interface protocol of the data transmission interface of the design under test, loading matches with the interface protocol
Pumping signal driver element;
The target excitation signal is converted into meet testing for the interface protocol using the pumping signal driver element
Card input signal, and the checking input signal is transferred to by the design under test by the data transmission interface.
Alternatively, methods described also includes:
When the interface protocol of the data transmission interface of the design under test changes, or it is applied to the mould to be verified
Other data transmission interfaces of block, or when being applied to the data transmission interface of other design under test, according to present data transmission
The current interface agreement of interface, reloads the pumping signal driver element matched with current interface agreement.
Alternatively, it is characterised in that described the pumping signal is pre-processed according to preset signals treatment strategy, wrap
Include:
The time delay for specifying time span or random time length is inserted in the pumping signal, and/or, to described
Pumping signal carries out wrong plug or encryption.
Alternatively, the exciting signal source includes built-in exciting signal source and external drive signal source;
Before the corresponding exciting signal source according to the selection of the |input paramete of user configuring, methods described also includes:
Set up and the connection between the external drive signal source.
Alternatively, the interface protocol of the data transmission interface for determining the design under test, loading and the interface
The pumping signal driver element that agreement matches, including:
Default mapping relations are searched according to the interface protocol, to obtain the pumping signal matched with the interface protocol
Driver element, includes the corresponding relation between interface protocol and pumping signal driver element in the default mapping relations;
The pumping signal driver element that loading gets.
Another aspect of the present invention, there is provided a kind of pumping signal processing unit, described device includes:
Selecting module, for selecting corresponding exciting signal source according to the |input paramete of user configuring;
Processing module, the pumping signal for obtaining the exciting signal source generation, and according to preset signals treatment strategy
The pumping signal is pre-processed, obtains meeting the target excitation signal of the input request signal of design under test;
Control module, the interface protocol of the data transmission interface for determining the design under test, loading connects with described
The pumping signal driver element that mouth agreement matches;
Drive module, for being converted into the target excitation signal using the pumping signal driver element to meet described
The checking input signal of interface protocol, and be transferred to the checking input signal by the data transmission interface described to be tested
Card module.
Alternatively, the control module, is additionally operable to the interface protocol hair when the data transmission interface of the design under test
Changing, or it is applied to other data transmission interfaces of the design under test, or the data for being applied to other design under test
During coffret, current interface agreement according to present data transmission interface is reloaded and matched with current interface agreement
Pumping signal driver element.
Alternatively, the processing module, specifically in the pumping signal insert specify time span or it is random when
Between length time delay, and/or, wrong plug or encryption are carried out to the pumping signal.
Alternatively, the exciting signal source includes built-in exciting signal source and external drive signal source;
Described device also includes:
Configuration module, believes in the selecting module for described according to the corresponding excitation of the |input paramete of user configuring selection
Before number source, set up and the connection between the external drive signal source.
It is still another aspect of the present invention to provide a kind of module verification system, the system includes monitoring device, checking dress
Put and pumping signal processing unit as described above;
The checking device, in the drive module by the data transmission interface by the checking input signal
It is transferred to after the design under test, obtains the checking output signal of the checking input signal and the design under test,
And determine whether the design under test meets preset requirement according to the checking input signal and checking output signal;
The monitoring device, in the drive module by the data transmission interface by the checking input signal
It is transferred to after the design under test, the checking output signal of the design under test is monitored output.
Pumping signal processing method provided in an embodiment of the present invention, device and module verification system, pumping signal treatment dress
Put and be divided into difference in functionality module, functional module only related to interface protocol to some, such as pumping signal in verification process
Driver element, carries out adaptability loading, and without being reloaded to other functions module, and then convenient extension, increase work(newly
Can easily realize.And, the embodiment of the present invention, by the interface protocol of the data transmission interface according to design under test, loading
The pumping signal driver element matched with interface protocol, same driver is in distinct interface agreement in realizing checking system
Application under scene, reduces verification process system development and the workload safeguarded, while occurring in also reducing verification process
The probability of mistake, lifts the accuracy of the result.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by specific embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also
Understand, those terms defined in such as general dictionary, it should be understood that with the context with prior art
The consistent meaning of meaning, and unless by specific definitions, will not otherwise be explained with idealization or excessively formal implication.
For in the prior art, when the data transmission module of distinct interface agreement is verified, verify that personnel are needed according to not
Same interface protocol exploitation and many set driver of maintenance, not only increase the workloads developed and safeguard, the appearance mistake for also increasing
The problem of possibility by mistake.The embodiment of the present invention proposes a kind of pumping signal processing method and processing device.Pumping signal treatment
Device can be as conventional data transceiver module, as shown in Fig. 2 the driver of above-mentioned distinct interface agreement is merged into one by realization
Plant general driver.The interface of incoming driver is only changed when actually used, it is only related to interface protocol to some
Functional module, i.e. pumping signal driver element, carry out adaptability loading, you can realize same driver in distinct interface agreement
Application under scene.
Fig. 3 diagrammatically illustrates the flow chart of the pumping signal processing method of one embodiment of the invention.Reference picture 3, this
The pumping signal processing method of inventive embodiments specifically includes following steps:
S11, corresponding exciting signal source is selected according to the |input paramete of user configuring.
Exciting signal source in the embodiment of the present invention includes built-in exciting signal source and external drive signal source.Wherein, it is interior
It is the excitation signal generation unit carried inside pumping signal processing unit to put exciting signal source, and the external drive signal source can
Can be it to be the pumping signal adjusting device (sequencer) being connected with current excitation signal processing unit (driver)
He is driver.
In the embodiment of the present invention, by according to the |input paramete of user configuring determine pumping signal source, can from
Driver connected sequencer inputs, can be input into, it is also possible to according to certain rule inside driver from other driver
Voluntarily produce pumping signal.
S12, the pumping signal for obtaining the exciting signal source generation, and according to preset signals treatment strategy to the excitation
Signal is pre-processed, and obtains meeting the target excitation signal of the input request signal of design under test.
In the embodiment of the present invention, after the pumping signal of the acquisition exciting signal source generation, by the excitation to being input into
Signal according to preset signals treatment strategy processed, it is described according to preset signals treatment strategy the pumping signal is carried out it is pre-
Treatment, specifically includes:The time delay for specifying time span or random time length is inserted in the pumping signal, and/or,
Wrong plug or encryption are carried out to the pumping signal.
S13, determine the design under test data transmission interface interface protocol, loading and the interface protocol phase
The pumping signal driver element matched somebody with somebody.
Wherein, pumping signal driver element is directly related with the interface protocol that driver is applied, for by pumping signal
The data level signal that is converted into according to the requirement of interface protocol on interface.By pumping signal in the embodiment of the present invention
The function of various pieces is separated into different functions in processing unit (driver), to ensure to be directed to different interfaces in driver
When agreement is instantiated, it is only necessary to the heavily loaded sub-fraction function related to interface protocol, and other functions function can be most
The multiplexing of limits, as shown in figure 4, when pumping signal treatment is carried out, it is only necessary to which the pumping signal in heavily loaded dotted line drives single
Unit simultaneously changes corresponding interface interfaces, it is possible at the pumping signal in using the present invention under different applied environments
Reason device.
S14, the target excitation signal is converted into meet the interface protocol using the pumping signal driver element
Checking input signal, and by the data transmission interface by it is described checking input signal be transferred to the design under test.
Pumping signal processing method provided in an embodiment of the present invention, different work(are divided into by by pumping signal processing unit
Energy module, the functional module only related to interface protocol to some in verification process, such as pumping signal driver element are fitted
Answering property is loaded, and without being reloaded to other functions module, and then conveniently extend, what's new is easily realized.And,
The embodiment of the present invention, by the interface protocol of the data transmission interface according to design under test, loading matches with interface protocol
Pumping signal driver element, realize applications of the same driver under distinct interface agreement scene in checking system, subtract
Small verification process system development and the workload safeguarded, while occur the probability of mistake in also reducing verification process, lifting
The accuracy of the result.
In the embodiment of the present invention, before step S11, methods described also includes:Set up and the external drive signal source
Between connection the step of.
In the embodiment of the present invention, before corresponding exciting signal source is selected according to the |input paramete of user configuring, according to
The demand of verification environment determines that each driver obtains the source of pumping signal, and driver is encouraged with generation by port ports
The module of signal, such as sequencer or other driver, connection, neglect if pumping signal inside driver by voluntarily producing
Omit this step.
In the embodiment of the present invention, methods described is further comprising the steps of:When the data transmission interface of the design under test
Interface protocol change, or be applied to other data transmission interfaces of the design under test, or to be applied to other to be tested
When demonstrate,proving the data transmission interface of module, the current interface agreement according to present data transmission interface is reloaded and current interface
The pumping signal driver element that agreement matches.
In the embodiment of the present invention, in order to realize applications of the same driver under distinct interface agreement scene, enter one
Step reduces verification process system development and the workload safeguarded, by when driver is applied to different interfaces, such as working as and treating
The interface protocol of the data transmission interface of authentication module changes, or is applied to other data transfers of design under test and connects
Mouthful, or, it is necessary to heavily loaded this function and coordinate accordingly when being applied to the data transmission interface of other design under test
Interface interfaces.
In an alternate embodiment of the present invention where, the interface of the data transmission interface for determining the design under test
Agreement, the pumping signal driver element that loading matches with the interface protocol, specifically includes following steps:
Default mapping relations are searched according to the interface protocol, to obtain the pumping signal matched with the interface protocol
Driver element, includes the corresponding relation between interface protocol and pumping signal driver element in the default mapping relations;
The pumping signal driver element that loading gets.
In the embodiment of the present invention, by pre-set include it is corresponding between interface protocol and pumping signal driver element
The mapping relations of relation, and the pumping signal driver element matched with interface protocol is realized by way of searching mapping relations
Lookup, the pumping signal driver element of matching can be quickly found, realize the checking of module, and then improve the checking of module
Efficiency, lifts Consumer's Experience.
Technical solution of the present invention is further described in detail below by a specific embodiment.
Referring to Fig. 4, Fig. 4 is a kind of inside theory diagram of pumping signal processing unit of the embodiment of the present invention, is described
, be described as follows for design procedure below by the design principle of driver in the embodiment of the present invention:
Step 0:Driver inside difference in functionality is defined as difference in functionality module;
Step 1:Statement virtual interface, are extended when conveniently calling;
Step 2:Realize " pumping signal generation " power function;
Step 3:" pumping signal selection " power function is realized, the source of pumping signal is selected by parameter;
Step 4:" pumping signal driving " power function is defined as pure virtual function, is extended when conveniently calling.
It should be noted that the module to be measured in the embodiment of the present invention can be DMA control modules and core in chip
The module with data transmission interface agreement such as bus control unit in piece.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but this area
Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention
Example, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Fig. 5 diagrammatically illustrates the structural representation of the pumping signal processing unit of one embodiment of the invention.Reference picture
5, the pumping signal processing unit of the embodiment of the present invention specifically include selecting module 501, processing module 502, control module 503 with
And drive module 504, wherein:Described selecting module 501, for selecting corresponding excitation according to the |input paramete of user configuring
Signal source;Described processing module 502, the pumping signal for obtaining the exciting signal source generation, and according to preset signals
Treatment strategy is pre-processed to the pumping signal, obtains meeting the target excitation letter of the input request signal of design under test
Number;Described control module 503, the interface protocol of the data transmission interface for determining the design under test, loading and institute
State the pumping signal driver element that interface protocol matches;Described drive module 504, for being driven using the pumping signal
The target excitation signal is converted into meeting unit the checking input signal of the interface protocol, and by the data transfer
The checking input signal is transferred to the design under test by interface.
Pumping signal processing unit provided in an embodiment of the present invention, difference in functionality mould is divided into by pumping signal processing unit
Block, such as functional module only related to interface protocol to some in verification process, pumping signal driver element, carries out adaptability
Loading, and without being reloaded to other functions module, and then conveniently extend, what's new is easily realized.And, this hair
Bright embodiment, by the interface protocol of the data transmission interface according to design under test, loading is sharp with what interface protocol matched
Signal driving unit is encouraged, applications of the same driver under distinct interface agreement scene in checking system is realized, reduced
Verification process system development and the workload safeguarded, while occur the probability of mistake in also reducing verification process, lifting checking
The accuracy of result.
In an alternate embodiment of the present invention where, the control module 503, is additionally operable to the number when the design under test
Changed according to the interface protocol of coffret, or be applied to other data transmission interfaces of the design under test, or application
When the data transmission interface of other design under test, the current interface agreement according to present data transmission interface is reloaded
The pumping signal driver element matched with current interface agreement.
In an alternate embodiment of the present invention where, the processing module, specifically for being inserted in the pumping signal
The time delay of time span or random time length is specified, and/or, wrong plug or encryption are carried out to the pumping signal.
In an alternate embodiment of the present invention where, the control module, specifically for being searched according to the interface protocol
Default mapping relations, to obtain the pumping signal driver element matched with the interface protocol, in the default mapping relations
Include the corresponding relation between interface protocol and pumping signal driver element;Add after pumping signal driver element is got
Carry the pumping signal driver element.
In an alternate embodiment of the present invention where, the exciting signal source includes built-in exciting signal source and external drive
Signal source.
Further, described device also includes the configuration module not shown in accompanying drawing, described configuration module, for described
Before the selecting module selects corresponding exciting signal source according to the |input paramete of user configuring, set up and swash with the outside
Encourage the connection between signal source.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part is illustrated referring to the part of embodiment of the method.
Additionally, the embodiment of the present invention additionally provides a kind of module verification system, the system includes monitoring device, checking dress
Put and the pumping signal processing unit as described in above-mentioned any embodiment;Wherein, described checking device, in the drive
Be transferred to the checking input signal after the design under test by the data transmission interface by dynamic model block, obtains described
The checking output signal of checking input signal and the design under test, and according to the checking input signal and checking output letter
Number determine whether the design under test meets preset requirement;Described monitoring device, for passing through institute in the drive module
State data transmission interface the checking input signal is transferred to after the design under test, by testing for the design under test
Card output signal is monitored output.
Fig. 6 is that application scenarios of the module verification system of offer in the embodiment of the present invention in actual verification environment are illustrated
Figure, its specific steps are described as follows:
Step 0:It is base class with the driver for realizing above, according to the quantity of module interface agreement to be measured, builds many height
Class;
Step 1:Different interface are stated in each subclass according to different interface protocols;
Step 2:" pumping signal driving " power function is rewritten in each subclass according to different interface protocols;
Step 3:The corresponding driver of each subclass is stated and built in verification environment;
Step 4:Demand according to verification environment determines that each driver obtains the source of pumping signal;
Step 5:Driver is connected with the module (sequencer or other driver) of pumping signal is produced by port
Connect, this step is ignored if pumping signal inside driver by voluntarily producing;
Step 6:The parameter of each driver is set, corresponding exciting signal source is selected;
Step 7:Interface in driver is connected with module to be measured;
Step 8:Test case is write, simulation operations are performed.
Monitoring device can obtain the checking output data of module to be measured, and the checking output signal is sent into checking dress
Put;
Checking device can be realized using grading module, obtained respectively with from pumping signal processing unit end and monitoring device end
The checking input signal and checking output signal on module interface to be measured are obtained, and whether the data being calculated meet expection.
Pumping signal processing method provided in an embodiment of the present invention, device and module verification system, pumping signal treatment dress
Put and be divided into difference in functionality module, functional module only related to interface protocol to some, such as pumping signal in verification process
Driver element, carries out adaptability loading, and without being reloaded to other functions module, and then convenient extension, increase work(newly
Can easily realize.And, the embodiment of the present invention, by the interface protocol of the data transmission interface according to design under test, loading
The pumping signal driver element matched with interface protocol, same driver is in distinct interface agreement in realizing checking system
Application under scene, reduces verification process system development and the workload safeguarded, while occurring in also reducing verification process
The probability of mistake, lifts the accuracy of the result.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, the part shown as unit can be or may not be physics list
Unit, you can with positioned at a place, or can also be distributed on multiple NEs.It can according to the actual needs be selected
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each implementation method can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware.Based on such understanding, on
Stating the part that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, should
Computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Order is used to so that a computer equipment (can be personal computer, server, or network equipment etc.) performs each implementation
Method described in some parts of example or embodiment.
Although additionally, it will be appreciated by those of skill in the art that some embodiments in this include institute in other embodiments
Including some features rather than further feature, but the combination of the feature of different embodiments means in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment required for protection it is any it
One mode can use in any combination.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.