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

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

Self-examining device and method of ROM Download PDF

Info

Publication number
CN100464376C
CN100464376C CNB2006101648318A CN200610164831A CN100464376C CN 100464376 C CN100464376 C CN 100464376C CN B2006101648318 A CNB2006101648318 A CN B2006101648318A CN 200610164831 A CN200610164831 A CN 200610164831A CN 100464376 C CN100464376 C CN 100464376C
Authority
CN
China
Prior art keywords
rom
hash function
chip
result
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006101648318A
Other languages
Chinese (zh)
Other versions
CN1971763A (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

Images

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 of a pre-stored 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 right value A with a pre-stored among the ROM carries out the result that described f (x) obtains after handling;
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 of pre-stored 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 the result who obtains after the right value A of pre-stored among the ROM is handled 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 ROM (read-only memory) self-test device is 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 hash function f (x);
The in store f that presets (A) value in the described reference value comparing module, wherein A is the correct value of a pre-stored 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.
3. a 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 A with a pre-stored among the ROM carries out the result that described f (x) obtains after handling;
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.
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 CN1971763A (en) 2007-05-30
CN100464376C true 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)

Families Citing this family (4)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1315732A (en) * 2000-03-30 2001-10-03 华为技术有限公司 Automatic test method and circuit for RAM
JP2006031820A (en) * 2004-07-16 2006-02-02 Matsushita Electric Ind Co Ltd Semiconductor integrated circuit, and semiconductor wafer
US20060069966A1 (en) * 2004-09-29 2006-03-30 Yen-Fu Liu Method and system for testing memory using hash algorithm
CN1760838A (en) * 2004-10-16 2006-04-19 鸿富锦精密工业(深圳)有限公司 ROM of BIOS data detection system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1315732A (en) * 2000-03-30 2001-10-03 华为技术有限公司 Automatic test method and circuit for RAM
JP2006031820A (en) * 2004-07-16 2006-02-02 Matsushita Electric Ind Co Ltd Semiconductor integrated circuit, and semiconductor wafer
US20060069966A1 (en) * 2004-09-29 2006-03-30 Yen-Fu Liu Method and system for testing memory using hash algorithm
CN1760838A (en) * 2004-10-16 2006-04-19 鸿富锦精密工业(深圳)有限公司 ROM of BIOS data detection system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Hash树热点窗口的存储器完整性校验方法. 侯方勇,王志英,刘真.计算机学报,第11期. 2004
基于Hash树热点窗口的存储器完整性校验方法. 侯方勇,王志英,刘真.计算机学报,第11期. 2004 *

Also Published As

Publication number Publication date
CN1971763A (en) 2007-05-30

Similar Documents

Publication Publication Date Title
CN100464376C (en) Self-examining device and method of ROM
EP3761025B1 (en) A method of operating a gas sensing device, and corresponding gas sensing device
EP1260988A3 (en) Resistive cross point memory device with calibration controller for a sense amplifier
CN109635564A (en) A kind of method, apparatus, medium and equipment detecting Brute Force behavior
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN109239575B (en) Detection device, detection method and automatic detection system
WO2008152315A3 (en) Method and device for managing, processing and monitoring parameters used on board aircraft
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
CN104991846B (en) The switching system and method for a kind of working mode of mobile terminal
US10761954B2 (en) Sensor detection architecture
CN108382729B (en) Packaging box with NFC chip and control method thereof
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
US11422544B2 (en) Failure diagnosis system
KR900013609A (en) Event Limit Inspection Structures for Integrated Circuits
KR102630360B1 (en) Static setting system and method of automotive open system architecture sensor interface
CN117896016A (en) Detection method and detection system of radio frequency device and electronic equipment
CN104952751B (en) The method and system that equipment off-line detects in technical process
CN114880719B (en) Safety detection sensor system based on FPGA
CN115543934B (en) Method and system for exporting chip test data document
CN107678986A (en) USB3.0 transmission rates method to set up, mobile terminal and storage medium

Legal Events

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

Granted publication date: 20090225

Termination date: 20111206