[go: up one dir, main page]

CN1681048A - Testing method of memory address line - Google Patents

Testing method of memory address line Download PDF

Info

Publication number
CN1681048A
CN1681048A CN 200410031039 CN200410031039A CN1681048A CN 1681048 A CN1681048 A CN 1681048A CN 200410031039 CN200410031039 CN 200410031039 CN 200410031039 A CN200410031039 A CN 200410031039A CN 1681048 A CN1681048 A CN 1681048A
Authority
CN
China
Prior art keywords
address
data
test
wire
memory
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 200410031039
Other languages
Chinese (zh)
Other versions
CN100428364C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100310396A priority Critical patent/CN100428364C/en
Publication of CN1681048A publication Critical patent/CN1681048A/en
Application granted granted Critical
Publication of CN100428364C publication Critical patent/CN100428364C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明有关于存储器地址线的测试方法。其主要是用“走步1”或“走步0”方法选取存储器的地址单元,在地址单元中写入测试数据,所述测试数据与需要测试的地址线相对应的数据位为“0”,其余数据位为“1”;对所有地址线进行走步测试,读取存储器第一地址单元和最后一个地址单元中的数据,根据数据中的“0”比特位来确定相应的地址线故障。The invention relates to a method for testing memory address lines. It mainly uses the method of "walking 1" or "walking 0" to select the address unit of the memory, and writes test data in the address unit, and the data bit corresponding to the address line to be tested is "0". , and the rest of the data bits are "1"; perform a walk test on all address lines, read the data in the first address unit and the last address unit of the memory, and determine the corresponding address line fault according to the "0" bit in the data .

Description

存储器地址线测试方法Memory Address Line Test Method

技术领域technical field

本发明有关一种存储器地址线测试方法,尤指一种采用“走步0”和“走步1”的方法准确定位出地址线故障的方法。The invention relates to a method for testing memory address lines, in particular to a method for accurately locating address line faults by adopting the "step 0" and "step 1" methods.

背景技术Background technique

目前,单板上的CPU最小系统一般都包括CPU、FLASH和SDRAM等器件,CPU是单板的核心,用来执行单板软件指定的各项操作。FLASH是一种电可擦除的存储器,即使单板掉电,保存在其中的程序或数据也不会丢失。CPU可以方便地读出FLASH中的内容,但只有在特定的情况下才可以对其进行擦除和写入操作。SDRAM是一种动态的存储器,单板掉电以后,保存在其中的程序或数据就会丢失,CPU可以很方便地对SDRAM进行读写操作。这两种存储器本身的特点决定了CPU对FLASH中的数据读写较慢,而对SDRAM中的数据读写较快。所以一般都是将单板软件保存在FLASH中,单板上电进行必要的初始化以后,便将FLASH中的程序和数据搬移到SDRAM中来运行,这样可以保证单板的运行速度较快。SDRAM和FLASH在单板上的作用都是相当重要的,因此有必要对其数据线、地址线及单元进行全面的测试。At present, the minimum CPU system on a single board generally includes CPU, FLASH and SDRAM and other devices. The CPU is the core of the single board and is used to execute various operations specified by the single board software. FLASH is an electrically erasable memory, even if the board is powered off, the program or data stored in it will not be lost. The CPU can easily read out the content in the FLASH, but only in certain circumstances can it be erased and written. SDRAM is a dynamic memory. After the board is powered off, the programs or data stored in it will be lost, and the CPU can easily read and write SDRAM. The characteristics of these two memories determine that the CPU reads and writes data in FLASH slowly, but reads and writes data in SDRAM faster. Therefore, the board software is generally stored in FLASH, and after the board is powered on for necessary initialization, the programs and data in the FLASH are moved to SDRAM to run, which can ensure a faster running speed of the board. The functions of SDRAM and FLASH on the single board are very important, so it is necessary to conduct a comprehensive test on its data lines, address lines and units.

目前,对FLASH外围互连测试一般采取“三步测试法”,其具体的描述摘录如下:At present, the "three-step test method" is generally adopted for the FLASH peripheral interconnection test, and its specific description is excerpted as follows:

表一 三步测试法总表   测试步骤     操作     地址     数据  注释 第一步     写     A0     0...000  A0和A1是两个任意的相异地址,读数的同时进行比较和判断。     写     A1     1...111     读     A0     0...000     读     A1     1...111 第二步a   写     A0     0...001 A0、A1、...、An是任意一组地址,要求地址各不相同,建议就采用一组从0开始递增的地址,对数据线运用“走步1”算法。   写     A1     0...010   ......     ......     ......   写     An     1...000   读     A0     0...001   读     A1     0...010   ......     ......     ......   读     An     1...000   第二步b         对数据线运用“走步0”算法,重复第二步a的过程 第三步a   写     0...000     D0  D0、D1、...Dn任意一组可区分的数据。对地址线运用“走步1”算法。   写     0...001     D1   写     ......     ......   写     1...000     Dn   读     0...000     D0   读     0...001     D1   读     ......     ......   读     1...000     Dn   第三步b         对地址线运用“走步0”算法,重复第三步a的过程。 Table 1 Summary table of the three-step test method test steps operate address data note first step Write A 0 0...000 A 0 and A 1 are two arbitrary different addresses, which are compared and judged while reading. Write A 1 1...111 read A 0 0...000 read A 1 1...111 second step a Write A 0 0...001 A 0 , A 1 ,..., An are any set of addresses, and the addresses are required to be different. It is recommended to use a set of addresses incrementing from 0, and use the "walking 1" algorithm for the data lines. Write A 1 0...010  …  …  … Write An 1...000 read A 0 0...001 read A 1 0...010  …  …  … read An 1...000 second stepb Apply the "step 0" algorithm to the data line, and repeat the process of the second step a third stepa Write 0...000 D 0 D 0 , D 1 , ... D n are any set of distinguishable data. Apply the "walk 1" algorithm to the address lines. Write 0...001 D 1 Write  …  … Write 1...000 D n read 0...000 D 0 read 0...001 D 1 read  …  … read 1...000 D n Step 3b Apply the "step 0" algorithm to the address line, and repeat the process of the third step a.

第一步测试用来测试数据线是否存在开路故障,第二步测试用来测试数据线是否存在短路故障,第三步测试用来测试地址线是否存在开路或短路故障。在数据线与地址线全部测试完成之后再进行故障诊断。The first test is used to test whether there is an open circuit fault on the data line, the second test is used to test whether there is a short circuit fault on the data line, and the third test is used to test whether there is an open circuit or short circuit fault on the address line. Carry out fault diagnosis after all tests of data lines and address lines are completed.

第一步测试的故障诊断比较简单,如果写全0没有读到全0,就说明数据线存在S-A-1(固定为1)的故障,数值为1的数据线就是发生S-A-1的故障线位置。相反的情况,如果写1没有读到全1,就说明数据线存在S-A-0(固定为0)的故障,数值位0的数据线就是发生S-A-0故障的数据线位置。The fault diagnosis of the first step test is relatively simple. If all 0s are written and all 0s are not read, it means that the data line has an S-A-1 (fixed to 1) fault, and the data line with a value of 1 is the fault line of S-A-1. Location. On the contrary, if writing 1 does not read all 1s, it means that the data line has an S-A-0 (fixed to 0) fault, and the data line with a value of 0 is the position of the data line where the S-A-0 fault occurs.

第二步测试需要对短路故障的数据线位置和什么类型的短路故障进行判断,表2是第二步测试的一个结果,举例对故障诊断进行说明(数据线b3b2b1b0,测试向量r0 r1...r7):The second step of the test needs to judge the position of the data line of the short-circuit fault and what type of short-circuit fault is. Table 2 is a result of the second step of the test. An example is used to illustrate the fault diagnosis (data line b 3 b 2 b 1 b 0 , Test vector r 0 r 1 ... r 7 ):

表二 三步测试法第二步测试(数据线测试)     1   2   3    4    5    6    7    8   期望值   b2开路S-A-0    b2和b1开路S-A-0    b2和b1短路0-支配型    b2和b1开路S-A-1    b2和b1短路1-支配型    b3和b1开路S-A-0b2和b1短路0-支配型   b3b2b1b0   b3b2b1b0    b3b2b1b0    b3b2b1b0    b3b2b1b0    b3b2b1b0    b3b2b1b0     r0   1 0 0 0   1 0 0 0    1 0 0 0    1 0 0 0    1 1 1 0    1 0 0 0    0 0 0 0     r1   0 1 0 0   0 0 0 0    0 0 0 0    0 0 0 0    0 1 1 0    0 1 1 0    0 0 0 0     r2   0 0 1 0   0 0 1 0    0 0 0 0    0 0 0 0    0 1 1 0    0 1 1 0    0 0 0 0     r3   0 0 0 1   0 0 0 1    0 0 0 1    0 0 0 1    0 1 1 1    0 0 0 1    0 0 0 0     r4   0 1 1 1   0 0 1 1    0 0 0 1    0 1 1 1    0 1 1 1    0 1 1 1    0 1 1 0     r5   1 0 1 1   1 0 1 1    1 0 0 1    1 0 0 1    1 1 1 1    1 1 1 1    0 0 0 0     r6   1 1 0 1   1 0 0 1    1 0 0 1    1 0 0 1    1 1 1 1    1 1 1 1    0 0 0 0     r7   1 1 1 0   1 0 1 0    1 0 0 0    1 1 1 0    1 1 1 0    1 1 1 0    0 1 1 0 Table 2 The second step of the three-step test method (data line test) 1 2 3 4 5 6 7 8 expected value b 2 open circuit SA-0 b 2 and b 1 open SA-0 b 2 and b 1 short circuit 0-dominant type b 2 and b 1 open circuit SA-1 b 2 and b 1 short circuit 1-dominant type b 3 and b 1 open circuit SA-0 b2 and b1 short circuit 0-dominant type b 3 b 2 b 1 b 0 b 3 b 2 b 1 b 0 b 3 b 2 b 1 b 0 b 3 b 2 b 1 b 0 b 3 b 2 b 1 b 0 b 3 b 2 b 1 b 0 b 3 b 2 b 1 b 0 r 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 1 1 0 1 0 0 0 0 0 0 0 r 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 r 2 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 r 3 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 1 1 1 0 0 0 1 0 0 0 0 r 4 0 1 1 1 0 0 1 1 0 0 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 0 r 5 1 0 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 r 6 1 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 r 7 1 1 1 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 0 1 1 1 0 0 1 1 0

在运行第二步测试时,同时进行了“走步1”和“走步0”的算法,目的是为了区分1-支配型短路和0-支配型短路。When running the second-step test, the algorithm of "walking 1" and "walking 0" is carried out at the same time, in order to distinguish between 1-dominated short circuit and 0-dominated short circuit.

对数据线的开路故障和短路故障的诊断流程如下:The diagnosis process for open circuit fault and short circuit fault of data line is as follows:

BEGINBEGIN

FOR实际测试响应矩阵V的每一列Vi FOR actually tests each column V i of the response matrix V

IF Vi和期望响应矩阵T的相应列Ti不一致IF V i does not agree with the corresponding column T i of the expected response matrix T

报告存在故障;report a fault;

IF Vi的每一个分量都固定为1Each component of IF V i is fixed at 1

报告第i条数据线发生了固定为1的开路故障;Report that an open circuit fault fixed to 1 has occurred on the i-th data line;

ELSE IF Vi的每一个分量都固定为0Each component of ELSE IF V i is fixed to 0

报告第i条数据线发生了固定为0的开路故障;Report that the i-th data line has an open circuit fault fixed at 0;

ELSE IF在期望响应矩阵中找到第j列矢量Ti与第i列矢量Ti逻辑或运算的结果等于Vi ELSE IF Find the result of the logical OR operation of the j-th column vector T i and the i-th column vector T i in the expected response matrix equal to V i

报告第i条数据线和第j条数据线短路,故障类型为1-支配型短路故障;Report the i-th data line and the j-th data line as short-circuit, and the fault type is 1-dominant short-circuit fault;

ELSE IF在期望响应矩阵中找到第j列矢量Ti与第i列矢量Ti逻辑与运算的结果等于Vi ELSE IF Find the result of the logical AND operation of the j-th column vector T i and the i-th column vector T i in the expected response matrix equal to V i

报告第i条数据线和第j条数据线短路,故障类型为1-支配型短路故障;Report the i-th data line and the j-th data line as short-circuit, and the fault type is 1-dominant short-circuit fault;

ELSEELSE

报告故障类型不可判断;The report failure type cannot be judged;

END IFEND IF

END IFEND IF

END FOREND FOR

IF不存在故障IF there is no fault

报告数据线测试没有发现故障;Report that the data line test did not find any faults;

END。END.

注意以上只是判断了数据线两两之间短路的情况,其实两条以上数据线短路的情形也包含在两两短路之中,可以对诊断结果作进一步分析,从而得到两条以上数据线短路的情形。Note that the above only judges the short circuit between two data lines. In fact, the short circuit of two or more data lines is also included in the two short circuit. The diagnosis results can be further analyzed to obtain the short circuit of two or more data lines. situation.

在确保数据线没有故障之后,可以进行第三步测试,对地址线进行测试,下面是第三步测试的一个结果,举例对故障诊断进行说明(地址线a3a2a1a0,测试数据D0D1...D4互不相同):After ensuring that there is no fault in the data line, the third step of testing can be carried out to test the address line. The following is a result of the third step test, and an example is given to illustrate the fault diagnosis (address line a 3 a 2 a 1 a 0 , test Data D 0 D 1 ... D 4 are different from each other):

表三  三步测试法第三步测试(地址线测试)    1   2   3   4   5    6   7    8    地址   期望值   a2开路S-A-0   a2和a1开路S-A-0   a2和a1短路0-支配型    a2和a1开路S-A-1   a2和a1短路1-支配型    a3和a0开路S-A-0a2和a1短路0-支配型    a3a2a1a0    0 0 0 0   D0   D3   D3   D3    D3   D0    D4    0 0 0 1   D1   D1   D1   D1    D1   D1    D4    0 0 1 0   D2   D2   D3   D3    D3   D3    D4    0 1 0 0   D3   D3   D3   D3    D3   D3    D4    1 0 0 0   D4   D4   D4   D4    D4   D4    D4    1 1 1 1   D0   D3   D3   D0    D3   D3    D4    1 1 1 0   D1   D1   D1   D1    D1   D1    D4    1 1 0 1   D2   D2   D3   D3    D3   D3    D3    1 0 1 1   D3   D3   D3   D3    D3   D3    D3   0 1 1 1     D4     D4     D4     D4     D4     D4     D4 Table 3 The third step of the three-step test method (address line test) 1 2 3 4 5 6 7 8 address expected value a 2 open circuit SA-0 a 2 and a 1 open circuit SA-0 a 2 and a 1 short circuit 0-dominant type a 2 and a 1 open circuit SA-1 a 2 and a 1 short circuit 1-dominant type a 3 and a 0 open circuit SA-0 a 2 and a 1 short circuit 0-dominant type a 3 a 2 a 1 a 0 0 0 0 0 D 0 D3 D3 D3 D3 D 0 D 4 0 0 0 1 D 1 D 1 D 1 D 1 D 1 D 1 D 4 0 0 1 0 D2 D2 D3 D3 D3 D3 D 4 0 1 0 0 D3 D3 D3 D3 D3 D3 D 4 1 0 0 0 D 4 D 4 D 4 D 4 D 4 D 4 D 4 1 1 1 1 D 0 D3 D3 D 0 D3 D3 D 4 1 1 1 0 D 1 D 1 D 1 D 1 D 1 D 1 D 4 1 1 0 1 D2 D2 D3 D3 D3 D3 D3 1 0 1 1 D3 D3 D3 D3 D3 D3 D3 0 1 1 1 D 4 D 4 D 4 D 4 D 4 D 4 D 4

对地址线开路故障和短路故障的诊断原理是一样的。大致流程如下:The diagnosis principle for address line open circuit fault and short circuit fault is the same. The general process is as follows:

BEGINBEGIN

IF读到数据和期望的数据一致The IF read data is consistent with the expected data

报告地址线测试没有发现故障;Report that the address line test found no faults;

ELSEELSE

将所有数据按写入顺序翻译成相对应的地址,得到期望响应矩阵T和实际响应矩阵V;Translate all data into corresponding addresses in the order of writing, and obtain the expected response matrix T and the actual response matrix V;

FOR实际测试响应矩阵V的每一列Vi FOR actually tests each column V i of the response matrix V

IF Vi的每一个分量都固定为1Each component of IF V i is fixed at 1

报告第i条地址线发生了固定为1的开路故障;Report that an open circuit fault fixed to 1 has occurred on the i-th address line;

ELSE IF Vi的每一个分量都固定为0Each component of ELSE IF V i is fixed to 0

报告第i条地址线发生了固定为0的开路故障;Report that the i-th address line has an open circuit fault fixed at 0;

ELSE IF在期望响应矩阵中找到第j列矢量Ti与第i列矢量Ti逻辑或运算的结果等于Vi ELSE IF Find the result of the logical OR operation of the j-th column vector T i and the i-th column vector T i in the expected response matrix equal to V i

报告第i条地址线和第j条地址线短路,故障类型为1-支配型短路故障;Report that the i-th address line and the j-th address line are short-circuited, and the fault type is 1-dominant short-circuit fault;

ELSE IF在期望响应矩阵中找到第j列矢量Ti与第列矢量Ti逻辑与运算的结果等于Vi ELSE IF Find the jth column vector T i and the column vector T i logical AND operation result equal to V i in the expected response matrix

报告第i条地址线和第j条地址线短路,故障类型为0-支配型短路故障;Report a short circuit between the i-th address line and the j-th address line, and the fault type is 0-dominant short-circuit fault;

ELSEELSE

报告故障类型不可判断;The report failure type cannot be judged;

END IFEND IF

END IFEND IF

END FOREND FOR

END。END.

注意以上也只是判断了地址线两两之间短路的情况,两条以上地址线短路的情形同样可以通过对诊断结果作进一步分析得到。Note that the above only judges the short circuit between two address lines, and the short circuit of two or more address lines can also be obtained by further analysis of the diagnosis results.

现有技术一的缺点:The shortcoming of prior art one:

在运用“三步测试法”实现FLASH测试以后,在采用模拟故障的方法对实现的情况进行测试验证的过程中,发现测试程序并不能准确的定位FLASH地址线的故障所在,经过仔细分析,发现“三步测试法”的第三步无法准确定位FLASH地址线故障,下面针对“三步测试法”的第三步进行具体的分析。After using the "three-step test method" to realize the FLASH test, in the process of testing and verifying the implementation by using the simulated fault method, it was found that the test program could not accurately locate the fault of the FLASH address line. After careful analysis, it was found that The third step of the "three-step test method" cannot accurately locate the fault of the FLASH address line. The following is a specific analysis of the third step of the "three-step test method".

实际上现有的“三步测试法”的第三步的思路并没有错误,但具体的方法出现了问题。出问题的原因在于忽略了FLASH的特性,测试方法中把它当做RAM了,以为对某一个地址不擦除便可任意写入,而实际上FLASH是必须擦除后,才能正常写入的,即FLASH的写操作可以将为1的比特写成0,但不能将为0的比特写成1。In fact, the idea of the third step of the existing "three-step testing method" is not wrong, but there are problems with the specific method. The reason for the problem is that the characteristics of FLASH are ignored. In the test method, it is regarded as RAM. It is thought that a certain address can be written arbitrarily without erasing. In fact, FLASH must be erased before it can be written normally. That is, the write operation of FLASH can write 1 bits into 0, but cannot write 0 bits into 1.

通过分析发现,上面的表格(表三)并不准确,假设a2和a1为短路0-支配型故障,当往0010地址写入数据D2时,数据实际上是写入了0000地址,而非0010地址,此时如果读0010地址的内容,实际上读到的是0000地址的内容。同样往0100地址写入数据D3时也写入了0000地址,实际上读到的是0000地址的内容。因为FLASH的特性是可以将为1的比特写成0,但不能将为0的比特写成1,最终结果是0000地址中保存的内容为D2和D3相“与”的结果,同样1111中写入的内容也不是表中分析的那样。因而步骤三只能判断出地址线故障,但并不能判断出是哪一根(或哪几根)地址线故障。Through analysis, it is found that the above table (Table 3) is not accurate, assuming that a 2 and a 1 are short-circuit 0-dominant faults, when data D 2 is written to address 0010, the data is actually written to address 0000, Instead of address 0010, if you read the content of address 0010 at this time, you actually read the content of address 0000. Similarly, when data D 3 is written to address 0100, address 0000 is also written, and the contents of address 0000 are actually read. Because the characteristic of FLASH is that it can be written as 0 for the bit of 1, but it cannot be written as 1 for the bit of 0. The final result is that the content stored in the 0000 address is the result of the "AND" of D 2 and D 3 , and it is also written in 1111 The input content is not as analyzed in the table. Therefore, step 3 can only determine that the address line is faulty, but cannot determine which address line (or several) the address line is faulty.

发明内容Contents of the invention

鉴于上述现有技术的缺点,本发明提供一种能准确定位存储器(包括FLASH存储器和RAM存储器)地址线故障的方法。In view of the above-mentioned shortcomings of the prior art, the present invention provides a method for accurately locating address line faults of memory (including FLASH memory and RAM memory).

本发明提供的方法如下:The method provided by the invention is as follows:

一种FLASH存储器地址线测试方法,包括下列步骤:A kind of FLASH memory address line test method, comprises the following steps:

A)擦除FLASH全部存储空间;A) Erase all storage space of FLASH;

B)用“走步1”方法选取FLASH的地址单元,在地址单元中写入测试数据,所述测试数据与需要测试的地址线相对应的数据位为“0”,其余数据位为“1”;B) Select the address unit of FLASH with the "walking 1" method, write test data in the address unit, the data bit corresponding to the address line to be tested is "0", and the remaining data bits are "1" ";

C)重复步骤B,直到所有的地址线都完成“走步1”测试;C) Repeat step B until all address lines have completed the "walk 1" test;

D)读取该FLASH第一个地址单元中的数据,根据数据中“0”的排列位置,确定相对应位置的地址线发生故障。D) Read the data in the first address unit of the FLASH, and determine that the address line at the corresponding position is faulty according to the arrangement position of "0" in the data.

本发明另提供一种FLASH存储器地址线测试方法,包括下列步骤:The present invention provides a kind of FLASH memory address line testing method in addition, comprises the following steps:

A)擦除FLASH全部存储空间;A) Erase all storage space of FLASH;

B)用“走步0”方法选取FLASH的地址单元,在地址单元中写入测试数据,所述测试数据与需要测试的地址线相对应的数据位为“0”,其余数据位为“1”;B) Select the address unit of FLASH with the "walking 0" method, write test data in the address unit, the data bit corresponding to the address line to be tested is "0", and the remaining data bits are "1" ";

C)重复步骤B,直到所有的地址线都完成“走步0”测试;C) Repeat step B until all address lines have completed the "walk 0" test;

D)读取该FLASH最后一个地址单元中的数据,根据数据中“0”的排列位置,确定相对应位置的地址线发生故障。D) Read the data in the last address unit of the FLASH, and determine that the address line at the corresponding position is faulty according to the arrangement position of "0" in the data.

本发明提供一种RAM存储器地址线测试方法,包括下列步骤:The invention provides a method for testing RAM memory address lines, comprising the following steps:

A)将RAM存储器的第一地址单元写上全“1”;A) write all "1" on the first address unit of the RAM memory;

B)用“走步1”方法选取RAM的地址单元,在地址单元中写入测试数据,所述测试数据与需要测试的地址线相对应的数据位为“0”,其余数据位为“1”;B) Select the address unit of the RAM with the "walking 1" method, write test data in the address unit, the data bit corresponding to the address line to be tested is "0", and the remaining data bits are "1" ";

C)读取RAM存储器第一地址单元中的数据,并与上一次记录数据进行“逻辑与”操作,将操作结果保存起来(第一次读取时,没有“上一次记录数据”,直接将读到的数据保存起来即可);C) Read the data in the first address unit of the RAM memory, and perform a "logic AND" operation with the last recorded data, and save the operation result (when reading for the first time, there is no "last recorded data", directly save the The read data can be saved);

D)重复步骤B和步骤C,直到所有的地址线都完成“走步1”的测试;D) Repeat step B and step C until all address lines have completed the test of "step 1";

E)根据最后结果中“0”的排列位置,确定相对应位置的地址线发生故障。E) According to the arrangement position of "0" in the final result, it is determined that the address line at the corresponding position is faulty.

本发明另提供一种RAM存储器地址线测试方法,包括下列步骤:The present invention provides a kind of RAM memory address line testing method in addition, comprises the following steps:

A)将RAM存储器的最后一个地址单元写上全“1”;A) write all "1" on the last address unit of the RAM memory;

B)用“走步0”方法选取RAM的地址单元,在地址单元中写入测试数据,所述测试数据与需要测试的地址线相对应的数据位为“0”,其余数据位为“1”;B) Select the address unit of RAM with the "walking 0" method, write test data in the address unit, the data bit corresponding to the address line to be tested is "0", and the remaining data bits are "1" ";

C)读取RAM存储器最后一个地址单元中的数据,并与上一次记录数据进行“逻辑与”操作,将操作结果保存起来(第一次读取时,没有“上一次记录数据”,直接将读到的数据保存起来即可);C) Read the data in the last address unit of the RAM memory, and perform a "logic AND" operation with the last recorded data, and save the operation result (when reading for the first time, there is no "last recorded data", directly save the The read data can be saved);

D)重复步骤B和步骤C,直到所有的地址线都完成“走步0”的测试;D) Repeat step B and step C until all address lines have completed the test of "walking 0";

E)根据最后结果中“0”的排列位置,确定相对应位置的地址线发生故障。E) According to the arrangement position of "0" in the final result, it is determined that the address line at the corresponding position is faulty.

根据本发明的上述各方法,若数据线的数量比地址线少,则将地址线分批次进行测试,使每次测试的地址线数量小于等于数据线。According to the above methods of the present invention, if the number of data lines is less than that of address lines, the address lines are tested in batches, so that the number of address lines for each test is less than or equal to the data lines.

根据本发明的上述各方法,所述的地址单元的大小根据存储器的数据线位数确定。According to the above methods of the present invention, the size of the address unit is determined according to the number of bits of data lines of the memory.

本发明优点如下:The advantages of the present invention are as follows:

1、对FLASH和RAM存储器能够准确地定位故障发生在哪一根(或哪几根)地址线上,弥补了现有测试方法中对地址线的故障定位不易的问题。1. The FLASH and RAM memory can accurately locate which address line (or which) the fault occurs on, which makes up for the difficult problem of fault location of the address line in the existing test method.

2、本发明方法操作简单直观,根据读到的数据,很直观的就可以知道哪根地址线有问题;编程实现非常简单,没必要像现有技术中的方法那样对测试数据与期望数据进行运算和比较,大大降低了编程的复杂度。2. The method of the present invention is simple and intuitive to operate. According to the read data, it is very intuitive to know which address line has a problem; the programming is very simple, and it is not necessary to carry out the test data and the expected data like the method in the prior art. Operation and comparison greatly reduce the complexity of programming.

具体实施方式Detailed ways

本发明用地址线“走步1”的方法定位出哪些地址线存在固定低电平和粘连0-支配型的故障;用地址线“走步0”的方法定位出哪些地址线存在固定高电平和粘连1-支配型的故障;对地址进行“走步1”或“走步0”测试时,要求测试数据与需要测试的地址线对应的数据位为0,其它数据位为1。The present invention locates which address lines have fixed low level and sticky 0-dominant faults with the method of "walking 1" of address lines; uses the method of "walking 0" of address lines to locate which address lines have fixed high level and Sticky 1-dominant type of fault; when performing "walk 1" or "walk 0" test on the address, the data bit corresponding to the test data and the address line to be tested is required to be 0, and the other data bits are 1.

对于地址线“走步1”测试,如表四所示,以8bit的地址为例,首先假设只存在同一类连线故障,故障模式为:a7恒为0,a5和a4短路0-支配型,当出现这类故障时,程序在写入测试数据时会将测试数据写入地址为00000000的单元(当有多根地址线故障时,会多次写入,如果地址线正常则不会写入该地址单元),最后只需读取00000000地址中的值,根据哪些bit(比特位)为0就可以知道哪些地址线存在故障。表四中依次写完所有的测试数据以后,读到的00000000地址的内容为01001111。如表四所示,在地址线正常的情况下00000000地址单元中的内容应该为11111111,而读到的结果为01001111,显示bit7、bit5、bit4变为0了,说明a7、a5和a4有问题。这样根据读到的数据就直观地知道哪根地址线有问题。For the address line "walking 1" test, as shown in Table 4, taking the 8-bit address as an example, first assume that only the same type of wiring fault exists, and the fault mode is: a 7 is always 0, a 5 and a 4 are short-circuited 0 -Dominant type, when this type of failure occurs, the program will write the test data to the unit with the address 00000000 when writing the test data (when there are multiple address line failures, it will write multiple times, if the address line is normal then The address unit will not be written), and finally only need to read the value in the 00000000 address, and which address lines are faulty can be known according to which bits (bits) are 0. After writing all the test data sequentially in Table 4, the read content of address 00000000 is 01001111. As shown in Table 4, when the address line is normal, the content in the address unit 00000000 should be 11111111, but the read result is 01001111, indicating that bit7, bit5, and bit4 have changed to 0, indicating that a 7 , a 5 and a 4 has a problem. In this way, we can intuitively know which address line has a problem according to the read data.

表四  本发明的三步测试法测试FLASH存储器地址线0-支配故障示例表Table 4 Three-step test method of the present invention tests FLASH memory address line 0-dominant fault example table

(地址线“走步1”)  要写入的地址   写入的数据   实际写入地址    读00000000地址得到的内容  a7a6a5a4a3a2a1a0  0 0 0 0 0 0 0 0   1 1 1 1 1 1 1 1擦除后即为全1    1 1 1 1 1 1 1 1  0 0 0 0 0 0 0 1   1 1 1 1 1 1 1 0   0 0 0 0 0 0 0 1    1 1 1 1 1 1 1 1  0 0 0 0 0 0 1 0   1 1 1 1 1 1 0 1   0 0 0 0 0 0 1 0    1 1 1 1 1 1 1 1  0 0 0 0 0 1 0 0   1 1 1 1 1 0 1 1   0 0 0 0 0 1 0 0    1 1 1 1 1 1 1 1  0 0 0 0 1 0 0 0   1 1 1 1 0 1 1 1   0 0 0 0 1 0 0 0    1 1 1 1 1 1 1 1  0 0 0 1 0 0 0 0   1 1 1 0 1 1 1 1   0 0 0 0 0 0 0 0    1 1 1 0 1 1 1 1  0 0 1 0 0 0 0 0   1 1 0 1 1 1 1 1   0 0 0 0 0 0 0 0    1 1 0 0 1 1 1 1  0 1 0 0 0 0 0 0   1 0 1 1 1 1 1 1   0 1 0 0 0 0 0 0    1 1 0 0 1 1 1 1  1 0 0 0 0 0 0 0   0 1 1 1 1 1 1 1   0 0 0 0 0 0 0 0    0 1 0 0 1 1 1 1 (address line "walk 1") address to write written data actual write address Read the content obtained from address 00000000 a 7 a 6 a 5 a 4 a 3 a 2 a 1 a 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 is all 1 after erasing 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0 1 0 0 1 1 1 1 1 0 1 1 0 0 0 0 0 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 0 1 0 0 0 0 0 1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1

(上表中加粗的数据表示有错误发生)(The data in bold in the above table indicates that there is an error)

由于FLASH与RAM的读写操作有些不同,在测试RAM的时候,首先要往00000000地址中写入全1,写入第一个测试数据以后,可以将00000000地址中的数据读出并记录下来,然后每写入一个数,就读出00000000地址的内容并与上一次记录数据进行“逻辑与”操作,将操作结果保存起来,最后根据结果中“0”的位置就可以知道哪根地址线有问题。如下表五所示,以8bit的地址为例,假设故障模式为:a7恒为0,a5恒为1,每次读到的数据“逻辑与”的最后结果为01011111,通过这个结果就可以知道a7和a5有问题。Because the read and write operations of FLASH and RAM are somewhat different, when testing RAM, first write all 1s into address 00000000, after writing the first test data, you can read and record the data in address 00000000, Then every time a number is written, read out the content of address 00000000 and perform a "logic AND" operation with the last recorded data, save the operation result, and finally know which address line has a problem according to the position of "0" in the result . As shown in Table 5 below, taking the 8-bit address as an example, assuming that the failure mode is: a 7 is always 0, a 5 is always 1, and the final result of the "logical AND" of the data read each time is 01011111. It can be known that there is a problem with a 7 and a 5 .

表五  本发明三步测试法测试RAM存储器地址线1和0-支配故障的示例表Table 5 Three-step test method of the present invention tests RAM memory address line 1 and 0-example table of dominant fault

(地址线“走步1”)   要写入的地址   写入的数据   实际写入地址   读00000000地址得到的内容,实际上读到的是00100000地址中的内容,假设00100000地址中原来为一个任意的数,如:01001100,但在往00000000地址中写入11111111时将0010000地址中的内容改写成了11111111   a7a6a5a4a3a2a1a0   0 0 0 0 0 0 0 0   1 1 1 1 1 1 1 1   0 0 1 0 0 0 0 0   1 1 1 1 1 1 1 1   0 0 0 0 0 0 0 1   1 1 1 1 1 1 1 0   0 0 1 0 0 0 0 1   1 1 1 1 1 1 1 1   0 0 0 0 0 0 1 0   1 1 1 1 1 1 0 1   0 0 1 0 0 0 1 0   1 1 1 1 1 1 1 1   0 0 0 0 0 1 0 0   1 1 1 1 1 0 1 1   0 0 1 0 0 1 0 0   1 1 1 1 1 1 1 1   0 0 0 0 1 0 0 0   1 1 1 1 0 1 1 1   0 0 1 0 1 0 0 0   1 1 1 1 1 1 1 1   0 0 0 1 0 0 0 0   1 1 1 0 1 1 1 1   0 0 1 1 0 0 0 0   1 1 1 1 1 1 1 1   0 0 1 0 0 0 0 0   1 1 0 1 1 1 1 1   0 0 1 0 0 0 0 0   1 1 0 1 1 1 1 1   0 1 0 0 0 0 0 0   1 0 1 1 1 1 1 1   0 1 1 0 0 0 0 0   1 1 0 1 1 1 1 1   1 0 0 0 0 0 0 0   0 1 1 1 1 1 1 1   0 0 1 0 0 0 0 0   0 1 1 1 1 1 1 1 (address line "walk 1") address to write written data actual write address The content obtained by reading the address 00000000 is actually the content in the address 00100000, assuming that the address 00100000 is an arbitrary number, such as: 01001100, but when writing 11111111 to the address 00000000, the content in the address 0010000 Rewritten to 11111111 a 7 a 6 a 5 a 4 a 3 a 2 a 1 a 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 1 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 1 0 0 1 0 0 0 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0 1 0 0 1 1 1 1 1 0 1 1 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 0 1 1 1 0 0 1 0 1 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 1 1 1 1 1 1 0 0 1 0 0 0 0 0 1 1 0 1 1 1 1 1 0 0 1 0 0 0 0 0 1 1 0 1 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 1 1 0 0 0 0 0 1 1 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 1 0 0 0 0 0 0 1 1 1 1 1 1 1

(上表中加粗的数据表示有错误发生)(The data in bold in the above table indicates that there is an error)

如果地址线有的存在0-支配故障,有的存在1-支配故障,假设a7恒为1,a5和a4短路0-支配型。这里读00000000地址时,读到的数据不一定是在00000000地址中的数据,但由于走步测试(包括“走步1”和“走步0”测试)过程中如果地址线故障,写入和读出就会是同一个地址,因此并不会影响测试结果,详细的情况可以参考下表六。If some address lines have 0-dominant faults and some have 1-dominant faults, assume that a 7 is always 1, and a 5 and a 4 are short-circuited 0-dominant type. When reading address 00000000 here, the data read is not necessarily the data in address 00000000, but if the address line fails during the walking test (including "walking 1" and "walking 0" tests), the write and The readout will be the same address, so it will not affect the test results. For details, please refer to Table 6 below.

表六  本发明的三步测试法测试地址线1和0-支配故障的示例表Table 6 Three-step test method of the present invention tests address line 1 and 0-example table of dominant fault

(地址线“走步1”)   要写入的地址   写入的数据   实际写入的地址     读00000000地址得到的内容(由于a7恒为1,实际上读到的是10000000地址的内容)   a7a6a5a4a3a2a1a0   0 0 0 0 0 0 0 0   1 1 1 1 1 1 1 1擦除后即为全1     1 1 1 1 1 1 1 1   0 0 0 0 0 0 0 1   1 1 1 1 1 1 1 0   1 0 0 0 0 0 0 1     1 1 1 1 1 1 1 1   0 0 0 0 0 0 1 0   1 1 1 1 1 1 0 1   1 0 0 0 0 0 1 0     1 1 1 1 1 1 1 1   0 0 0 0 0 1 0 0   1 1 1 1 1 0 1 1   1 0 0 0 0 1 0 0     1 1 1 1 1 1 1 1   0 0 0 0 1 0 0 0   1 1 1 1 0 1 1 1   1 0 0 0 1 0 0 0     1 1 1 1 1 1 1 1   0 0 0 1 0 0 0 0   1 1 1 0 1 1 1 1   1 0 0 0 0 0 0 0     1 1 1 0 1 1 1 1   0 0 1 0 0 0 0 0   1 1 0 1 1 1 1 1   1 0 0 0 0 0 0 0     1 1 0 0 1 1 1 1   0 1 0 0 0 0 0 0   1 0 1 1 1 1 1 1   1 1 0 0 0 0 0 0     1 1 0 0 1 1 1 1   1 0 0 0 0 0 0 0   0 1 1 1 1 1 1 1     1 0 0 0 0 0 0 0     0 1 0 0 1 1 1 1   对于地址线“走步0”测试,如下表七所示,以8bit的地址为例,首先假设只存在同一类连线故障,故障模式为:a7恒为1,a5和a4短路1-支配型,当出现这类故障时,程序在写入测试数据时会将测试数据写入地址为11111111的空间,最后只需读取11111111地址中的值,判断哪些bit为0就可以知道那些地址线存在此类故障。表七中写完所有的测试数据以后,11111111地址的内容为01001111,说明a7、a5和a4有问题。(address line "walk 1") address to write written data actual write address Read the content obtained from address 00000000 (since a 7 is always 1, what is actually read is the content of address 10000000) a 7 a 6 a 5 a 4 a 3 a 2 a 1 a 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 is all 1 after erasing 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 1 1 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0 1 0 0 1 1 1 1 1 0 1 1 1 0 0 0 0 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 0 1 1 1 1 0 0 0 1 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 0 1 0 0 0 0 0 1 1 0 1 1 1 1 1 1 0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1 For the address line "walking 0" test, as shown in Table 7 below, taking the 8-bit address as an example, first assume that only the same type of wiring fault exists, and the fault mode is: a7 is always 1, and a 5 and a 4 are short-circuited 1- Dominant type, when this kind of failure occurs, the program will write the test data into the space with the address 11111111 when writing the test data, and finally only need to read the value in the address of 11111111, and judge which bits are 0 to know those addresses There is such a fault in the line. After writing all the test data in Table 7, the content of address 11111111 is 01001111, indicating that a 7 , a 5 and a 4 have problems.

表七  本发明的三步测试法测试地址线1-支配故障的示例表Table seven Three-step test method of the present invention tests address line 1-example table of dominant fault

(地址线“走步0”)    要写入的地址    写入的数据     实际写入的地址   读11111111地址得到的内容    a7a6a5a4a3a2a1a0    1 1 1 1 1 1 1 1    1 1 1 1 1 1 1 1擦除后即为全1   1 1 1 1 1 1 1 1    1 1 1 1 1 1 1 0    1 1 1 1 1 1 1 0     1 1 1 1 1 1 1 0   1 1 1 1 1 1 1 1    1 1 1 1 1 1 0 1    1 1 1 1 1 1 0 1     1 1 1 1 1 1 0 1   1 1 1 1 1 1 1 1    1 1 1 1 1 0 1 1    1 1 1 1 1 0 1 1     1 1 1 1 1 0 1 1   1 1 1 1 1 1 1 1    1 1 1 1 0 1 1 1    1 1 1 1 0 1 1 1     1 1 1 1 0 1 1 1   1 1 1 1 1 1 1 1    1 1 1 0 1 1 1 1    1 1 1 0 1 1 1 1     1 1 1 1 1 1 1 1   1 1 1 0 1 1 1 1    1 1 0 1 1 1 1 1    1 1 0 1 1 1 1 1     1 1 1 1 1 1 1 1   1 1 0 0 1 1 1 1    1 0 1 1 1 1 1 1    1 0 1 1 1 1 1 1     1 0 1 1 1 1 1 1   1 1 0 0 1 1 1 1    0 1 1 1 1 1 1 1    0 1 1 1 1 1 1 1     1 1 1 1 1 1 1 1   0 1 0 0 1 1 1 1 (address line "walk 0") address to write written data actual write address The content obtained by reading the address of 11111111 a 7 a 6 a 5 a 4 a 3 a 2 a 1 a 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 is all 1 after erasing 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 1 1 1 1

如果地址线有的存在0-支配故障,有的存在1-支配故障,假设a7恒为1,a5和a4短路0-支配型。这里读11111111地址时,读到的数据不一定是存在11111111地址中,但由于测试时写入和读出是同一个地址,因此并不会影响测试结果。详细的情况可以参考表八。If some address lines have 0-dominant faults and some have 1-dominant faults, assume that a 7 is always 1, and a 5 and a 4 are short-circuited 0-dominant type. When reading address 11111111 here, the read data does not necessarily exist in address 11111111, but since the write and read are the same address during the test, it will not affect the test result. For details, please refer to Table 8.

表八  本发明的三步测试法测试地址线1和0-支配故障的示例表Table 8 Three-step test method of the present invention tests address line 1 and 0-example table of dominant fault

(地址线“走步0”) 要写入的地址   写入的数据 实际写入的地址   读11111111地址得到的内容(由于a7恒为1,a5和a4恒为0,实际上读到的是11001111地址的内容)    a7a6a5a4a3a2a1a0    1 1 1 1 1 1 1 1    1 1 1 1 1 1 1 1擦除后即为全1     1 1 1 1 1 1 1 1    1 1 1 1 1 1 1 0    1 1 1 1 1 1 1 0   1 1 0 0 1 1 1 0     1 1 1 1 1 1 1 1    1 1 1 1 1 1 0 1    1 1 1 1 1 1 0 1   1 1 0 0 1 1 0 1     1 1 1 1 1 1 1 1    1 1 1 1 1 0 1 1    1 1 1 1 1 0 1 1   1 1 0 0 1 0 1 1     1 1 1 1 1 1 1 1    1 1 1 1 0 1 1 1    1 1 1 1 0 1 1 1   1 1 0 0 0 1 1 1     1 1 1 1 1 1 1 1    1 1 1 0 1 1 1 1    1 1 1 0 1 1 1 1   1 1 0 0 1 1 1 1     1 1 1 0 1 1 1 1    1 1 0 1 1 1 1 1    1 1 0 1 1 1 1 1   1 1 0 0 1 1 1 1     1 1 0 0 1 1 1 1    1 0 1 1 1 1 1 1    1 0 1 1 1 1 1 1   1 0 0 0 1 1 1 1     1 1 0 0 1 1 1 1    0 1 1 1 1 1 1 1    0 1 1 1 1 1 1 1   1 1 0 0 1 1 1 1     0 1 0 0 1 1 1 1 (address line "walk 0") address to write written data actual write address Read the content obtained from address 11111111 (since a 7 is always 1, a 5 and a 4 are always 0, what is actually read is the content of address 11001111) a 7 a 6 a 5 a 4 a 3 a 2 a 1 a 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 is all 1 after erasing 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 0 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1

实际上对于地址线同时存在各种故障的问题,采取上述两种方法都能定位出故障连线的准确位置,只是实际写入地址可能不是00000000或11111111,但还是只需要读这两个地址的内容进行判断即可,因为读取这两个地址时,读到的实际上是写入的地址中的值。In fact, for the problem of various faults on the address line at the same time, the above two methods can be used to locate the exact position of the faulty connection, but the actual write address may not be 00000000 or 11111111, but it is still only necessary to read these two addresses. The content can be judged, because when reading these two addresses, what is read is actually the value in the written address.

根据上面的分析,本发明步骤三(针对于FLASH存储器)的流程为:According to above analysis, the flow process of step 3 (for FLASH memory) of the present invention is:

BEGINBEGIN

擦除FLASH空间;Erase FLASH space;

用“走步1”的方式向各地址中写入测试数据(测试数据与需要测试的地址线对应的数据位为0,其它位为1);Write test data to each address in the way of "walking 1" (the data bit corresponding to the test data and the address line to be tested is 0, and the other bits are 1);

IF FLASH中的0地址空间不为全1;The 0 address space in IF FLASH is not all 1;

报告地址线测试发现固定电平(可能固定为低也可能固定为高,但知道哪根地址线有问题了,故障就好定位了)的故障,用二进制方式打印该地址空间的内容;Report the address line test and find a fixed level (it may be fixed at low or high, but if you know which address line has a problem, the fault can be easily located), and print the content of the address space in binary mode;

ELSEELSE

报告地址线“走步1”测试未发现固定电平的故障;Report that the address line "walk 1" test did not find a fixed level fault;

END IFEND IF

用“走步0”的方式向各地址中写入测试数据(测试数据与需要测试的地址线对应的数据位为0,其它位为1);Write test data to each address in the way of "walking 0" (the data bit corresponding to the test data and the address line to be tested is 0, and the other bits are 1);

IF FLASH中的最后地址空间不为全1;The last address space in IF FLASH is not all 1;

报告地址线测试发现固定电平(可能固定为高也可能固定为低,但知道哪根地址线有问题了,故障就好定位了)的故障,用二进制方式打印该地址空间的内容;Report the address line test and find a fixed level (it may be fixed to be high or it may be fixed to be low, but if you know which address line has a problem, the fault can be easily located), and print the content of the address space in binary mode;

ELSEELSE

报告地址线“走步0”测试未发现固定电平的故障;Report that the address line "walk 0" test did not find a fixed level fault;

END IFEND IF

END。END.

注:上面的过程是每写一个数,紧接着就读一次存储器的0地址空间或1地址空间,直到所有的地址线都完成走步测试。根据上述流程对装备测试程序进行修改后,在单板上模拟各种地址线故障,都可以根据上报的数据准确定位哪根地址线故障。Note: The above process is to write a number, and then read the 0 address space or 1 address space of the memory until all the address lines have completed the walking test. After modifying the equipment test program according to the above process, and simulating various address line faults on the single board, the fault of which address line can be accurately located according to the reported data.

实际操作中,关于FLASH外围互连测试时需要根据系统中FLASH的具体应用来对待,需要考虑FLASH的数据总线宽度和地址空间。如某系统中,使用了两片数据宽度为16bit的FLASH并联,数据总线宽度为32bit,地址范围为0xFD000000-0xFD7FFFFF。CPU地址总线A29接2片FLASH的A0,实际用到的地址线为CPU的A[29:9],对应FLASH的A[0:20],共21根地址线,可访问的空间为2M×32bit,正好8M Bytes。进行地址线“走步1”测试时,写数据的起始地址为0xFD000004,读数据的地址为0xFD000000。进行地址线“走步0”测试时,写数据的起始地址为0xFD7FFFF8,读数据的地址为0xFD7FFFFC。测试的起始地址线为CPU的A29(FLASH的A0),循环21次,正好覆盖到21根地址线。判断哪些地址出错的根据就是看0XFD000000和0XFD7FFFFC中读出的32位数据哪些bit为数据“0”。In actual operation, the FLASH peripheral interconnection test needs to be treated according to the specific application of FLASH in the system, and the data bus width and address space of FLASH need to be considered. For example, in a system, two pieces of FLASH with a data width of 16 bits are used in parallel, the data bus width is 32 bits, and the address range is 0xFD000000-0xFD7FFFFF. CPU address bus A29 is connected to A0 of 2 pieces of FLASH. The actual address line used is A[29:9] of CPU, which corresponds to A[0:20] of FLASH. There are 21 address lines in total, and the accessible space is 2M× 32bit, exactly 8M Bytes. When performing the address line "walking 1" test, the starting address of writing data is 0xFD000004, and the address of reading data is 0xFD000000. When performing the address line "walking 0" test, the starting address of writing data is 0xFD7FFFF8, and the address of reading data is 0xFD7FFFFC. The starting address line of the test is A29 of the CPU (A0 of the FLASH), the cycle is 21 times, and the 21 address lines are exactly covered. The basis for judging which addresses are wrong is to see which bits of the 32-bit data read from 0XFD000000 and 0XFD7FFFFC are data "0".

本发明方法在实际使用时,若存储器数据线的数量少于地址线,就需要将地址线分批次进行测试,使每次测试的地址线的数量小于等于数据线。如有的单板有8M Bytes FLASH,数据线为16位,而地址线共有22根,可访问的空间为4M×16bit,数据线的数量比地址线少,这样就要对地址线分两次进行测试了,首先用上面所描述的方法测试低16位地址线,然后再用同样的方法测试高位的地址线,这样就可以根据读到的数据方便地将故障定位到哪根地址线了。When the method of the present invention is actually used, if the number of memory data lines is less than that of address lines, the address lines need to be tested in batches so that the number of address lines tested each time is less than or equal to the data lines. If there is a single board with 8M Bytes FLASH, the data line is 16 bits, and the address line has 22 in total, the accessible space is 4M×16bit, and the number of data lines is less than the address line, so it is necessary to divide the address line twice After testing, first use the method described above to test the low 16-bit address line, and then use the same method to test the high-bit address line, so that you can easily locate the fault to which address line according to the read data.

例如:对于地址线“走步1”测试,如下表九所示,以22bit的地址为例,为了简单起见,首先假设只存在同一类连线故障,故障模式为:a20、a18、a15a7恒为0,a5和a4短路0-支配型,For example: for the address line "walking 1" test, as shown in Table 9 below, taking the 22bit address as an example, for the sake of simplicity, first assume that there is only the same type of connection fault, and the fault mode is: a 20 , a 18 , a 15 a 7 is always 0, a 5 and a 4 short-circuit 0-dominant type,

表九本发明的三步测试法测试地址线0-支配故障的示例表Table nine three-step test method of the present invention test address line 0-example table of dominant fault

(地址线“走步1”)     要写入的地址     写入的数据   实际写入地址     读0000000000000000000000地址得到的内容       a21a20a19a18a17a16a15a14a13a12a11a10a9a8a7a6a5a4a3a2a1a0          0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1擦除后即为全1     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1          0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 1     1 1 1 1 1 1 1 11 1 1 1 1 1 1 0     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 1     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1          0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 1 0     1 1 1 1 1 1 1 11 1 1 1 1 1 0 1     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 1 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1          0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 1 0 0     1 1 1 1 1 1 1 11 1 1 1 1 0 1 1     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 1 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1          0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 1 0 0 0     1 1 1 1 1 1 1 11 1 1 1 0 1 1 1     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 1 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1          0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 1 0 0 0 0     1 1 1 1 1 1 1 11 1 1 0 1 1 1 1     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 0 1 1 1 1          0 0 0 0 0 00 0 0 0 0 0 0 00 0 1 0 0 0 0 0     1 1 1 1 1 1 1 11 1 0 1 1 1 1 1     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 0 0 1 1 1 1          0 0 0 0 0 00 0 0 0 0 0 0 00 1 0 0 0 0 0 0     1 1 1 1 1 1 1 11 0 1 1 1 1 1 1     0 0 0 0 0 00 0 0 0 0 0 0 00 1 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 0 0 1 1 1 1          0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1     0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 10 1 0 0 1 1 1 1     1 0 0 0 0 0 0 0   0 0 0 0 0 0 0 0       0 0 0 0 0 00 0 0 0 0 0 0 10 0 0 0 0 0 0 0     1 1 1 1 1 1 1 01 1 1 1 1 1 1 1     0 0 0 0 0 00 0 0 0 0 0 0 10 0 0 0 0 0 0 0     1 1 1 1 1 1 1 10 1 0 0 1 1 1 1       0 0 0 0 0 00 0 0 0 0 0 1 00 0 0 0 0 0 0 0     1 1 1 1 1 1 0 11 1 1 1 1 1 1 1     0 0 0 0 0 00 0 0 0 0 0 1 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 10 1 0 0 1 1 1 1       0 0 0 0 0 00 0 0 0 0 1 0 00 0 0 0 0 0 0 0     1 1 1 1 1 0 1 11 1 1 1 1 1 1 1     0 0 0 0 0 00 0 0 0 0 1 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 10 1 0 0 1 1 1 1       0 0 0 0 0 00 0 0 0 1 0 0 00 0 0 0 0 0 0 0     1 1 1 1 0 1 1 11 1 1 1 1 1 1 1     0 0 0 0 0 00 0 0 0 1 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 10 1 0 0 1 1 1 1       0 0 0 0 0 00 0 0 1 0 0 0 00 0 0 0 0 0 0 0     1 1 1 0 1 1 1 11 1 1 1 1 1 1 1     0 0 0 0 0 00 0 0 1 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 10 1 0 0 1 1 1 1       0 0 0 0 0 00 0 1 0 0 0 0 00 0 0 0 0 0 0 0     1 1 0 1 1 1 1 11 1 1 1 1 1 1 1     0 0 0 0 0 00 0 1 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 10 1 0 0 1 1 1 1       0 0 0 0 0 00 1 0 0 0 0 0 00 0 0 0 0 0 0 0     1 0 1 1 1 1 1 11 1 1 1 1 1 1 1     0 0 0 0 0 00 1 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 10 1 0 0 1 1 1 1       0 0 0 0 0 01 0 0 0 0 0 0 00 0 0 0 0 0 0 0     0 1 1 1 1 1 1 11 1 1 1 1 1 1 1     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     0 1 1 1 1 1 1 10 1 0 0 1 1 1 1     上面为第一次测试,测试了低16位地址线,下面为第二次测试,测试高6位地址线       0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1擦除后即为全1     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1       0 0 0 0 0 10 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 0     0 0 0 0 0 10 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1       0 0 0 0 1 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 0 1     0 0 0 0 1 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 1 1 1       0 0 0 1 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 0 1 1     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 0 1 1       0 0 1 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 0 1 1 1     0 0 1 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 1 1 0 1 1       0 1 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 0 1 1 1 1     0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 0 1 0 1 1       1 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 0 1 1 1 1 1     1 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0     1 1 1 1 1 1 1 11 1 1 0 1 0 1 1 说明,如上表所示,共需2次测试,经过第一次测试,在0000000000000000000000地地址单元读到的内容为:0111111101001111,其中d4、d5、d7、d15为0,从而可以判断与其对应的a4、a5、a7、a15有故障。经过第二次测试,在0000000000000000000000地地址单元读到的内容为:1111111111101011,其中d2、d4为0,从而可以判断与其对应的a18(16+2)、a20(16+4)有故障。这样经过两次测试,即可准确定位地址线的故障。地址线“走步0”的方法与这个处理方式相同,在此不再赘述。(address line "walk 1") address to write written data actual write address The content obtained by reading the address 0000000000000000000000 a 21 a 20 a 19 a 18 a 17 a 16 a 15 a 14 a 13 a 12 a 11 a 10 a 9 a 8 a 7 a 6 a 5 a 4 a 3 a 2 a 1 a 0 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 is all 1 after erasing 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 0 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 1 0 1 1 1 1 1 1 1 11 1 1 1 1 1 0 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 1 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 1 0 0 1 1 1 1 1 1 1 11 1 1 1 1 0 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 1 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 1 0 0 0 1 1 1 1 1 1 1 11 1 1 1 0 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 1 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 1 0 0 0 0 1 1 1 1 1 1 1 11 1 1 0 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 0 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 1 0 0 0 0 0 1 1 1 1 1 1 1 11 1 0 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 0 0 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 1 0 0 0 0 0 0 1 1 1 1 1 1 1 11 0 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 1 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 0 0 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 10 0 0 0 0 0 0 0 1 1 1 1 1 1 1 01 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 10 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 1 00 0 0 0 0 0 0 0 1 1 1 1 1 1 0 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 1 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 1 1 1 1 0 0 0 0 0 00 0 0 0 0 1 0 00 0 0 0 0 0 0 0 1 1 1 1 1 0 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 1 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 1 1 1 1 0 0 0 0 0 00 0 0 0 1 0 0 00 0 0 0 0 0 0 0 1 1 1 1 0 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 1 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 1 1 1 1 0 0 0 0 0 00 0 0 1 0 0 0 00 0 0 0 0 0 0 0 1 1 1 0 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 1 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 1 1 1 1 0 0 0 0 0 00 0 1 0 0 0 0 00 0 0 0 0 0 0 0 1 1 0 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 1 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 1 1 1 1 0 0 0 0 0 00 1 0 0 0 0 0 00 0 0 0 0 0 0 0 1 0 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 1 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 1 1 1 1 0 0 0 0 0 01 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 1 1 1 1 1 1 10 1 0 0 1 1 1 1 The above is the first test, which tested the lower 16-bit address line, and the following is the second test, which tested the upper 6-bit address line 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 is all 1 after erasing 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 0 10 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 0 0 0 0 0 0 10 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 0 1 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 0 1 0 0 0 0 1 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 0 0 0 1 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 0 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 0 1 1 0 0 1 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 0 1 1 1 0 0 1 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 1 1 0 1 1 0 1 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 0 1 1 1 1 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 0 1 0 1 1 1 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 0 1 1 1 1 1 1 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 11 1 1 0 1 0 1 1 Note, as shown in the above table, a total of 2 tests are required. After the first test, the content read at the address unit 0000000000000000000000 is: 0111111101001111, where d 4 , d 5 , d 7 , and d 15 are 0, so it can be judged The corresponding a 4 , a 5 , a 7 and a 15 are faulty. After the second test, the content read at the address unit 0000000000000000000000 is: 1111111111101011, where d 2 and d 4 are 0, so it can be judged that the corresponding a 18 (16+2) and a 20 (16+4) have Fault. In this way, after two tests, the fault of the address line can be accurately located. The method of "walking 0" of the address line is the same as this processing method, and will not be repeated here.

Claims (12)

1, a kind of FLASH testing method of memory address line comprises the following steps:
A) wipe the whole memory spaces of FLASH;
B) choose the address location of FLASH with " walking 1 " method, write test data in address location, the described test data data bit corresponding with the address wire that needs test is " 0 ", and the remainder data position is " 1 ";
C) repeating step B is until all address wires are all finished " walking 1 " test;
D) read data in first address location of this FLASH, according to the arrangement position of " 0 " in the data, determine that the address wire of opposite position breaks down.
2, FLASH testing method of memory address line as claimed in claim 1 is characterized in that: if the quantity of data wire is lacked than address wire, then address wire is tested in batches, make the number of address lines of each test less than or equal to data wire.
3, FLASH testing method of memory address line as claimed in claim 1 or 2 is characterized in that: the size of described address location is determined according to the data wire figure place of memory.
4, a kind of FLASH testing method of memory address line comprises the following steps:
A) wipe the whole memory spaces of FLASH;
B) choose the address location of FLASH with " walking 0 " method, write test data in address location, the described test data data bit corresponding with the address wire that needs test is " 0 ", and the remainder data position is " 1 ";
C) repeating step B is until all address wires are all finished " walking 0 " test;
D) read data in last address location of this FLASH, according to the arrangement position of " 0 " in the data, determine that the address wire of opposite position breaks down.
5, FLASH testing method of memory address line as claimed in claim 4 is characterized in that: if the quantity of data wire is lacked than address wire, then address wire is tested in batches, make the number of address lines of each test less than or equal to data wire.
6, such as claim 4 or 5 described FLASH testing method of memory address lines, it is characterized in that: the size of described address location is determined according to the data wire figure place of memory.
7, a kind of RAM testing method of memory address line comprises the following steps:
A) the first address location of RAM memory is write entirely " 1 ";
B) choose the address location of RAM with " walking 1 " method, write test data in address location, the described test data data bit corresponding with the address wire that needs test is " 0 ", and the remainder data position is " 1 ";
C) read data in RAM memory the first address location, and carry out " logical AND " operation with last record data, operating result is preserved;
D) repeating step B and step C are until all address wires are all finished the test of " walking 1 ";
E) according to the arrangement position of " 0 " in the end product, determine that the address wire of opposite position breaks down.
8, RAM testing method of memory address line as claimed in claim 7 is characterized in that: if the quantity of data wire is lacked than address wire, then address wire is tested in batches, make the number of address lines of each test less than or equal to data wire.
9, such as claim 7 or 8 described RAM testing method of memory address lines, it is characterized in that: the size of described address location is determined according to the data wire figure place of memory.
10, a kind of RAM testing method of memory address line comprises the following steps:
A) last address location of RAM memory is write entirely " 1 ";
B) choose the address location of RAM with " walking 0 " method, write test data in address location, the described test data data bit corresponding with the address wire that needs test is " 0 ", and the remainder data position is " 1 ";
C) read data in last address location of RAM memory, and carry out " logical AND " operation with last record data, operating result is preserved;
D) repeating step B and step C are until all address wires are all finished the test of " walking 0 ";
E) according to the arrangement position of " 0 " in the end product, determine that the address wire of opposite position breaks down.
11, RAM testing method of memory address line as claimed in claim 10 is characterized in that: if the quantity of data wire is lacked than address wire, then address wire is tested in batches, make the number of address lines of each test less than or equal to data wire.
12, such as claim 10 or 11 described RAM testing method of memory address lines, it is characterized in that: the size of described address location is determined according to the data wire figure place of memory.
CNB2004100310396A 2004-04-07 2004-04-07 Memory Address Line Test Method Expired - Fee Related CN100428364C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100310396A CN100428364C (en) 2004-04-07 2004-04-07 Memory Address Line Test Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100310396A CN100428364C (en) 2004-04-07 2004-04-07 Memory Address Line Test Method

Publications (2)

Publication Number Publication Date
CN1681048A true CN1681048A (en) 2005-10-12
CN100428364C CN100428364C (en) 2008-10-22

Family

ID=35067586

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100310396A Expired - Fee Related CN100428364C (en) 2004-04-07 2004-04-07 Memory Address Line Test Method

Country Status (1)

Country Link
CN (1) CN100428364C (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169975B (en) * 2006-10-24 2011-05-04 英华达(上海)科技有限公司 Memory test method
US7966531B2 (en) 2005-11-14 2011-06-21 Mitsubishi Electric Corporation Memory diagnosis apparatus
CN103000226A (en) * 2011-09-08 2013-03-27 施耐德电器工业公司 Detection method for detecting defect through random access memory chip address pin
CN104425040A (en) * 2013-08-23 2015-03-18 辉达公司 Memory testing method and system thereof
CN105788649A (en) * 2014-12-23 2016-07-20 华为数字技术(苏州)有限公司 Preprocessing method and apparatus for flash memory
CN106199394A (en) * 2016-07-26 2016-12-07 中国船舶重工集团公司第七二四研究所 RAM chip engineering detecting method based on FPGA
CN106710633A (en) * 2016-11-30 2017-05-24 中国航空工业集团公司沈阳飞机设计研究所 Self-detection method for random access memory
CN108335721A (en) * 2018-03-14 2018-07-27 烽火通信科技股份有限公司 A kind of method and system of real-time detection of random access memory address line failure
CN109801667A (en) * 2018-12-26 2019-05-24 中国电子科技集团公司第二十研究所 A kind of parallel static memory address wire out of circuit test method
CN112098770A (en) * 2020-08-20 2020-12-18 深圳市宏旺微电子有限公司 Test method and device for simulating extreme environment aiming at dynamic coupling fault
CN112988491A (en) * 2021-05-20 2021-06-18 新华三半导体技术有限公司 Memory test method and device and memory controller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1227502A1 (en) * 2001-01-25 2002-07-31 Alcatel Connection pad arrangements for electronic circuit comprising both functional logic and flash-EEPROM
CN1230830C (en) * 2001-12-20 2005-12-07 华为技术有限公司 RAM high speed test control circuit and its testing method
JP2004030850A (en) * 2002-06-28 2004-01-29 Toshiba Corp Semiconductor storage device
CN1469394A (en) * 2002-07-19 2004-01-21 蔚华科技股份有限公司 Diagonal testing method of flash memory

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7966531B2 (en) 2005-11-14 2011-06-21 Mitsubishi Electric Corporation Memory diagnosis apparatus
CN101310343B (en) * 2005-11-14 2014-04-30 三菱电机株式会社 memory diagnostics
CN101169975B (en) * 2006-10-24 2011-05-04 英华达(上海)科技有限公司 Memory test method
CN103000226A (en) * 2011-09-08 2013-03-27 施耐德电器工业公司 Detection method for detecting defect through random access memory chip address pin
CN103000226B (en) * 2011-09-08 2016-03-23 施耐德电器工业公司 The method of testing of defect is detected by RAM chip address pin
CN104425040A (en) * 2013-08-23 2015-03-18 辉达公司 Memory testing method and system thereof
CN105788649B (en) * 2014-12-23 2019-06-14 华为数字技术(苏州)有限公司 Method and device for preprocessing of flash memory
CN105788649A (en) * 2014-12-23 2016-07-20 华为数字技术(苏州)有限公司 Preprocessing method and apparatus for flash memory
CN106199394A (en) * 2016-07-26 2016-12-07 中国船舶重工集团公司第七二四研究所 RAM chip engineering detecting method based on FPGA
CN106710633A (en) * 2016-11-30 2017-05-24 中国航空工业集团公司沈阳飞机设计研究所 Self-detection method for random access memory
CN108335721A (en) * 2018-03-14 2018-07-27 烽火通信科技股份有限公司 A kind of method and system of real-time detection of random access memory address line failure
CN108335721B (en) * 2018-03-14 2021-04-20 烽火通信科技股份有限公司 Method and system for detecting random access memory address line fault in real time
CN109801667A (en) * 2018-12-26 2019-05-24 中国电子科技集团公司第二十研究所 A kind of parallel static memory address wire out of circuit test method
CN109801667B (en) * 2018-12-26 2020-09-08 中国电子科技集团公司第二十研究所 Parallel static memory address line open circuit test method
CN112098770A (en) * 2020-08-20 2020-12-18 深圳市宏旺微电子有限公司 Test method and device for simulating extreme environment aiming at dynamic coupling fault
CN112988491A (en) * 2021-05-20 2021-06-18 新华三半导体技术有限公司 Memory test method and device and memory controller
CN112988491B (en) * 2021-05-20 2021-08-06 新华三半导体技术有限公司 Memory test method and device and memory controller

Also Published As

Publication number Publication date
CN100428364C (en) 2008-10-22

Similar Documents

Publication Publication Date Title
CN1265396C (en) Mixed packing semiconductor integrate circuit device of controller mass storage and measuring method
CN1230830C (en) RAM high speed test control circuit and its testing method
CN1145972C (en) Automatic detection method and detection circuit of random access memory
CN1648876A (en) Data management apparatus and method of flash memory
CN1681048A (en) Testing method of memory address line
CN1332459A (en) Semiconductor integrated circuit and its storage repairing method
CN1858596A (en) Chip general detector and its structure method
CN1667755A (en) Semiconductor device with memory and method for memory test
CN1278421C (en) Semiconductor devices
CN1855300A (en) Redundancy circuit in semiconductor memory device
CN1432153A (en) Dual-ported cams for simultaneous operation flash memory
CN101042318A (en) Small sample products reliability verification method based on maximum entropy experimental methods
CN1383156A (en) Single chip processor with dynamic ageing testing function and dynamic ageing testing method
CN1804799A (en) SCM online loading and updating method and system
CN1770328A (en) Nonvolatile semiconductor memory device and data erasing method thereof
CN1601652A (en) Semiconductor memory device and method of testing the device
CN1645516A (en) Data recovery apparatus and method used for flash memory
CN1642045A (en) Automatic testing method for modulating and demodulation unit and its testing system
CN1929034A (en) Method and system for RAM fault testing
CN1770117A (en) Fault selecting method and apparatus
CN100350587C (en) Semiconductor test system
CN1577634A (en) Semiconductor device
CN1286282C (en) Method for processing transparent element in boundary scan interconnection test
CN101030147A (en) Method and device for on-line programming logic device
CN1336553A (en) Mode generator used for testing semiconductor system

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081022

Termination date: 20160407