Summary of the invention
The technical problem to be solved in the present invention provides a kind of test pattern implementation method of embedded non-volatility memory chip, can under the situation of not reserving special test pin, realize test to described chip, and can be transformed under the duty from test mode, thereby can reduce area of chip, also can other normal functions of chip not had any impact.
For solving the problems of the technologies described above, the invention provides a kind of test pattern implementation method of embedded non-volatility memory chip, may further comprise the steps:
(1) the initial address value in the non-volatility memorizer addressing range of built-in chip type is made as the value of characterization test pattern, other values is made as the value that characterizes normal mode of operation;
(2) outside the addressing range of described non-volatility memorizer, introduce an extra extra address, be used for the storage configuration value of statistical indicant;
(3) one two input comparator of use is realized the switching between test pattern and normal mode of operation; The predefined data of the fixing input of one end of described comparer is the initial value of described non-volatility memorizer addressing range, and the other end is imported by described extra address described status flag value pointed; When described status flag value was the initial value of described non-volatility memorizer addressing range, described comparer made the signal of described chip operation under test pattern with output; And when described status flag value was worth for other, described comparer made the signal of described chip operation under normal mode of operation with output.
The present invention is owing to adopted technique scheme, has such beneficial effect, promptly be in the state flag bit that test pattern still is a normal mode of operation by outside the addressing range of built-in chip type storer, introducing a sign chip, thereby realized that described chip can change between test pattern and normal mode of operation, realize above-mentioned functions and need not on chip, to increase extra test pin, reduce area of chip to a certain extent, reduced cost; And because the address of described status flag value is outside the addressing range of described built-in chip type storer, therefore when described chip is in normal mode of operation, can't visit again and revise described status flag value, chip when having guaranteed thus to be in normal mode of operation can not enter test pattern more by mistake, thereby has guaranteed safety of data.
Embodiment
Initial address value in the non-volatility memorizer addressing range of built-in chip type is made as the value of characterization test pattern, other values is made as the value that characterizes normal mode of operation; If but under test pattern, need to visit other address values in the described memory addressing scope, then the address value that needs under these test patterns to visit also is made as the value of characterization test pattern, and the value that will be left is made as the value that characterizes normal mode of operation.
Outside the addressing range of the non-volatility memorizer of described built-in chip type, introduce an extra extra address, be used for the storage configuration value of statistical indicant; Why will be with extra address outside the memory addressing scope as the address of described status flag value, be user's normal use to be impacted because can guarantee so not.Therefore can guarantee chip when finishing communication protocol, under the prerequisite that does not influence normal protocol, the status flag value in this extra address be conducted interviews, thereby and need not increase the extra time and increase the extra read cycle and cause the incompatible of communication protocol.By certain logic, make and just can conduct interviews and revise in test pattern following time when chip operation this address, and when it is operated in normal mode of operation, can not conducts interviews and revise this address, thereby can avoid the wrong possibility that enters test pattern when chip is in normal mode of operation, therefore guarantee safety of data.But bring confusion to the user for fear of this status flag value, with described status flag value from this extra address read by described chip read in its circuit inside the back oneself judge, and do not output to the outside of this chip, in case and user mistake is 0 output by phase inverter with the transformation of data of being read then when the data in the described extra address are read.
As shown in Figure 1, one two input comparator of use is realized the switching between test pattern and normal mode of operation.The predefined data of the fixing input of one end of this comparer is the initial value of described non-volatility memorizer addressing range, and other end input is by described extra address described status flag value pointed.When described status flag value was the initial value of memory addressing scope, described comparer made the signal of described chip operation under test pattern with output; And when described status flag value was worth for other, described comparer made the signal of described chip operation under normal mode of operation with output.Wherein, described status flag value default setting is the initial value of described memory addressing scope, thereby can guarantee that chip must be under the test pattern during electrification reset for the first time.When described chip is in test pattern following time, described chip can carry out write operation to the address of described status flag value, thereby has guaranteed when chip testing finishes, and can change described status flag value, thereby make chip be converted to normal mode of operation.In order to improve the reliability of described chip when test pattern is transformed into normal mode of operation, can preestablish a special transition status value, this transition status value should be formed by a plurality of 1 and a plurality of 0, thereby guaranteed when status flag value is written as described transition status value, can enter normal mode of operation reliably, not make the value that writes in this status flag value become the value that is characterized by test pattern and can not be damaged owing to the individual bits in the described status flag value; And be in normal mode of operation following time when described chip, owing at this moment can not conduct interviews again or revise to this address, thereby avoided the possibility that the meeting mistake enter test pattern under normal mode of operation, therefore guarantee safety of data, be highly suitable for the situation that those need be tested chip in the Wafer level.
With a specific embodiment method of the present invention is described below:
With I2C serial EEPROM chip is example, and in the circuit operate as normal, the addressing range of this EEPROM is 00H~7FH, therefore at this moment the extra address of status flag value can be made as 80H, specifically can be with reference to figure 2.
At this moment, because the initial value of EEPROM is 00H, so 00H is made as the characterization test pattern; Simultaneously owing to when testing, carrying out the erasable test of 00H/FFH to EEPROM, so FFH also is made as the value of characterization test pattern.
Therefore reference table 1 when the status flag value in can proper extra address 80H is 00H or FFH, can make described two input comparators make described eeprom chip be operated in signal under the test pattern output, and at this moment chip will be operated under the test pattern; And after formally finishing test, when being written as 55H by the status flag value in extra address 80H, then can make two input comparators output make described eeprom chip be operated in signal under the normal mode of operation, at this moment described chip just is transformed into normal mode of operation from test pattern and has descended; Why with 55H as the transition status value that is transformed into normal mode of operation from test pattern, be because 55H is made up of 4 " 1 " and 4 " 0 ", even can not become 00H or FFH easily so the individual bits in the beautiful value of state is damaged also, thereby improve reliability.
Table 1
55H |
Normal mode of operation |
00H |
Test pattern |
FFH |
Test pattern |
Other numerical value |
Normal mode of operation |
The default 00H that is made as of status flag value among the described 80H, like this when described eeprom chip for the first time during electrification reset, after the I2C communication initial " beginning (Start) ", when circuit can utilize serial input " device address (DeviceAddress) ", status flag value among the 80H is read, read the back owing to being 00H, so can enter test pattern automatically through judgement, so neither can influence normally carrying out of I2C agreement, guarantee that also the data in the zone bit byte are gathered smoothly.
When described eeprom chip is in test pattern; can be to described extra address 80H write data again; when the data that write are 55H; normal mode of operation will be judged and enter to circuit automatically; after entering normal mode of operation, because described extra address 80H is outside the EEPROM addressing range, so the user just can't conduct interviews to this extra address 80H or revise forever again; so before answering end of test (EOT) 80H is write 55H, to protect this status flag value.
After communication next time initial " beginning ", when circuit utilizes serial input " device address " once more, the data among the extra address 80H among the EEPROM are read, at this moment as if judging that chip is in normal mode of operation after the value of reading 55H.
Because extra address 80H is outside the addressing range of EEPROM, therefore the user in use might misread out, status flag value in this extra address 80H is brought confusion to the user, it is oneself to judge after read circuit inside that data are read from this extra address 80H, does not output to chip exterior.By logic control,, then as shown in Figure 3, then can be in advance change the actual value of 55H into 00H output by 4 phase inverters in case client mistake is read the data among this extra address 80H.