[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN1971763A - Self-examining device and method of ROM - Google Patents

Self-examining device and method of ROM Download PDF

Info

Publication number
CN1971763A
CN1971763A CN 200610164831 CN200610164831A CN1971763A CN 1971763 A CN1971763 A CN 1971763A CN 200610164831 CN200610164831 CN 200610164831 CN 200610164831 A CN200610164831 A CN 200610164831A CN 1971763 A CN1971763 A CN 1971763A
Authority
CN
China
Prior art keywords
rom
hash function
chip
module
result
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
Application number
CN 200610164831
Other languages
Chinese (zh)
Other versions
CN100464376C (en
Inventor
杨柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vimicro Corp
Original Assignee
Vimicro Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2006101648318A priority Critical patent/CN100464376C/en
Publication of CN1971763A publication Critical patent/CN1971763A/en
Application granted granted Critical
Publication of CN100464376C publication Critical patent/CN100464376C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A ROM selfcheck device is disclosed that includes: ROMBIST control module mounted in the chip, Hash function processing module, and reference value comparing module. The invention utilizes the characteristic of the Hash function, the value of ROM is sent to Hash function to process, the output of Hash function is transmitted to the outer face of chip and compare with reference value of Hash to realize the ROM selfcheck. Because of the characteristic of the Hash function, the value of ROM can't be got by conversion of the output of Hash function; the change of bit in ROM could result in the change of Hash function at the same time, so the effective ROM selfcheck can be realized without revealing the content of the ROM. It can be used for ROM selfcheck of various systems.

Description

A kind of ROM (read-only memory) self-test device and method
Technical field
The present invention relates to the detection range of storer, particularly a kind of self-test device of ROM (read-only memory) and method.
Technical background
ROM is a ROM (read-only memory), and ROM can not revise in chip, and the value of the inside is to preset in the chip design process.Because might there be fault in the ROM in the chip owing to the reason of making, promptly the actual value B that preserves may be different with the value A that presets among the ROM, and this can cause the entire chip function incorrect.And the chip of submitting to the client must be that function is correct, so generally all need ROM is carried out chip from detection, i.e. ROMBIST.Way commonly used is that a ROMBIST circuit is set in chip, as shown in Figure 1, when carrying out self check, the ROMBIST module with the value B among the ROM read out with the outer reference value A comparing module of chip in the reference value A that presets compare, whether equal to judge A, B.
Because the ROM in the chip has often preserved responsive information, it may be a large amount of resource design of chip design company cost, as the firmware in the microcontroller, so these information can not be obtained by the rival, and noted earlierly value among the ROM is read by the ROMBIST circuit, then may cause these responsive information leakage, this is a very serious problem.
Summary of the invention
In view of this, the present invention need solve the problem that may reveal content among the ROM when carrying out the ROM self check, so purpose of the present invention just is to provide a kind of safer ROM self test mode.
In order to achieve the above object, the invention provides a kind of ROM (read-only memory) self-test device, be used for the ROM that is arranged on chip internal is carried out self check, comprise: be arranged on ROMBIST control module and Hash function processing module in the chip, and be positioned at the outer reference value comparing module of chip;
Described ROMBIST control module is responsible for the actual data B that preserves among the ROM is read out, and gives Hash function processing module;
The Hash function processing module is exported to the outer described reference value comparing module of chip with result f (B) after B is handled through function f (x);
The in store f that presets (A) value in the described reference value comparing module, wherein A is the correct value that should preserve among the ROM, this module is used for more described f (A) and f (B), the result whether output f (A) equates with f (B);
If f (A)=f (B) so, then the content B that preserves among the ROM as can be known is correct, otherwise promptly the content B that preserves among the decidable ROM is wrong.
Preferably, described Hash function is SHA-1, MUD5 etc.
The invention also discloses a kind of ROM (read-only memory) from the detection method, may further comprise the steps:
100, read the actual data B that preserves among the ROM;
200, (x) handles described B with the Hash function f, obtains f (B);
300, f (B) is compared with the f that presets (A), judge whether to equate?
Described f (A) is that the content A that will should preserve among the ROM carries out the result that described f (x) processing obtains afterwards;
400, if the judged result of step 300 is for being, promptly f (A)=f (B) then can get B=A, and the ROM testing result is correct; If the judged result of step 300 is that promptly f (A) ≠ f (B) then can not get B ≠ A, the ROM testing result is a mistake.
Preferably, described Hash function is SHA-1, MUD5 etc.
Be the value of ROM directly to be seen off carry out self check in the prior art, and the present invention utilizes the characteristic of Hash function, give the Hash function with the value among the ROM and handle, then the output of Hash function is delivered to the chip outside and compared, to realize the self check of ROM with the hash value of preserving in advance.Because the characteristic of Hash function, can't reversely obtain value among the ROM by the output of Hash function; Simultaneously, the variation of the value of any one bit among the ROM all can cause the variation of Hash function output, therefore utilizes the present invention, can carry out effective ROM self check under the situation of not revealing content among the ROM.
Description of drawings
Fig. 1 is a ROM self test mode synoptic diagram of the prior art;
Fig. 2 is apparatus of the present invention synoptic diagram;
Fig. 3 is the inventive method process flow diagram.
Embodiment
Below in conjunction with description of drawings ROM self-test device of the present invention and method.Content should be A in this hypothesis ROM, and actual content of preserving is B, and whether the present invention just is used to detect described B and equates with A.
At first introduce the Hash function, this is a kind of one-way function, and its input can be a random length, and for example 128KB, 256KB etc. are fixed length and export, for example 128bit.An outstanding feature of Hash function is can't obtain input by its output, is one-way function; The another one characteristics are to obtain same specific output by two different inputs and be difficult to.Present Hash function has a variety of, as SHA-1, MUD5 etc., hereinafter, if not refer in particular to a certain Hash function, then uses this function of f (x) mark, and wherein x is its input.
The present invention has promptly utilized described two characteristics of Hash function, applies it in the ROM self check.As shown in Figure 2, the inventive system comprises the ROMBIST control module and the Hash function processing module that are arranged in the chip, and be positioned at outer reference value f (A) comparing module of chip.Described ROMBIST control module is responsible for the actual data B that preserves among the ROM is read out, give Hash function processing module, the Hash function processing module is handled B through function f (x) after, operation result f (B) is exported to outer reference value f (A) comparing module of chip, the in store f that presets (A) value in this module, wherein A is the correct value that should preserve among the ROM.If f (A)=f (B) so, then the content B that preserves among the ROM as can be known is correct, promptly B=A otherwise, promptly the content B that preserves among the decidable ROM is wrong, i.e. B ≠ A.
ROM of the present invention may further comprise the steps from the detection method as shown in Figure 3:
100, read the actual data B that preserves among the ROM;
200, (x) handles described B with the Hash function f, obtains f (B);
Use a Hash function,, described B is handled, obtain SHA-1 (B) as a result with this function as the SHA-1 function.
300, f (B) is compared with the f that presets (A), judge whether to equate?
The SHA-1 that presets (A) is that the content A that will should preserve among the ROM handles the result who obtains afterwards with the SHA-1 function.
401, if the judged result of step 300 is for being, promptly SHA-1 (A)=SHA-1 (B) then can get B=A, and the ROM testing result is correct.
402, if the judged result of step 300 is that promptly SHA-1 (A) ≠ SHA-1 (B) then can not get B ≠ A, the ROM testing result is a mistake.
The present invention needs simultaneously to do the occasion that ROM tests oneself again for the sensitive information that needs protection and is even more important.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement etc., all should be included within protection scope of the present invention.

Claims (4)

1, a kind of ROM (read-only memory) self-test device, be used for the ROM that is arranged on chip internal is carried out self check, it is characterized in that, comprising: be arranged on ROMBIST control module and Hash function processing module in the chip, and be positioned at the outer reference value comparing module of chip;
Described ROMBIST control module is responsible for the actual data B that preserves among the ROM is read out, and gives Hash function processing module;
The Hash function processing module is exported to the outer described reference value comparing module of chip with result f (B) after B is handled through function f (x);
The in store f that presets (A) value in the described reference value comparing module, wherein A is the correct value that should preserve among the ROM, this module is used for more described f (A) and f (B), the result whether output f (A) equates with f (B);
If f (A)=f (B) so, then the content B that preserves among the ROM as can be known is correct, otherwise promptly the content B that preserves among the decidable ROM is wrong.
2, device according to claim 1 is characterized in that, described Hash function is SHA-1, MUD5 etc.
3, a kind of ROM (read-only memory) may further comprise the steps from the detection method:
100, read the actual data B that preserves among the ROM;
200, (x) handles described B with the Hash function f, obtains f (B);
300, f (B) is compared with the f that presets (A), judge whether to equate?
Described f (A) is that the content A that will should preserve among the ROM carries out the result that described f (x) processing obtains afterwards;
400, if the judged result of step 300 is for being, promptly f (A)=f (B) then can get B=A, and the ROM testing result is correct; If the judged result of step 300 is that promptly f (A) ≠ f (B) then can not get B ≠ A, the ROM testing result is a mistake.
4, method according to claim 3 is characterized in that, described Hash function is SHA-1, MUD5 etc.
CNB2006101648318A 2006-12-06 2006-12-06 Self-examining device and method of ROM Expired - Fee Related CN100464376C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101648318A CN100464376C (en) 2006-12-06 2006-12-06 Self-examining device and method of ROM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101648318A CN100464376C (en) 2006-12-06 2006-12-06 Self-examining device and method of ROM

Publications (2)

Publication Number Publication Date
CN1971763A true CN1971763A (en) 2007-05-30
CN100464376C CN100464376C (en) 2009-02-25

Family

ID=38112514

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101648318A Expired - Fee Related CN100464376C (en) 2006-12-06 2006-12-06 Self-examining device and method of ROM

Country Status (1)

Country Link
CN (1) CN100464376C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929268A (en) * 2012-10-16 2013-02-13 福建慧翰微电子有限公司 Self checking implementation method of vehicle-mounted remote monitoring terminal
CN104880575A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Flow velocity sensor detection method and apparatus
CN114639437A (en) * 2022-05-05 2022-06-17 长鑫存储技术有限公司 Memory test method, device, equipment and storage medium
CN116930727A (en) * 2023-09-18 2023-10-24 北京怀美科技有限公司 Chip detection method based on circuit board

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1145972C (en) * 2000-03-30 2004-04-14 华为技术有限公司 Automatic detection method and detection circuit of random access memory
JP2006031820A (en) * 2004-07-16 2006-02-02 Matsushita Electric Ind Co Ltd Semiconductor integrated circuit, and semiconductor wafer
US7346816B2 (en) * 2004-09-29 2008-03-18 Yen-Fu Liu Method and system for testing memory using hash algorithm
CN100356337C (en) * 2004-10-16 2007-12-19 鸿富锦精密工业(深圳)有限公司 Data detection system and method of read only memory in basic input/output system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929268A (en) * 2012-10-16 2013-02-13 福建慧翰微电子有限公司 Self checking implementation method of vehicle-mounted remote monitoring terminal
CN102929268B (en) * 2012-10-16 2015-04-15 福建慧翰微电子股份有限公司 Self checking implementation method of vehicle-mounted remote monitoring terminal
CN104880575A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Flow velocity sensor detection method and apparatus
CN104880575B (en) * 2014-02-28 2019-03-05 北京谊安医疗系统股份有限公司 The detection method and device of flow sensor
CN114639437A (en) * 2022-05-05 2022-06-17 长鑫存储技术有限公司 Memory test method, device, equipment and storage medium
CN116930727A (en) * 2023-09-18 2023-10-24 北京怀美科技有限公司 Chip detection method based on circuit board
CN116930727B (en) * 2023-09-18 2023-11-28 北京怀美科技有限公司 Chip detection method based on circuit board

Also Published As

Publication number Publication date
CN100464376C (en) 2009-02-25

Similar Documents

Publication Publication Date Title
CN100464376C (en) Self-examining device and method of ROM
EP1260988A3 (en) Resistive cross point memory device with calibration controller for a sense amplifier
EP3761025B1 (en) A method of operating a gas sensing device, and corresponding gas sensing device
CN109635564A (en) A kind of method, apparatus, medium and equipment detecting Brute Force behavior
CN109239575B (en) Detection device, detection method and automatic detection system
CN104678340B (en) A kind of magnetometer survey error correction method and system
US20150042356A1 (en) Test system for testing electrostatic tester and method thereof
US11696159B2 (en) Method, apparatus, and non-transitory computer readable medium for testing terminals
CN108458633B (en) A kind of detection method of electric detonator, detection device and storage medium
CN110647434A (en) Hardware self-checking method, device, communication equipment and storage medium
CN107462800A (en) Bypass diode detection method and system in photovoltaic module
CN104991846B (en) The switching system and method for a kind of working mode of mobile terminal
JP5250505B2 (en) Mobile communication device test system and test method
KR20100062796A (en) Method and device of testing side-channel
CN104849578A (en) Test analysis method for evaluating TVS load effect characteristic of LNA source terminal
CN109145609B (en) Data processing method and device
CN101996113B (en) Method and device for identifying cause of system reset
CN113743039B (en) Method, device, storage medium and equipment for checking network label designed by schematic diagram
CN117896016A (en) Detection method and detection system of radio frequency device and electronic equipment
KR102630360B1 (en) Static setting system and method of automotive open system architecture sensor interface
CN114880719B (en) Safety detection sensor system based on FPGA
CN113671232B (en) Residual current detection device
CN104952751B (en) The method and system that equipment off-line detects in technical process
CN115543934B (en) Method and system for exporting chip test data document
CN112468358B (en) Protocol detection method, system, equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090225

Termination date: 20111206