CN107329746A - A kind of chip configuring information processing method and device - Google Patents
A kind of chip configuring information processing method and device Download PDFInfo
- Publication number
- CN107329746A CN107329746A CN201710463356.2A CN201710463356A CN107329746A CN 107329746 A CN107329746 A CN 107329746A CN 201710463356 A CN201710463356 A CN 201710463356A CN 107329746 A CN107329746 A CN 107329746A
- Authority
- CN
- China
- Prior art keywords
- configuration information
- group
- read
- check value
- storage area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
- G06F21/79—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories
Abstract
The present invention relates to Internet technical field, more particularly to a kind of chip configuring information processing method and device, the problem of easily being influenceed chip operation by abnormal environment interference or malicious sabotage is read to solve existing chip configuration information, the each group configuration information pre-saved is read from the first designated storage area, for at least one set of above-mentioned configuration information read, calculate corresponding check value, and judge whether the check value obtained by calculating is consistent with the reference check value for being stored in the second designated storage area, when determining inconsistent, based on the respective default processing mode of each group configuration information, determine output result, so, even if the configuration information read on chip after electricity is affected, respective handling can be carried out based on itself corresponding default processing mode, so that last output result does not interfere with chip normal work, improve the stability and security of chip system, and logical construction is simple, take resource few, it is applied widely.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of chip configuring information processing method and device.
Background technology
The configuration information of chip is usually used in distinguishing chip direction, chip characteristics etc., in order to which chip can be suitably used for difference
Application scenarios, in general, configuration information can be stored in the nonvolatile storage (Non-Volatile Memory, NVM) of chip
In, when chip works on power, system automatic can read the configuration information of correlation from NVM.
However, NVM is as storage logical units, supply voltage, operating temperature, data hold time etc. factor all may
The stability that configuration information is read from NVM is had influence on, if for example, supply voltage is not up to the minimum operating voltage of setting, very
Probably due to supply voltage is not enough, and cause the configuration information read from NVM to be still initial value, and then have influence on chip
Normal work.
Obviously, in the prior art, when chip meets with abnormal environment (e.g., low temperature, high temperature or low pressure etc.) or malicious attack
When (e.g., laser irradiation or voltage attack etc.), reading configuration information from NVM can be extremely unstable, so as to read mistake
Configuration information, and using mistake configuration information configured, and then cause chip operation exception.
In view of this, a kind of chip configuring information processing method need to be redesigned, to overcome drawbacks described above.
The content of the invention
The embodiment of the present invention provides a kind of chip configuring information processing method and device, to solve existing chip configuration
Information, which is read, easily to be influenceed by abnormal environment and causes to read error configurations informational influence chip normal work, and by malice
Destroy and make the problem of chip enters non-secure states.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
A kind of chip configuring information processing method, including:
The each group configuration information pre-saved is read from the first designated storage area;
Each group of configuration information at least one set of configuration information read is directed to respectively, performs following operate:
Based on default checking algorithm, the corresponding check value of one group of configuration information is calculated;
Read what is pre-saved from the second designated storage area, it is corresponding with one group of configuration information with reference to verification
Value;
Judge whether the check value is consistent with the reference check value, when determining inconsistent, assemble and put based on described one
The corresponding default processing mode of information, determines the corresponding output result of one group of configuration information.
Optionally, read before each group configuration information pre-saved, further comprise from the first designated storage area:
Based on preset rules, the latest configuration information collection of chip to be logged is grouped, some groups of configuration informations are obtained,
And determine the corresponding processing mode of each group of configuration information;
Based on default checking algorithm, each self-corresponding reference check value of at least one set of configuration information is calculated respectively, if obtaining
Trepang examines check value, wherein, one group of configuration information correspondence one refers to check value;
Some groups of configuration informations of acquisition are stored in the first designated storage area, and by the described some of acquisition
The second designated storage area is stored in reference to check value.
Optionally, based on preset rules, the latest configuration information collection of chip to be logged is grouped, some assemble is obtained
Confidence ceases, including:
Function based on configuration information, is grouped to the latest configuration information collection of chip to be logged, obtains some assemble
Confidence ceases, wherein, some groups of configuration informations at least include following any one group or any combination:Analog configuration information, number
Word configuration information and security configuration information.
Optionally, each group configuration information pre-saved is read from the first designated storage area, including:
Read each group configuration information pre-saved from the first designated storage area, and described respectively assembled what is read
Confidence breath is latched in first and specified in register group;
The each group configuration information latched is read from the described first specified register group.
Optionally, based on the corresponding processing mode of one group of configuration information, determine that one group of configuration information is corresponding
Output result, including:
When determining one group of configuration information for analog configuration information, one group of default and one group of configuration information is exported
Corresponding analog parameter;
When determining one group of configuration information for digital configuration information, one group of configuration information is directly exported;
When determining one group of configuration information for security configuration information, start safe mode, and close debugging mouth.
Optionally, further comprise:
It is determined that when consistent, directly exporting one group of configuration information.
A kind of chip configuration information processing unit, including:
Reading unit, each group configuration information pre-saved for being read from the first designated storage area;
Verification unit, for each group of configuration information being directed to respectively at least one set of configuration information read,
Perform following operate:
Based on default checking algorithm, the corresponding check value of one group of configuration information is calculated;
Read what is pre-saved from the second designated storage area, it is corresponding with one group of configuration information with reference to verification
Value;
Judge whether the check value is consistent with the reference check value, when determining inconsistent, assemble and put based on described one
The corresponding default processing mode of information, determines the corresponding output result of one group of configuration information.
Optionally, described device also includes pretreatment unit, and the pretreatment unit is used for:
Read from the first designated storage area before each group configuration information pre-saved, perform following operate:
Based on preset rules, the latest configuration information collection of chip to be logged is grouped, some groups of configuration informations are obtained,
And determine the corresponding processing mode of each group of configuration information;
Based on default checking algorithm, each self-corresponding reference check value of at least one set of configuration information is calculated respectively, if obtaining
Trepang examines check value, wherein, one group of configuration information correspondence one refers to check value;
Some groups of configuration informations of acquisition are stored in the first designated storage area, and by the described some of acquisition
The second designated storage area is stored in reference to check value.
Optionally, based on preset rules, the latest configuration information collection of chip to be logged is grouped, some assemble is obtained
When confidence ceases, the pretreatment unit is used for:
Function based on configuration information, is grouped to the latest configuration information collection of chip to be logged, obtains some assemble
Confidence ceases, wherein, some groups of configuration informations at least include following any one group or any combination:Analog configuration information, number
Word configuration information and security configuration information.
Optionally, when each group configuration information pre-saved is read from the first designated storage area, the reading unit
For:
Read each group configuration information pre-saved from the first designated storage area, and described respectively assembled what is read
Confidence breath is latched in first and specified in register group;
The each group configuration information latched is read from the described first specified register group.
Optionally, based on the corresponding default processing mode of one group of configuration information, one group of configuration information pair is determined
The output result answered, the verification unit is used for:
When determining one group of configuration information for analog configuration information, one group of default and one group of configuration information is exported
Corresponding analog parameter;
When determining one group of configuration information for digital configuration information, one group of configuration information is directly exported;
When determining one group of configuration information for security configuration information, start safe mode, and close debugging mouth.
Optionally, the verification unit is additionally operable to:
It is determined that when consistent, directly exporting one group of configuration information.
A kind of electronic equipment, includes the device as any one of claim 6 to 12.
In the embodiment of the present invention, each group configuration information pre-saved by being read from the first designated storage area, pin
To each group of configuration information at least one set of configuration information for reading, corresponding check value is calculated, and judges to calculate institute
Whether the check value obtained is consistent with the reference check value for being stored in the second designated storage area, when determining inconsistent, based on each group
The respective default processing mode of configuration information, determines output result, so, the configuration information read on chip after electricity, even if
The interference or malicious sabotage of abnormal environment are received, respective handling can be carried out based on itself corresponding default processing mode, made
The normal work that last output result does not interfere with chip is obtained, the stability and security of chip system is substantially increased, moreover,
Logical construction is simple, and occupancy resource is few, applied widely.
Brief description of the drawings
Fig. 1 is latest configuration information pre-processing flow chart to be logged in the embodiment of the present invention;
Fig. 2 is configuring information processing method flow chart in the embodiment of the present invention;
Fig. 3 is configuration information processing procedure schematic diagram in the embodiment of the present invention;
Fig. 4 is configuration information processing device structure diagram in the embodiment of the present invention.
Embodiment
The easy error configurations for being influenceed and being caused to read by abnormal environment are read in order to solve existing chip configuration information
Informational influence chip normal work, and make the problem of chip enters non-secure states by malicious sabotage, it is of the invention to implement
In example, a kind of chip configuring information processing method is redesigned, this method is to be read from the first designated storage area advance
The each group configuration information of preservation, and performed respectively for every group of configuration information of at least one set of above-mentioned configuration information read
Operate below:Based on default checking algorithm, the corresponding check value of one group of configuration information is calculated, then, from the second designated storage area
Read what is pre-saved in domain, reference check value corresponding with one group of configuration information, and judge the check value obtained by calculating
It is whether consistent with corresponding reference check value, when determining inconsistent, based on the corresponding default processing side of above-mentioned one group of configuration information
Formula, determines the corresponding output result of above-mentioned one group of configuration information.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, is not whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The solution of the present invention will be described in detail by specific embodiment below, certainly, the present invention be not limited to
Lower embodiment.
Under prior art, chip, can be in advance by chip latest configuration information burning in non-volatile memory before working on power
Device (Non-Volatile Memory, NVM), so, after electricity on chip, digital circuit can read from NVM and store most
New configuration information, however, due to easily being influenceed by abnormal work environment when reading configuration information from NVM, therefore, causing to read
The configuration information got is likely to occur mistake, or, the configuration information read is not current latest configuration information, but on
The configuration information once read.
In the embodiment of the present invention, the first designated storage area is stored in chip latest configuration information block in advance, and count
The reference check value of at least one set of configuration information is calculated, and the reference check value of above-mentioned at least one set of configuration information is stored in second
Designated storage area, after electricity on chip, digital circuit from the first designated storage area read each group configuration information when, calculate
At least one set of above-mentioned each self-corresponding check value of configuration information read, if check value and preservation in the presence of one group of configuration information
It is inconsistent in the reference check value of the second designated storage area, then, digital circuit is when reading this group of configuration information, Ke Nengshou
Interference has been arrived, or, malicious attack has been can suffer from, has caused this group of configuration information read, has specified and deposits with original deposit first
This group of configuration information in storage area domain is inconsistent, accordingly, it would be desirable to respective handling is carried out to affected this group of configuration information, so that
Obtain chip is not influenceed and energy normal work by this group of configuration information.
In order to realize such scheme, as shown in fig.1, in the embodiment of the present invention, on chip before electricity, in advance to chip
Latest configuration information carries out burning, i.e., chip latest configuration information is pre-processed, after electricity on chip, can be based on newest
Configuration information is operated, and preprocess method flow is as follows:
Step 100:Based on preset rules, the latest configuration information collection of chip to be logged is grouped, some groups are obtained
Configuration information, and determine the corresponding default processing mode of each group of configuration information.
Specifically, in the embodiment of the present invention, each configuration information that the latest configuration information collection based on chip to be logged is included
Function, the latest configuration information collection of chip to be logged is grouped, can the mould based on configuration information in the embodiment of the present invention
The property intended, numerical and security, are divided into analog configuration information, numeral by the latest configuration information collection of chip to be logged and match somebody with somebody confidence
Cease and security configuration information, totally three groups of configuration informations.
For example, the latest configuration information of chip to be logged integrates for " core voltage is 3.3V, internal clocking mode as phaselocked loop
PLL, house dog are enabled, system is enabled safely ", if according to simulation, numerical and security, to above-mentioned latest configuration information collection
It is grouped, then can obtains analog configuration information " core voltage is that 3.3V, internal clocking mode are phase-locked loop pll ", numeral is matched somebody with somebody
Confidence ceases " house dog enable " and security configuration information " system is enabled safely ".
Further, it is determined that can be each group of configuration information, really after the packet of the latest configuration information collection of chip to be logged
Fixed corresponding default processing mode.
Specifically, being illustrated with analog configuration information, digital configuration information and security configuration information, the embodiment of the present invention
In, if the one group of configuration information read is analog configuration information, export one group of default and above-mentioned one group of configuration information pair
The analog parameter answered;If the one group of configuration information read is digital configuration information, above-mentioned one group of configuration information is directly exported;
If the one group of configuration information read is security configuration information, start safe mode, and close debugging mouth.
Certainly, in the embodiment of the present invention, the latest configuration information collection of chip to be logged is grouped, be not limited to
Upper a kind of packet mode, i.e. be not limited to this three groups of analog configuration information, digital configuration information and security configuration information, also
It can be adjusted based on actual demand, further, if packet mode is adjusted based on actual demand, then, for new
The each group of configuration information that packet mode is obtained, each self-corresponding processing mode may be based on actual demand and adjust accordingly.
Step 110:Based on default checking algorithm, each self-corresponding reference school of at least one set of above-mentioned configuration information is calculated respectively
Value is tested, some reference check values are obtained, wherein, one group of configuration information correspondence one refers to check value.
Specifically, in the embodiment of the present invention, default checking algorithm can be in advance based on, respectively assembling of being grouped is calculated respectively
At least the above each self-corresponding reference check value of one group of configuration information in confidence breath, obtains some reference check values, wherein, one group
Configuration information correspondence one refers to check value.
Preferably, in the embodiment of the present invention, the checking algorithm used is CRC algorithm (Cyclic
Redundancy Check, CRC), and then, at least one set of configuration information is calculated based on CRC algorithm each self-corresponding with reference to verification
It is worth for crc value, certainly, in the present embodiment, however it is not limited to CRC algorithm, other checking algorithms can also be used.
For example, continuing to illustrate with above-mentioned example, it is computed, the corresponding reference check value of analog configuration information is
CRC1, the corresponding reference check value of digital configuration information is CRC2, and the corresponding reference check value of security configuration information is CRC3.
Step 120:Some groups of configuration informations of acquisition are stored in the first designated storage area, and by some of acquisition
The second designated storage area is stored in reference to check value.
Specifically, the packet of the latest configuration information of chip to be logged is determined, and each group configuration information is each self-corresponding
After check value, it can will obtain some groups of configuration informations and be stored in the first designated storage area, and by some of acquisition
The second designated area is stored in reference to check value, preferably, in the embodiment of the present invention, the first designated storage area and second is specified
Storage region is NVM partial memory area domain.
So far, after the pretreatment operation of latest configuration information collection for completing chip to be logged, just saved in chip NVM
Latest configuration information collection, further, as shown in fig.2, matching somebody with somebody confidence based on each group for being stored in the first designated storage area
Breath and each of the second designated storage area has been stored in it and has referred in check value, the embodiment of the present invention, for each group that can be verified
Configuration information performs following handling process, to be adjusted in time to the wrong configuration information read:
Step 200:One group of configuration information pre-saving is read from the first designated storage area, and specifies and deposits from second
Read reference check value corresponding with above-mentioned one group of configuration information in storage area domain.
Specifically, first reading at least one set of configuration information pre-saved from the first designated storage area, and it will read
Above-mentioned at least one set of configuration information be latched in first and specify in register group, and from the second designated storage area read with it is upper
State each self-corresponding reference check value of at least one set of configuration information, and each read with reference to check value is latched in the second finger
Determine in register group.
Further, one group of configuration information is read from the first specified register group, and register group is specified from second
It is middle to read reference check value corresponding with above-mentioned one group of configuration information.
Step 210:The corresponding check value of one group of configuration information is calculated, and judges the check value obtained by calculating and the ginseng read
Whether consistent examine check value, if so, then performing step 220, otherwise, perform step 230.
Specifically, based on default checking algorithm, the corresponding check value of above-mentioned one group of configuration information is calculated, wherein, this step
The checking algorithm of use, the checking algorithm that with pretreatment stage, should calculate the reference check value use of each group configuration information is identical.
Further, it is determined that after the corresponding check value of above-mentioned one group of configuration information, judging that the check value obtained by calculating is
It is no consistent with reference check value that is reading, if so, then performing step 220, otherwise, perform step 230.
For example, it is assumed that one group of configuration information for being stored in the first designated storage area is configuration information A, specifies and deposit from first
Above-mentioned one group of configuration information that storage area domain is read is configuration information A ', and configuration information A is stored in the second designated storage area
Reference check value be CRC1, if based on configuration information A ' calculate obtained by check value be CRC1, perform step 220, otherwise,
Perform step 230.
Step 220:Directly export above-mentioned one group of configuration information.
Specifically, determining, based on the check value obtained by the one group of configuration information calculating read, to specify with being stored in second
When the corresponding reference check value of storage region is consistent, above-mentioned one group of configuration information is directly exported.
For example, still being illustrated with above-mentioned example, if the check value obtained by configuration information A ' calculating is CRC1, it was demonstrated that configuration
Information A ' and configuration information A is identical, can directly export configuration information A '.
Step 230:Based on the corresponding default processing mode of above-mentioned one group of configuration information, above-mentioned one group of configuration information pair is determined
The output result answered.
Specifically, determining, based on the check value obtained by the one group of configuration information calculating read, to specify with being stored in second
When the corresponding reference check value of storage region is inconsistent, based on the corresponding default processing mode of one group of configuration information read,
It is determined that the corresponding output result of above-mentioned one group of configuration information read.
Further, if the one group of configuration information read be analog configuration information, export one group it is default with it is above-mentioned
The corresponding analog parameter of one group of configuration information;If the one group of configuration information read is digital configuration information, directly in output
State one group of configuration information;If the one group of configuration information read is security configuration information, start safe mode, and close debugging
Mouthful.
For example, still being illustrated with above-mentioned example, if the check value obtained by configuration information A ' calculating is CRC2, it was demonstrated that configuration
Information A ' and configuration information A is differed, if configuration information A ' is analog configuration information, then, can be based on default each
Individual analog parameter, one group of output can be with alternative configuration information A analog parameter, so as to the analog circuit energy normal work of chip.
Step 240:Judge that the first designated storage area whether there is the configuration information not read, if so, performing step
200, otherwise, perform step 250.
Specifically, judging that the first designated storage area whether there is the configuration information not read, if still suffering from what is do not read
Configuration information, then continue to read remaining each group configuration information, and perform above-mentioned processing to the configuration information read to operate, no
Then, step 250 is performed.
Step 250:Terminate the read operation of configuration information, into subsequent work state.
Specifically, all configuration informations of the first designated storage area burning of determination have all been read after finishing, it can enter
The subsequent work state of chip.
Certainly, it is the handling process that pair each group configuration information that can be verified is performed, in practical application in above-described embodiment
When, if actual packet is not limited to analog configuration information, three groups of digital configuration information and security configuration information, but exist
Other groups, can directly be exported for other groups without verification.
With reference to specific implement scene, the above embodiment of the present invention is described in further detail, referring particularly to Fig. 3
It is shown.
First, after electricity on chip, digital circuit can read each group from the first designated storage area (CRC Region)
Configuration information, and each group configuration information read is latched in first specified in register group M1, and specify and deposit from second
Each is read in storage area domain (System Configuration) and refers to check value, and each read is locked with reference to check value
Specified in the presence of second in register group M2.
Then, correction verification module M3 carries out CRC check to each group configuration information latched in M1, by above-mentioned each group configuration information
Check value be compared with each the corresponding reference check value stored in M1, if certain group configuration information check value with it is corresponding
Reference check value it is identical, then it represents that verification pass through, output logical value " 1 ", if certain group configuration information check value with it is corresponding
Different with reference to check value, then it represents that verification does not pass through, finally, the logical value of each group configuration information is exported for output logical value " 0 "
Into processing module M4.
Finally, each logical value that M4 is exported based on M3, is accordingly adjusted to each group configuration information that digital circuit is read
It is whole, if the verification of certain group configuration information passes through, directly export this group of configuration information;If certain group configuration information verification failure, and
When confirming this group of configuration information for analog configuration information, one group of default analog parameter is exported, so that analog circuit can normal work
Make;If certain group configuration information verification failure, and when confirming this group of configuration information for digital configuration information, do not influenceing chip operation
In the case of, directly export the digital configuration information read;If certain group configuration information verification failure, and confirm that this assembles confidence
When ceasing for security configuration information, start safe mode, debugging mouth is closed, to prevent source code from being read or distorted.
Based on above-described embodiment, as shown in fig.4, in the embodiment of the present invention, configuration information processing unit, at least including reading
Unit 40 and verification unit 41 are taken, wherein,
Reading unit 40, each group configuration information pre-saved for being read from the first designated storage area;
Verification unit 41, for assembling confidence for each at least one set of configuration information for reading respectively
Breath, performs following operate:
Based on default checking algorithm, the corresponding check value of one group of configuration information is calculated;
Read what is pre-saved from the second designated storage area, it is corresponding with one group of configuration information with reference to verification
Value;
Judge whether the check value is consistent with the reference check value, when determining inconsistent, assemble and put based on described one
The corresponding default processing mode of information, determines the corresponding output result of one group of configuration information.
Optionally, described device also includes pretreatment unit 42, and the pretreatment unit 42 is used for:
Read from the first designated storage area before each group configuration information pre-saved, perform following operate:
Based on preset rules, the latest configuration information collection of chip to be logged is grouped, some groups of configuration informations are obtained,
And determine the corresponding processing mode of each group of configuration information;
Based on default checking algorithm, each self-corresponding reference check value of at least one set of configuration information is calculated respectively, if obtaining
Trepang examines check value, wherein, one group of configuration information correspondence one refers to check value;
Some groups of configuration informations of acquisition are stored in the first designated storage area, and by the described some of acquisition
The second designated storage area is stored in reference to check value.
Optionally, based on preset rules, the latest configuration information collection of chip to be logged is grouped, some assemble is obtained
When confidence ceases, the pretreatment unit 42 is used for:
Feature based on configuration information, the latest configuration information collection to be logged to chip is grouped, and obtains some groups
Configuration information, wherein, some groups of configuration informations at least include following any one group or any combination:Analog configuration information,
Digital configuration information and security configuration information.
Optionally, when each group configuration information pre-saved is read from the first designated storage area, the reading unit
40 are used for:
Read each group configuration information pre-saved from the first designated storage area, and described respectively assembled what is read
Confidence breath is latched in first and specified in register group;
The each group configuration information latched is read from the described first specified register group.
Optionally, based on the corresponding default processing mode of one group of configuration information, one group of configuration information pair is determined
The output result answered, the verification unit 41 is used for:
When determining one group of configuration information for analog configuration information, one group of default and one group of configuration information is exported
Corresponding analog parameter;
When determining one group of configuration information for digital configuration information, one group of configuration information is directly exported;
When determining one group of configuration information for security configuration information, start safe mode, and close debugging mouth.
Optionally, the verification unit 41 is additionally operable to:
It is determined that when consistent, directly exporting one group of configuration information.
In summary, in the embodiment of the present invention, what is pre-saved by being read from the first designated storage area respectively assembles
Confidence breath is directed to each group of configuration information at least one set of configuration information read, calculates corresponding check value, and sentence
Whether the check value broken obtained by calculating is consistent with the reference check value for being stored in the second designated storage area, when determining inconsistent,
Based on the respective default processing mode of each group configuration information, output result is determined, so, what is read on chip after electricity matches somebody with somebody confidence
Breath, even if receiving the interference or malicious sabotage of abnormal environment, can be carried out corresponding based on itself corresponding default processing mode
Processing so that last output result does not interfere with the normal work of chip, substantially increases the stability and safety of chip system
Property, moreover, logical construction is simple, occupancy resource is few, applied widely.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.So, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.
Claims (13)
1. a kind of chip configuring information processing method, it is characterised in that including:
The each group configuration information pre-saved is read from the first designated storage area;
Each group of configuration information at least one set of configuration information read is directed to respectively, performs following operate:
Based on default checking algorithm, the corresponding check value of one group of configuration information is calculated;
Read what is pre-saved from the second designated storage area, reference check value corresponding with one group of configuration information;
Judge whether the check value is consistent with the reference check value, when determining inconsistent, based on one group of configuration information
Corresponding default processing mode, determines the corresponding output result of one group of configuration information.
2. the method as described in claim 1, it is characterised in that each group pre-saved is read from the first designated storage area
Before configuration information, further comprise:
Based on preset rules, the latest configuration information collection of chip to be logged is grouped, some groups of configuration informations are obtained, and really
The corresponding processing mode of fixed each group of configuration information;
Based on default checking algorithm, each self-corresponding reference check value of at least one set of configuration information is calculated respectively, if obtaining trepang
Check value is examined, wherein, one group of configuration information correspondence one refers to check value;
Some groups of configuration informations of acquisition are stored in the first designated storage area, and by some references of acquisition
Check value is stored in the second designated storage area.
3. method as claimed in claim 2, it is characterised in that based on preset rules, the latest configuration to chip to be logged is believed
Breath collection is grouped, and obtains some groups of configuration informations, including:
Function based on configuration information, is grouped to the latest configuration information collection of chip to be logged, and acquisition is some to assemble confidence
Breath, wherein, some groups of configuration informations at least include following any one group or any combination:Analog configuration information, numeral are matched somebody with somebody
Confidence ceases and security configuration information.
4. the method as described in claim any one of 1-3, it is characterised in that read and protect in advance from the first designated storage area
The each group configuration information deposited, including:
The each group configuration information pre-saved is read from the first designated storage area, and each group read is matched somebody with somebody into confidence
Breath is latched in first and specified in register group;
The each group configuration information latched is read from the described first specified register group.
5. method as claimed in claim 3, it is characterised in that based on the corresponding default processing side of one group of configuration information
Formula, determines the corresponding output result of one group of configuration information, including:
When determining one group of configuration information for analog configuration information, one group of output is default corresponding with one group of configuration information
Analog parameter;
When determining one group of configuration information for digital configuration information, one group of configuration information is directly exported;
When determining one group of configuration information for security configuration information, start safe mode, and close debugging mouth.
6. the method as described in claim 1, it is characterised in that further comprise:
It is determined that when consistent, directly exporting one group of configuration information.
7. a kind of chip configuration information processing unit, it is characterised in that including:
Reading unit, each group configuration information pre-saved for being read from the first designated storage area;
Verification unit, for each group of configuration information being directed to respectively at least one set of configuration information read, is performed
Operate below:
Based on default checking algorithm, the corresponding check value of one group of configuration information is calculated;
Read what is pre-saved from the second designated storage area, reference check value corresponding with one group of configuration information;
Judge whether the check value is consistent with the reference check value, when determining inconsistent, based on one group of configuration information
Corresponding default processing mode, determines the corresponding output result of one group of configuration information.
8. device as claimed in claim 7, it is characterised in that described device also includes pretreatment unit, the pretreatment list
Member is used for:
Read from the first designated storage area before each group configuration information pre-saved, perform following operate:
Based on preset rules, the latest configuration information collection of chip to be logged is grouped, some groups of configuration informations are obtained, and really
The corresponding processing mode of fixed each group of configuration information;
Based on default checking algorithm, each self-corresponding reference check value of at least one set of configuration information is calculated respectively, if obtaining trepang
Check value is examined, wherein, one group of configuration information correspondence one refers to check value;
Some groups of configuration informations of acquisition are stored in the first designated storage area, and by some references of acquisition
Check value is stored in the second designated storage area.
9. device as claimed in claim 8, it is characterised in that based on preset rules, the latest configuration to chip to be logged is believed
Breath collection is grouped, and when obtaining some groups of configuration informations, the pretreatment unit is used for:
Function based on configuration information, is grouped to the latest configuration information collection of chip to be logged, and acquisition is some to assemble confidence
Breath, wherein, some groups of configuration informations at least include following any one group or any combination:Analog configuration information, numeral are matched somebody with somebody
Confidence ceases and security configuration information.
10. the device as described in claim any one of 7-9, it is characterised in that read from the first designated storage area advance
During each group configuration information of preservation, the reading unit is used for:
The each group configuration information pre-saved is read from the first designated storage area, and each group read is matched somebody with somebody into confidence
Breath is latched in first and specified in register group;
The each group configuration information latched is read from the described first specified register group.
11. device as claimed in claim 9, it is characterised in that based on the corresponding default processing side of one group of configuration information
Formula, determines the corresponding output result of one group of configuration information, and the verification unit is used for:
When determining one group of configuration information for analog configuration information, one group of output is default corresponding with one group of configuration information
Analog parameter;
When determining one group of configuration information for digital configuration information, one group of configuration information is directly exported;
When determining one group of configuration information for security configuration information, start safe mode, and close debugging mouth.
12. device as claimed in claim 7, it is characterised in that the verification unit is additionally operable to:
It is determined that when consistent, directly exporting one group of configuration information.
13. a kind of electronic equipment, it is characterised in that include the device as any one of claim 7 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710463356.2A CN107329746B (en) | 2017-06-19 | 2017-06-19 | A kind of chip configuring information processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710463356.2A CN107329746B (en) | 2017-06-19 | 2017-06-19 | A kind of chip configuring information processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107329746A true CN107329746A (en) | 2017-11-07 |
CN107329746B CN107329746B (en) | 2019-07-02 |
Family
ID=60195762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710463356.2A Active CN107329746B (en) | 2017-06-19 | 2017-06-19 | A kind of chip configuring information processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107329746B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664358A (en) * | 2018-05-18 | 2018-10-16 | 广州视源电子科技股份有限公司 | Microcontroller parameter processing method, system, readable storage medium storing program for executing and terminal device |
CN111314045A (en) * | 2018-12-12 | 2020-06-19 | 珠海格力电器股份有限公司 | Method, device, storage medium and terminal for identifying laser fault injection attack |
CN112731815A (en) * | 2020-12-16 | 2021-04-30 | 中国航空工业集团公司西安航空计算技术研究所 | Method for improving analog quantity acquisition precision |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120297177A1 (en) * | 2010-11-15 | 2012-11-22 | Ghosh Anup K | Hardware Assisted Operating System Switch |
CN104123167A (en) * | 2014-08-06 | 2014-10-29 | 无锡中微爱芯电子有限公司 | MCU electrification starting method with configuration word self-inspection function and self-inspection method |
CN105205034A (en) * | 2015-09-25 | 2015-12-30 | 中国人民解放军国防科学技术大学 | Method for high-reliability parameter configuration based on application specific integrated circuit (ASIC) |
-
2017
- 2017-06-19 CN CN201710463356.2A patent/CN107329746B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120297177A1 (en) * | 2010-11-15 | 2012-11-22 | Ghosh Anup K | Hardware Assisted Operating System Switch |
CN104123167A (en) * | 2014-08-06 | 2014-10-29 | 无锡中微爱芯电子有限公司 | MCU electrification starting method with configuration word self-inspection function and self-inspection method |
CN105205034A (en) * | 2015-09-25 | 2015-12-30 | 中国人民解放军国防科学技术大学 | Method for high-reliability parameter configuration based on application specific integrated circuit (ASIC) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664358A (en) * | 2018-05-18 | 2018-10-16 | 广州视源电子科技股份有限公司 | Microcontroller parameter processing method, system, readable storage medium storing program for executing and terminal device |
CN111314045A (en) * | 2018-12-12 | 2020-06-19 | 珠海格力电器股份有限公司 | Method, device, storage medium and terminal for identifying laser fault injection attack |
CN111314045B (en) * | 2018-12-12 | 2021-03-26 | 珠海格力电器股份有限公司 | Method, device, storage medium and terminal for identifying laser fault injection attack |
CN112731815A (en) * | 2020-12-16 | 2021-04-30 | 中国航空工业集团公司西安航空计算技术研究所 | Method for improving analog quantity acquisition precision |
Also Published As
Publication number | Publication date |
---|---|
CN107329746B (en) | 2019-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103488952B (en) | File integrity verification method and file processor | |
US20170206382A1 (en) | Cryptographic asic including circuitry-encoded transformation function | |
CN107506663A (en) | Server security based on credible BMC starts method | |
CN107329746B (en) | A kind of chip configuring information processing method and device | |
CN103559435B (en) | The debugging port controlling method and apparatus of terminal device | |
CN105812357B (en) | A kind of user password management method of cloud computing platform | |
CN110110526A (en) | A kind of safety starting device and method based on safety chip | |
CN108664358A (en) | Microcontroller parameter processing method, system, readable storage medium storing program for executing and terminal device | |
CN107135229A (en) | Intelligent home information safe verification method, device, equipment and system | |
CN106548063A (en) | A kind of credible tolerance methods, devices and systems | |
CN110071917A (en) | User password detection method, unit and storage medium | |
CN103425932B (en) | Signature calibration method and terminal device | |
CN115017517A (en) | Chip and checking method | |
US11106829B2 (en) | Chip fingerprint management based upon one-time programmable memory | |
CN107239358A (en) | Startup method, mobile terminal and the device with store function of Android system | |
US7373525B2 (en) | Data processing method and data checking method | |
CN108959912A (en) | A kind of method, device and equipment of BIOS and operating system multiplexing password | |
CN102045170B (en) | Method and system for protecting safety of password | |
CN109711162A (en) | A kind of security application method and system based on block chain | |
CN106576040A (en) | Method for controlling error rate of device-specific information, and program for controlling error rate of device-specific information | |
CN106372523A (en) | Modem file safety protection method and system | |
CN104506558B (en) | Hierarchy type data possess method of proof | |
CN110378125A (en) | The verification method of trust computing | |
CN107291372A (en) | Electronic device and data verification method thereof | |
CN106935266B (en) | Control method, device and system for reading configuration information from memory |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |