CN109829083A - SPD data automatic verification method, device, computer equipment and storage medium - Google Patents
SPD data automatic verification method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109829083A CN109829083A CN201910073696.3A CN201910073696A CN109829083A CN 109829083 A CN109829083 A CN 109829083A CN 201910073696 A CN201910073696 A CN 201910073696A CN 109829083 A CN109829083 A CN 109829083A
- Authority
- CN
- China
- Prior art keywords
- spd
- spd data
- verified
- byte position
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to SPD data automatic verification method, device, computer equipment and storage medium, this method includes obtaining expectation SPD data;Obtain SPD data to be verified;It will it is expected that each byte position of SPD data and each byte position of SPD data to be verified carry out interfaceization and show;Each byte position of the expectation each byte position of SPD data and SPD data to be verified is compared, by matching algorithm to obtain comparison result;Judge whether comparison result is variant position;If so, mark difference position position, and show the difference position of mark, with the difference place value indicated.Judge whether each byte position of SPD data to be verified compares;If it is not, passing back through each byte position of matching algorithm comparison the expectation each byte position of SPD data and SPD data to be verified, then to obtain comparison result.The present invention realizes automatic verifying SPD data, and is less prone to leak detection and error, improves verification efficiency.
Description
Technical field
The present invention relates to SPD data verification methods, more specifically refer to SPD data automatic verification method, device, calculating
Machine equipment and storage medium.
Background technique
With the fast development of computer technology, calculator memory is commercially available to be increased, to improve internal memory performance, memory
SPD (serial sensing existing for mould group, Serial Presence Detect) takes advantage of a situation and rises.Memory SPD is above memory modules
An erasable ROM (read-only memory, Read Only Memory), the inside has recorded many important informations of memory,
The parameters such as Mo Zu manufacturer, working frequency, operating voltage and capacity.After starting computer, mainboard BIOS (basic input
Output system, Basic Input/Output System) it just can read information in memory SPD, mainboard north bridge chipset will
Corresponding memory working sequence and control register are automatically configured, according to these parameter informations so as to give full play to memory
The performance of item.Memory SPD chip is also an important symbol for identifying memory brand simultaneously.If the parameter value in memory SPD
It is unreasonable, it cannot not only play the role of memory optimization, can also cause system job insecurity instead, or even crash.Therefore, school
The correctness for testing SPD data becomes to be even more important.
It is examining in memory SPD data mode, is mainly having through the i.e. service discovery framework tool of Eureka2 to every of today
A byte value verification mode and traditional artificial quality inspection mode one by one.Although intuitively illustrating each numerical value using Eureka2
Meaning, but still need to test to each byte position, and the not all byte position of memory SPD data all can be wrong
Accidentally, only there is difference in some byte position or several byte positions, result in unnecessary time consumption;For artificial quality inspection side
Formula, needs to verify personnel and looks into professional document and check each position, and this mode not only takes time and effort, and be easy missing inspection and
Error.
Therefore, it is necessary to design a kind of method, realizes automatic verifying SPD data, and be less prone to leak detection and error, improve
Verification efficiency.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, SPD data automatic verification method, device, calculating are provided
Machine equipment and storage medium.
To achieve the above object, the invention adopts the following technical scheme: SPD data automatic verification method, comprising:
Obtain expectation SPD data;
Obtain SPD data to be verified;
It will it is expected that each byte position of SPD data and each byte position of SPD data to be verified carry out interfaceization and show;
Each byte position of the expectation each byte position of SPD data and SPD data to be verified is compared by matching algorithm,
To obtain comparison result;
Judge whether the comparison result is variant position;
If so, mark difference position position, and show the difference position of mark, with the difference place value indicated.
Judge whether each byte position of SPD data to be verified compares;
If it is not, then returning to described compare by matching algorithm it is expected each byte position of SPD data and SPD data to be verified
Each byte position, to obtain comparison result.
Its further technical solution are as follows: it is described by matching algorithm compare expectation each byte position of SPD data with it is to be tested
Each byte position of SPD data is demonstrate,proved, to obtain comparison result, comprising:
Desired SPD data and SPD data to be verified are stored according to group address, to obtain expectation SPD array
And SPD array to be verified;
Each byte position and each byte bit allocation identifier of SPD array to be verified to desired SPD array, to obtain
The expectation SPD array of tape identification symbol and the SPD array to be verified of tape identification symbol;
The SPD array to be verified of expectation SPD array and tape identification symbol to tape identification symbol is split, it is expected
Each byte position of each byte position of SPD data and SPD data to be verified;
The byte position of expectation the SPD data byte position and SPD data to be verified of identical identifier is compared, to be compared
To result.
Its further technical solution are as follows: the SPD number to be verified that the expectation SPD array and tape identification to tape identification symbol accords with
Group is split, to obtain each byte position of the expectation each byte position of SPD data and SPD data to be verified, comprising:
The SPD array to be verified of expectation SPD array and tape identification symbol to tape identification symbol is gone according to same rule
Column split, to obtain segmentation result;
Byte position between the adjacent column of segmentation result is divided by space, to obtain the expectation each word of SPD data
Each byte position of section value and SPD data to be verified.
Its further technical solution are as follows: the same rule includes that the SPD data content of 16 column form of multirow writes rule
Model.
Its further technical solution are as follows: described to judge whether the comparison result is variant position, comprising:
Judge whether the expectation SPD data byte position of identical identifier is consistent with the byte position of SPD data to be verified;
If so, comparison result indifference dystopy;
If it is not, the then variant position of comparison result.
Its further technical solution are as follows: the mark difference position position, and show the difference position of mark, to be marked
After the difference place value of will, further includes:
The difference place value of mark is associated with preset place value information data, to obtain association results.
Its further technical solution are as follows: the difference place value by mark is associated with preset place value information database, with
Obtain association results, comprising:
It is retrieved with the identifier of the difference place value of mark in preset place value information database, to obtain retrieval knot
Fruit;
Judge whether the search result is the place value for having identical identifier;
If so, the relevant information for the place value for having identical identifier with the difference place value of mark is obtained, to obtain association knot
Fruit;
Judge whether association results are error result;
If it is not, then showing the association results.
The present invention also provides SPD datas to verify device automatically, comprising:
First acquisition unit, for obtaining expectation SPD data;
Second acquisition unit, for obtaining SPD data to be verified;
Display unit, for will it is expected each byte position of SPD data and each byte position of SPD data to be verified into
Row interfaceization is shown;
Comparing unit, for comparing the expectation each byte position of SPD data and SPD data to be verified by matching algorithm
Each byte position, to obtain comparison result;
First judging unit, for judging whether the comparison result is variant position;
Tag unit is used for if so, indicating difference position position, and show the difference position of mark, to be indicated
Difference place value.
Second judgment unit, for judging whether each byte position of SPD data to be verified compares;If it is not, then returning
Each byte position that the expectation each byte position of SPD data and SPD data to be verified is compared by matching algorithm is returned, with
Obtain comparison result.
The present invention also provides a kind of computer equipment, the computer equipment includes memory and processor, described to deposit
Computer program is stored on reservoir, the processor realizes above-mentioned method when executing the computer program.
The present invention also provides a kind of storage medium, the storage medium is stored with computer program, the computer journey
Sequence can realize above-mentioned method when being executed by processor.
Compared with the prior art, the invention has the advantages that: the present invention expects SPD data and to be verified by being loaded into
SPD data, and carry out graphic interface and show, and store these two types of data, these two types of data processions are divided, after segmentation
Being spaced apart between the column and the column using space for data, the distribution of symbol is identified according to certain rule, to same to each byte position
Two byte positions of one identifier are compared, and obtain the inconsistent conduct difference position of two byte positions of same identifier,
It goes forward side by side line flag, to realize automatic verifying SPD data, and is less prone to leak detection and error, improves verification efficiency.
The invention will be further described in the following with reference to the drawings and specific embodiments.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram one of SPD data automatic verification method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram two of SPD data automatic verification method provided in an embodiment of the present invention;
Fig. 3 is the sub-process schematic diagram of SPD data automatic verification method provided in an embodiment of the present invention;
Fig. 4 is the sub-process schematic diagram of SPD data automatic verification method provided in an embodiment of the present invention;
Fig. 5 is the sub-process schematic diagram of SPD data automatic verification method provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram that comparison result provided in an embodiment of the present invention is shown;
Fig. 7 be another embodiment of the present invention provides SPD data automatic verification method flow diagram;
Fig. 8 be another embodiment of the present invention provides SPD data automatic verification method sub-process schematic diagram;
Fig. 9 is the schematic block diagram that SPD data provided in an embodiment of the present invention verifies device automatically;
Figure 10 is the schematic block diagram for the comparing unit that SPD data provided in an embodiment of the present invention verifies device automatically;
Figure 11 is the schematic block diagram for the segmentation subelement that SPD data provided in an embodiment of the present invention verifies device automatically;
Figure 12 be another embodiment of the present invention provides SPD data verify the schematic block diagram of device automatically;
Figure 13 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Fig. 1 and Fig. 2 are please referred to, Fig. 1 is the schematic flow of SPD data automatic verification method provided in an embodiment of the present invention
Figure one.Fig. 2 is the schematic flow chart two of SPD data automatic verification method provided in an embodiment of the present invention.The SPD data is automatic
Verification method is applied in terminal.The automatic verification platform of SPD data is deployed in the terminal, terminal will need to compare to be verified
SPD data is verified automatically, and verification result is shown in terminal, and the difference place value after verifying can be associated data
The operation in library, association results are exported.
Fig. 1 is the flow diagram of SPD data automatic verification method provided in an embodiment of the present invention.As shown in Figure 1, the party
Method includes the following steps S110 to S150.
S110, expectation SPD data is obtained.
In the present embodiment, it is expected that SPD data refers to the normal data of memory SPD under the conditions of a certain.
S120, SPD data to be verified is obtained.
In the present embodiment, SPD data to be verified refers to the memory SPD data actually got.
S130, it will expect that each byte position of SPD data and each byte position of SPD data to be verified carry out interface
It shows.
In the present embodiment, two column number evidences can be shown on the interface of terminal, a column is expectation SPD data, and in addition a column is
SPD data to be verified.
It is loaded into expectation SPD data, it would be desirable to which the value of each byte of SPD data is intuitively shown by interfaceization;Be loaded into
The SPD data file for verifying verification intuitively shows each byte position of SPD data to be tested by interfaceization.
S140, each byte that the expectation each byte position of SPD data and SPD data to be verified is compared by matching algorithm
Place value, to obtain comparison result.
In the present embodiment, matching algorithm refers to, and each byte position is compared according to certain rule, such as same
The byte position of position is compared.
In one embodiment, as shown in figure 3, above-mentioned step S140 may include step S141~S144.
S141, desired SPD data and SPD data to be verified are stored according to group address, to obtain expectation SPD
Array and SPD array to be verified.
In the present embodiment, desired SPD data and SPD data to be verified are deposited according to specified group address
Storage, in order to show this two data on same interface.
S142, each byte position to desired SPD array and each byte bit allocation identifier of SPD array to be verified,
To obtain the expectation SPD array of tape identification symbol and the SPD array to be verified of tape identification symbol.
In the present embodiment, which is the distribution in order to which the two arrays are identified with position, and two arrays are according to phase
It is respectively SPD data byte bit allocation unique identification position with rule, i.e., is the word of expectation SPD and SPD to be tested since number 0
Section allocation identification position, 0 identifier of byte are number 0, and 1 identifier of byte is number 1, and so on;Therefore, it is desirable to SPD number
According to the marker having the same of byte 0 with SPD data to be tested, other byte positions are also same;Consequently facilitating to same identifier
Byte position be compared.In the present embodiment, identical rule refers to that for same byte be the same identifier of mark.
S143, the expectation SPD array of tape identification symbol and the SPD array to be verified of tape identification symbol are split, to obtain
It is expected that each byte position of each byte position of SPD data and SPD data to be verified.
In the present embodiment, since the two arrays are burst of data, therefore, it is necessary to be partitioned into single byte position, with
Convenient for quickly comparing, the efficiency for comparing and verifying is improved.
In one embodiment, as shown in figure 4, above-mentioned step S143 includes step S1431~S1432.
S1431, to tape identification symbol expectation SPD array and tape identification symbol SPD array to be verified according to same rule
Procession segmentation, to obtain segmentation result;
In the present embodiment, above-mentioned same rule includes that the SPD data content of 16 column form of multirow writes specification.
S1432, the byte position between the adjacent column of segmentation result is divided by space, to obtain expectation SPD data
Each byte position of each byte position and SPD data to be verified.
Array is divided according to SPD filespec procession, in the SPD data of 16 column form of SPD filespec, that is, N row
Appearance writes specification, the value of N different, third generation N=16, forth generation N=32 according to memory bar difference generation, and so on, arrange and
Divided between column by space, in order to clearly be partitioned into each byte position, improves the accuracy and high efficiency of verifying.
S144, the byte position for it is expected SPD data byte position and SPD data to be verified for comparing identical identifier, with
Obtain comparison result.
Value ratio is carried out to the byte position of the expectation SPD data byte position and SPD data to be verified that are assigned identical identifier
Compared with, it is labeled as difference position if the byte position compared is not identical, dominant mark is carried out when showing image conversion, it is otherwise normal defeated
Out, to replace manually examining one by one, technical automatic inspection is realized, inspection result is intuitively shown, is saved the time, is improved effect
Rate guarantees accuracy.
S150, judge whether the comparison result is variant position.
In the present embodiment, difference position refer to same identifier expectation SPD data byte position and SPD data to be verified
The value of byte position is different, then the byte position is difference position.
In one embodiment, as shown in figure 5, above-mentioned step S150 may include step S151~S153.
Whether the byte position of S151, the expectation SPD data byte position for judging identical identifier and SPD data to be verified
Unanimously;
S152, if so, comparison result indifference dystopy;
S153, if it is not, the then variant position of comparison result.
If it is not, then entering the step S170;
S160, if so, mark difference position position, and shows the difference position of mark, with the difference position indicated
Value.
Different colours can be used and show that, to indicate the difference position position, inspection result is intuitively shown, poor epistasis
Mark, it is very clear, as shown in fig. 6, the expectation SPD data being loaded onto certainly and verification SPD data carry out array of data respectively and face
When store, while according to the reference format of SPD data carry out image conversion show (i.e. N row 16 arrange, generations N different according to memory bar
And different), during data image, the inspection of each byte position of parallel practice is real to having discrepant byte position
The existing dominant mark of image conversion, i.e., indicate the value of the difference position, achieve the effect that intuitively to show.
S170, judge whether each byte position of SPD data to be verified compares;
All byte positions are all compared, to obtain all differences position, reach accurate verification the verifying results.
If it is not, then returning to the step S140;
If so, into end step.
This method saves the time of reviewer, reduces unnecessary time loss, improves checkability, generally in fact
Existing automatic Verification SPD data, checkout procedure are intended to intelligent, automation, solve time-consuming, the efficiency of existing check system
It is not high, reduce unnecessary time loss, improves checkability and memory SPD data accuracy.Realize memory SPD number
According to it is automatic inspection and Accuracy Verification, improve the reliability of SPD data, avoid internal because SPD data difference occurs
It deposits a performance and causes unnecessary influence, while reducing Check-Out Time, avoid the unnecessary consumption of time, it is real with the less time
Most fast inspection result is now obtained, checkout procedure tends to automation, intelligence, efficient, time saving and accurate.
Above-mentioned SPD data is verified automatically, expects SPD data and SPD data to be verified by being loaded into, and carry out image
Interfaceization display, and these two types of data are stored, these two types of data processions are divided, data adopts between the column and the column after segmentation
It is spaced apart with space, the distribution of symbol is identified to each byte position according to certain rule, to two bytes of same identifier
Place value is compared, and two byte positions for obtaining same identifier are inconsistent as difference position, line flag of going forward side by side, to realize certainly
Dynamic verifying SPD data, and it is less prone to leak detection and error, improve verification efficiency.
Fig. 7 be another embodiment of the present invention provides a kind of SPD data automatic verification method flow diagram.Such as Fig. 7
Shown, the SPD data automatic verification method of the present embodiment includes step S210-S280.Wherein step S210-S260, S280 with
Step S110-S160, S170 in above-described embodiment is similar, wherein the step S170 class in step S280 and above-described embodiment
Seemingly, details are not described herein.The following detailed description of in the present embodiment increase step S270.
S270, the difference place value of mark is associated with preset place value information data, to obtain association results.
Difference position is associated with place value information database, the property of can be chosen inquiry, verification process tends to intelligent.
In one embodiment, as shown in figure 8, above-mentioned step S270 may include step S271~S277.
S271, it is retrieved with the identifier of the difference place value of mark in preset place value information database, to be examined
Hitch fruit;
S272, judge whether the search result is the place value for having identical identifier;
S273, if it is not, association results are then labeled as error result, and enter step S275;
S274, if so, obtain with mark difference place value have identical identifier place value relevant information, to be closed
It is coupled fruit;
S275, judge whether association results are error result;
S276, if it is not, then showing the association results.
S277, if so, exporting the notice of temporary no data information.
The preset place value information database refer to parameter options and SPD place value using incidence relation as mapping relations, shape
At database, which has an identifier, that is, the database is by identifier and SPD place value with the pass of the two
The database that connection relationship is formed as mapping relations.Database is one-to-many or one-to-one mapping form.Above-mentioned correlation
Information includes such as P-Bank quantity, operating voltage, row address/column address quantity, the various primary operational timing of bit wide and mould group
The parameters such as manufacturer, working frequency, capacity.
Fig. 9 is the schematic block diagram that a kind of SPD data provided in an embodiment of the present invention verifies device 300 automatically.Such as Fig. 9 institute
Show, corresponds to the above SPD data automatic verification method, the present invention also provides a kind of SPD datas to verify device 300 automatically.The SPD
It includes the unit for executing above-mentioned SPD data automatic verification method that data verify device 300 automatically, which can be configured
In the terminals such as desktop computer, tablet computer, laptop computer.Specifically, referring to Fig. 9, the SPD data verifies device automatically
300 include:
First acquisition unit 301, for obtaining expectation SPD data;
Second acquisition unit 302, for obtaining SPD data to be verified;
Display unit 303, for that will it is expected each byte position of SPD data and each byte position of SPD data to be verified
Value carries out interfaceization and shows;
Comparing unit 304, for comparing the expectation each byte position of SPD data and SPD number to be verified by matching algorithm
According to each byte position, to obtain comparison result;
First judging unit 305, for judging whether the comparison result is variant position;
Tag unit 306 is used for if so, indicating difference position position, and show the difference position of mark, to be marked
The difference place value of will.
Second judgment unit 308, for judging whether each byte position of SPD data to be verified compares;If it is not, then
Each byte position that the expectation each byte position of SPD data and SPD data to be verified is compared by matching algorithm is returned,
To obtain comparison result.
In one embodiment, as shown in Figure 10, the comparing unit 304 includes:
Storing sub-units 3041, for being deposited to desired SPD data and SPD data to be verified according to group address
Storage, to obtain expectation SPD array and SPD array to be verified;
Distribute subelement 3042, for desired SPD array each byte position and each byte of SPD array to be verified
Bit allocation identifier, to obtain the expectation SPD array of tape identification symbol and the SPD array to be verified of tape identification symbol;
Divide subelement 3043, for tape identification accord with expectation SPD array and tape identification symbol SPD array to be verified into
Row segmentation, to obtain each byte position of the expectation each byte position of SPD data and SPD data to be verified;
Byte position comparison subunit 3044, for compare the expectation SPD data byte position of identical identifier with it is to be tested
The byte position of SPD data is demonstrate,proved, to obtain comparison result.
In one embodiment, as shown in figure 11, the segmentation subelement 3043 includes:
Ranks divide module 30431, the SPD to be verified of expectation SPD array and tape identification symbol for according with to tape identification
Array is divided according to same regular procession, to obtain segmentation result;
Module 30432 is divided in space, is divided for the byte position between the adjacent column to segmentation result by space, with
Obtain each byte position of the expectation each byte position of SPD data and SPD data to be verified.
Figure 12 be another embodiment of the present invention provides a kind of SPD data verify the schematic block diagram of device 300 automatically.Such as
Shown in Figure 12, it is to increase associative cell on the basis of above-described embodiment that the SPD data of the present embodiment verifies device 300 automatically
307。
The associative cell 307, the difference place value for that will indicate is associated with preset place value information data, to be closed
It is coupled fruit.
In one embodiment, above-mentioned associative cell 307 includes:
Subelement is retrieved, for being examined with the identifier of the difference place value of mark in preset place value information database
Rope, to obtain search result;
Judgment sub-unit is retrieved, for judging whether the search result is the place value for having identical identifier;
Acquisition of information subelement, for if so, obtaining the phase for the place value for having identical identifier with the difference place value of mark
Information is closed, to obtain association results;
As a result judgment sub-unit, for judging whether association results are error result;
Subelement is shown, for if it is not, then showing the association results.
It should be noted that it is apparent to those skilled in the art that, above-mentioned SPD data verifies dress automatically
The specific implementation process of 300 and each unit is set, it can be with reference to the corresponding description in preceding method embodiment, for convenience of description
With it is succinct, details are not described herein.
Above-mentioned SPD data verifies device 300 automatically can be implemented as a kind of form of computer program, the computer program
It can be run in computer equipment as shown in fig. 13 that.
Figure 13 is please referred to, Figure 13 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The calculating
Machine equipment 500 can be terminal, wherein terminal can be the tool such as smart phone, tablet computer, laptop, desktop computer
There is the electronic equipment of communication function.
Refering to fig. 13, which includes processor 502, memory and the net connected by system bus 501
Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.The non-volatile memories
Medium 503 can storage program area 5031 and computer program 5032.The computer program 5032 includes program instruction, the program
Instruction is performed, and processor 502 may make to execute a kind of SPD data automatic verification method.The processor 502 is based on providing
Calculation and control ability, to support the operation of entire computer equipment 500.The built-in storage 504 is non-volatile memory medium 503
In computer program 5032 operation provide environment, the computer program 5032 by processor 502 execute when, may make processing
Device 502 executes a kind of SPD data automatic verification method.The network interface 505 is used to carry out network communication with other equipment.Ability
Field technique personnel are appreciated that structure shown in Figure 13, only the block diagram of part-structure relevant to application scheme, and
The restriction for the computer equipment 500 being applied thereon to application scheme is not constituted, and specific computer equipment 500 can wrap
It includes than more or fewer components as shown in the figure, perhaps combines certain components or with different component layouts.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following step
It is rapid:
Obtain expectation SPD data;
Obtain SPD data to be verified;
It will it is expected that each byte position of SPD data and each byte position of SPD data to be verified carry out interfaceization and show;
Each byte position of the expectation each byte position of SPD data and SPD data to be verified is compared by matching algorithm,
To obtain comparison result;
Judge whether the comparison result is variant position;
If so, mark difference position position, and show the difference position of mark, with the difference place value indicated.
Judge whether each byte position of SPD data to be verified compares;
If it is not, then returning to described compare by matching algorithm it is expected each byte position of SPD data and SPD data to be verified
Each byte position, to obtain comparison result.
In one embodiment, processor 502 it is expected each byte position of SPD data in described compare by matching algorithm of realization
Value and each byte position of SPD data to be verified are implemented as follows step when obtaining comparison result step:
Desired SPD data and SPD data to be verified are stored according to group address, to obtain expectation SPD array
And SPD array to be verified;
Each byte position and each byte bit allocation identifier of SPD array to be verified to desired SPD array, to obtain
The expectation SPD array of tape identification symbol and the SPD array to be verified of tape identification symbol;
The SPD array to be verified of expectation SPD array and tape identification symbol to tape identification symbol is split, it is expected
Each byte position of each byte position of SPD data and SPD data to be verified;
The byte position of expectation the SPD data byte position and SPD data to be verified of identical identifier is compared, to be compared
To result.
In one embodiment, processor 502 realize it is described to tape identification symbol expectation SPD array and tape identification symbol to
Verifying SPD array is split, to obtain each byte position of the expectation each byte position of SPD data and SPD data to be verified
When being worth step, it is implemented as follows step:
The SPD array to be verified of expectation SPD array and tape identification symbol to tape identification symbol is gone according to same rule
Column split, to obtain segmentation result;
Byte position between the adjacent column of segmentation result is divided by space, to obtain the expectation each word of SPD data
Each byte position of section value and SPD data to be verified.
Wherein, the same rule includes that the SPD data content of 16 column form of multirow writes specification.
In one embodiment, processor 502 realize it is described judge whether the comparison result is variant position step when,
It is implemented as follows step:
Judge whether the expectation SPD data byte position of identical identifier is consistent with the byte position of SPD data to be verified;
If so, comparison result indifference dystopy;
If it is not, the then variant position of comparison result.
In one embodiment, processor 502 is realizing the mark difference position position, and shows the difference of mark
Position, with after the difference place value step that is indicated, also realization following steps:
The difference place value of mark is associated with preset place value information data, to obtain association results.
In one embodiment, processor 502 is realizing the difference place value by mark and preset place value information data
Library association, when obtaining association results step, is implemented as follows step:
It is retrieved with the identifier of the difference place value of mark in preset place value information database, to obtain retrieval knot
Fruit;
Judge whether the search result is the place value for having identical identifier;
If so, the relevant information for the place value for having identical identifier with the difference place value of mark is obtained, to obtain association knot
Fruit;
Judge whether association results are error result;
If it is not, then showing the association results.
It should be appreciated that in the embodiment of the present application, processor 502 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (APP lication Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
Person's processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process,
It is that relevant hardware can be instructed to complete by computer program.The computer program includes program instruction, computer journey
Sequence can be stored in a storage medium, which is computer readable storage medium.The program instruction is by the department of computer science
At least one processor in system executes, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium.This is deposited
Storage media is stored with computer program, and processor is made to execute following steps when wherein the computer program is executed by processor:
Obtain expectation SPD data;
Obtain SPD data to be verified;
It will it is expected that each byte position of SPD data and each byte position of SPD data to be verified carry out interfaceization and show;
Each byte position of the expectation each byte position of SPD data and SPD data to be verified is compared by matching algorithm,
To obtain comparison result;
Judge whether the comparison result is variant position;
If so, mark difference position position, and show the difference position of mark, with the difference place value indicated.
Judge whether each byte position of SPD data to be verified compares;
If it is not, then returning to described compare by matching algorithm it is expected each byte position of SPD data and SPD data to be verified
Each byte position, to obtain comparison result.
In one embodiment, the processor is realized described by matching algorithm comparison in the execution computer program
It is expected that each byte position of each byte position of SPD data and SPD data to be verified, when obtaining comparison result step, tool
Body realizes following steps:
Desired SPD data and SPD data to be verified are stored according to group address, to obtain expectation SPD array
And SPD array to be verified;
Each byte position and each byte bit allocation identifier of SPD array to be verified to desired SPD array, to obtain
The expectation SPD array of tape identification symbol and the SPD array to be verified of tape identification symbol;
The SPD array to be verified of expectation SPD array and tape identification symbol to tape identification symbol is split, it is expected
Each byte position of each byte position of SPD data and SPD data to be verified;
The byte position of expectation the SPD data byte position and SPD data to be verified of identical identifier is compared, to be compared
To result.
In one embodiment, the processor realizes the expectation to tape identification symbol executing the computer program
SPD array and tape identification symbol SPD array to be verified be split, with obtain expectation each byte position of SPD data with it is to be tested
When demonstrate,proving each byte position step of SPD data, it is implemented as follows step:
The SPD array to be verified of expectation SPD array and tape identification symbol to tape identification symbol is gone according to same rule
Column split, to obtain segmentation result;
Byte position between the adjacent column of segmentation result is divided by space, to obtain the expectation each word of SPD data
Each byte position of section value and SPD data to be verified.
Wherein, the same rule includes that the SPD data content of 16 column form of multirow writes specification.
In one embodiment, the processor realizes the judgement comparison result executing the computer program
When whether being variant position step, it is implemented as follows step:
Judge whether the expectation SPD data byte position of identical identifier is consistent with the byte position of SPD data to be verified;
If so, comparison result indifference dystopy;
If it is not, the then variant position of comparison result.
In one embodiment, the processor realizes that the mark difference position institute is in place executing the computer program
It sets, and shows the difference position of mark, with after the difference place value step that is indicated, also realization following steps:
The difference place value of mark is associated with preset place value information data, to obtain association results.
In one embodiment, the processor is executing the difference place value by mark and preset place value information data
Library association, when obtaining association results step, is implemented as follows step:
It is retrieved with the identifier of the difference place value of mark in preset place value information database, to obtain retrieval knot
Fruit;
Judge whether the search result is the place value for having identical identifier;
If so, the relevant information for the place value for having identical identifier with the difference place value of mark is obtained, to obtain association knot
Fruit;
Judge whether association results are error result;
If it is not, then showing the association results.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk
Or the various computer readable storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair
Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention
Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with
It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill
The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.
Claims (10)
1.SPD data automatic verification method characterized by comprising
Obtain expectation SPD data;
Obtain SPD data to be verified;
It will it is expected that each byte position of SPD data and each byte position of SPD data to be verified carry out interfaceization and show;
Each byte position of the expectation each byte position of SPD data and SPD data to be verified is compared by matching algorithm, with
To comparison result;
Judge whether the comparison result is variant position;
If so, mark difference position position, and show the difference position of mark, with the difference place value indicated.
Judge whether each byte position of SPD data to be verified compares;
Described the every of each byte position of SPD data and SPD data to be verified it is expected by matching algorithm comparison if it is not, then returning
A byte position, to obtain comparison result.
2. SPD data automatic verification method according to claim 1, which is characterized in that described to be compared by matching algorithm
It is expected that each byte position of each byte position of SPD data and SPD data to be verified, to obtain comparison result, comprising:
Desired SPD data and SPD data to be verified are stored according to group address, with obtain expectation SPD array and
SPD array to be verified;
Each byte position and each byte bit allocation identifier of SPD array to be verified to desired SPD array, to obtain band mark
Know the expectation SPD array of symbol and the SPD array to be verified of tape identification symbol;
The SPD array to be verified of expectation SPD array and tape identification symbol to tape identification symbol is split, to obtain expectation SPD number
According to each byte position of each byte position and SPD data to be verified;
The byte position of expectation the SPD data byte position and SPD data to be verified of identical identifier is compared, to obtain comparing knot
Fruit.
3. SPD data automatic verification method according to claim 2, which is characterized in that the expectation to tape identification symbol
SPD array and tape identification symbol SPD array to be verified be split, with obtain expectation each byte position of SPD data with it is to be tested
Demonstrate,prove each byte position of SPD data, comprising:
The SPD array to be verified of expectation SPD array and tape identification symbol to tape identification symbol is according to same regular procession point
It cuts, to obtain segmentation result;
Byte position between the adjacent column of segmentation result is divided by space, to obtain the expectation each byte position of SPD data
Each byte position of value and SPD data to be verified.
4. SPD data automatic verification method according to claim 3, which is characterized in that the same rule includes multirow
The SPD data content of 16 column forms writes specification.
5. SPD data automatic verification method according to claim 4, which is characterized in that the judgement comparison result
It whether is variant position, comprising:
Judge whether the expectation SPD data byte position of identical identifier is consistent with the byte position of SPD data to be verified;
If so, comparison result indifference dystopy;
If it is not, the then variant position of comparison result.
6. SPD data automatic verification method according to any one of claims 1 to 5, which is characterized in that the mark difference
Position position, and shows the difference position of mark, after the difference place value that is indicated, further includes:
The difference place value of mark is associated with preset place value information data, to obtain association results.
7. SPD data automatic verification method according to claim 6, which is characterized in that the difference place value by mark
It is associated with preset place value information database, to obtain association results, comprising:
It is retrieved with the identifier of the difference place value of mark in preset place value information database, to obtain search result;
Judge whether the search result is the place value for having identical identifier;
If so, the relevant information for the place value for having identical identifier with the difference place value of mark is obtained, to obtain association results;
Judge whether association results are error result;
If it is not, then showing the association results.
8.SPD data verify device automatically characterized by comprising
First acquisition unit, for obtaining expectation SPD data;
Second acquisition unit, for obtaining SPD data to be verified;
Display unit, for that will it is expected that each byte position of SPD data and each byte position of SPD data to be verified carry out boundary
Faceization is shown;
Comparing unit, for comparing expectation each of each byte position of SPD data and SPD data to be verified by matching algorithm
Byte position, to obtain comparison result;
First judging unit, for judging whether the comparison result is variant position;
Tag unit is used for if so, indicating difference position position, and show the difference position of mark, with the difference indicated
Dystopy value.
Second judgment unit, for judging whether each byte position of SPD data to be verified compares;If it is not, then returning to institute
Each byte position that the expectation each byte position of SPD data and SPD data to be verified is compared by matching algorithm is stated, to obtain
Comparison result.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and processor, on the memory
It is stored with computer program, the processor is realized as described in any one of claims 1 to 7 when executing the computer program
Method.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program quilt
Processor can realize the method as described in any one of claims 1 to 7 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910073696.3A CN109829083A (en) | 2019-01-25 | 2019-01-25 | SPD data automatic verification method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910073696.3A CN109829083A (en) | 2019-01-25 | 2019-01-25 | SPD data automatic verification method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109829083A true CN109829083A (en) | 2019-05-31 |
Family
ID=66862503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910073696.3A Pending CN109829083A (en) | 2019-01-25 | 2019-01-25 | SPD data automatic verification method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109829083A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597644A (en) * | 2019-09-10 | 2019-12-20 | 深圳市元征科技股份有限公司 | Data stream transmission method, transmission device, electronic equipment and storage medium |
CN112579376A (en) * | 2020-12-16 | 2021-03-30 | 中国建设银行股份有限公司 | Double-run-stage data verification method, system, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09305496A (en) * | 1996-05-10 | 1997-11-28 | Nec Corp | Method and device for correcting one-bit error for eeprom |
CN102521093A (en) * | 2011-12-31 | 2012-06-27 | 曙光信息产业股份有限公司 | Internal memory management method and device |
CN205680083U (en) * | 2016-05-11 | 2016-11-09 | 深圳市嘉合劲威电子科技有限公司 | Memory testing device |
CN108268374A (en) * | 2017-11-03 | 2018-07-10 | 平安科技(深圳)有限公司 | software version test method, device, terminal device and storage medium |
-
2019
- 2019-01-25 CN CN201910073696.3A patent/CN109829083A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09305496A (en) * | 1996-05-10 | 1997-11-28 | Nec Corp | Method and device for correcting one-bit error for eeprom |
CN102521093A (en) * | 2011-12-31 | 2012-06-27 | 曙光信息产业股份有限公司 | Internal memory management method and device |
CN205680083U (en) * | 2016-05-11 | 2016-11-09 | 深圳市嘉合劲威电子科技有限公司 | Memory testing device |
CN108268374A (en) * | 2017-11-03 | 2018-07-10 | 平安科技(深圳)有限公司 | software version test method, device, terminal device and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597644A (en) * | 2019-09-10 | 2019-12-20 | 深圳市元征科技股份有限公司 | Data stream transmission method, transmission device, electronic equipment and storage medium |
CN112579376A (en) * | 2020-12-16 | 2021-03-30 | 中国建设银行股份有限公司 | Double-run-stage data verification method, system, equipment and storage medium |
CN112579376B (en) * | 2020-12-16 | 2024-08-20 | 中国建设银行股份有限公司 | Double-running-stage data verification method, system, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8347267B2 (en) | Automated software testing and validation system | |
CN107193750B (en) | Script recording method and device | |
CN110718264A (en) | Method and device for testing information of solid state disk, computer equipment and storage medium | |
CN109376093B (en) | Insurance product testing method and device, storage medium and electronic equipment | |
CN108694123A (en) | A kind of regression testing method, computer readable storage medium and terminal device | |
CN108268373A (en) | Automatic test cases management method, device, equipment and storage medium | |
CN109189405A (en) | A kind of method and system of proving program Flash data consistency | |
CN114333962A (en) | Flash memory chip testing method, device and system, electronic equipment and storage medium | |
CN110362469A (en) | Based on modular testing use-case control method, device, terminal and storage medium | |
CN114530188A (en) | Semiconductor test method, system and storage medium | |
CN107038120A (en) | A kind of method for testing software and equipment | |
CN109829083A (en) | SPD data automatic verification method, device, computer equipment and storage medium | |
CN109189668A (en) | Interface test method, device, computer equipment and storage medium | |
CN111966590A (en) | Service testing method, device and system | |
CN108572895A (en) | Automatically the stability test method of software and hardware configuration is checked under a kind of Linux | |
CN107783890A (en) | Software defect data processing method and device | |
CN105183641A (en) | Data consistency check method and system for kernel module | |
CN103995765B (en) | A kind of LED control card Auto-Test System and method | |
KR20070079030A (en) | Method and apparatus for automatically formatting data based on a best match test result type | |
CN111127223B (en) | Insurance product testing method, insurance product testing device and storage medium | |
CN118091369A (en) | Chip testing method, system, device and computer readable storage medium | |
CN111338874B (en) | Method and system for testing GPU (graphics processing Unit) rate switching | |
CN109508289B (en) | Test method and device and electronic equipment | |
US10060976B1 (en) | Method and apparatus for automatic diagnosis of mis-compares | |
CN115792582B (en) | Chip testing method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190531 |
|
WD01 | Invention patent application deemed withdrawn after publication |