Review and Research on Testing Methods of RAM in Single Chip Microcomputer Systems

Publisher:Yuexiang888Latest update time:2009-08-26 Source: 阜阳师范学院Keywords:RAM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In various single-chip microcomputer application systems, the normality of the memory is directly related to the normal operation of the system. In order to improve the reliability of the system, it is necessary to test the reliability of the system. Through testing, the damage caused by memory failure to the system can be effectively discovered and solved. This article specifically introduces several commonly used single-chip microcomputer system RAM testing methods, and on this basis, proposes a RAM fault testing method based on seed and bit-by-bit inversion.

1 RAM test method review

(1) Method 1

The reference document gives a method for testing the system RAM. This method is to check in two steps, first input #00H and then #FFH into the entire data area, then read them out and compare them. If they are different, it means an error.

(2) Method 2

Method 1 cannot completely detect RAM errors. A standard algorithm for RAM detection, MARCH-G, is analyzed and introduced in the reference. The MARCH-G algorithm can provide excellent fault coverage, but the required testing time is very large. The MARCH-G algorithm needs to traverse the entire address space three times. Assuming the address line is the "root", the CPU needs to access the RAM 6×2n times.

(3) Method 3

The reference provides a method to complete the test by shifting the address signal. On the basis of the address signal being all 0, the signal of the address line Ai is only inverted once each time, while the signals of other non-detection address lines Aj (i≠j) are kept at 0, and this is done bit by bit from low to high; then on the basis of the address signal being all 1, the signal of the address line Ai is only inverted once each time, while the signals of other non-detection address lines Aj (i≠j) are kept at 1, and this is also done bit by bit from low to high. Therefore, the shift of the address signal is actually nonlinear addressing according to 2K (K is an integer, and the maximum value is the width of the address bus), and the entire required address range can be regarded as generated by shifting with all 0 and all 1 as the background. Different pseudo-random data is written to the corresponding storage unit at the same time as the address changes. After the above write unit operation is completed, the address signal is shifted in reverse order to read the written pseudo-random data and perform detection. Assuming that there are n address lines, the CPU only accesses 2n+2 storage units in the system RAM.

2 RAM testing method based on seed and bit-by-bit inversion

The test method based on seed and bit-by-bit inversion is further improved on the basis of method 3. Method 3 mainly uses two background numbers of all 0 and all 1 for shift expansion. Compared with the MARCH-G algorithm, the fault coverage obtained is slightly lower, but fewer address units are used. Here we call the background number in method 3 "seed". Taking the RAM with 8 address lines as an example, the seeds are 00000000 and 11111111, 0000llll and llll0000, 00000000, 111111111, 0000llll and llll0000, and 00000000, 111111111, 00001111, 11110000, 00110011, 1100llOO, 01010101 and 10101010 for shift expansion test. The fault coverage achieved is different. The improved method with 2 seeds has a lower fault coverage than the MARCH-G algorithm, the improved method with 4 seeds is equivalent to the MARCH-G algorithm, and the improved method with 8 seeds can exceed the effect of the MARCH-G algorithm. Overall, the improved method based on seeds and bit-by-bit inversion can replace the MARCH-G algorithm, but the number of addressing times required is different for different seed numbers. Assuming that there are n address lines, when the number of seeds is 2, the RAM needs to be accessed a total of 4"+4 times, when the number of seeds is 4, the RAM needs to be accessed a total of 8n+8 times, when the number of seeds is 8, the RAM needs to be accessed a total of 16n+16 times, and the MARCH-G algorithm needs to access the RAM a total of 6×2n times. It can be seen that the improved method based on seeds and bit-by-bit inversion has a much lower test time overhead than the MARCH-G algorithm. At the same time, the fault coverage will increase with the increase of the number of seeds. Of course, the test time overhead required for different seed numbers is also different. In actual test applications, the appropriate number of seeds should be selected according to the requirements of test time and test fault coverage to achieve satisfactory results.

Conclusion

This paper introduces the general method of RAM testing in single-chip microcomputer systems, and proposes a RAM fault testing method based on seeds and bit-by-bit inversion. It has the characteristics of short diagnosis time and high fault coverage, so it has high application value.

Keywords:RAM Reference address:Review and Research on Testing Methods of RAM in Single Chip Microcomputer Systems

Previous article:Temperature measurement system based on DS18B20 and TMS320LF2407A
Next article:Design of Embedded Intelligent Instrument System Based on ARM and DSP

Recommended ReadingLatest update time:2024-11-16 23:45

Goodbye DDR4: Intel 700 series chips may only support DDR5 memory
According to a report by TechPowerUp, Intel is developing a 700 series chipset motherboard that only supports the 13th generation Raptor Lake processors. Although DDR4+DDR5 memory controllers are still mainstream, Intel is working hard to increase the market share of DDR5 memory.    According to the report, the 700 se
[Home Electronics]
Research and Application of Memory Pool Module Transplantation in Nucleus Operating System
   Memory pool management is a measurable and efficient memory management method. It has the advantages of reducing memory fragmentation, improving allocation speed, and preventing memory leaks . At present, most kernel-based memory pools in China are based on the Linux kernel . This paper mainly introduces the researc
[Power Management]
Research and Application of Memory Pool Module Transplantation in Nucleus Operating System
STC8G series storage structure RAM FLASH EEPROM
7 Memory 1. Data storage - RAM Internal RAM Internal extended RAM External expansion RAM 2. Program storage - ROM 3. EEPROM RAM is used to store the intermediate results and process data of program execution (the data disappears after p
[Microcontroller]
STC8G series storage structure RAM FLASH EEPROM
Breaking the high-bandwidth memory wall, the pinnacle of domestic one-stop high-speed interface IP
On December 22 (Tuesday) at 20:00, two technical experts from Innosilicon, a leading one-stop IP and custom chip company in China, will be guests at the live broadcast room of Jiwei.com, a well-known domestic integrated circuit and mobile phone industry portal, to share a series of cutting-edge technologies through op
[Mobile phone portable]
Why do we need to remap memory during ARM startup?
During the ARM startup process, the SRAM address is first mapped to 0x0. At this time, DRAM is mapped to its own physical address, which means that the operating system has not yet been entered; After that, address remapping is required, moving SRAM from 0x0 and mapping the DRAM address to 0x0. This is to ensure the a
[Microcontroller]
S3C2440 memory controller and SDRAM
1. A brief introduction to the memory controller in S3C2440 What is the role of a memory controller and what are its characteristics? How is the memory controller used by the CPU? How does the CPU address bus connect to the storage chip? 1. Its functions and features are shown in Figure 1. The following is a simple
[Microcontroller]
S3C2440 memory controller and SDRAM
Fast memory transfers using ultra-fast flash microcontrollers
Dallas Semiconductor ultra-fast flash microcontrollers feature dual data pointers with auto-increment/decrement and toggle select capabilities. This application note compares the original 8051 architecture with one data pointer to the new architecture of the DS89C430 and DS89C450 and its higher data movement efficienc
[Microcontroller]
Fast memory transfers using ultra-fast flash microcontrollers
The performance is similar, the memory is redundant, and the 8G version of Raspberry Pi 4 is useless
Introduction: Raspberry Pi releases 8G version From the first generation of Raspberry Pi released in 2012 to the launch of Raspberry Pi 4B in 2019, it still cannot be called a "PC replacement." Of course, you can even buy a Raspberry Pi Zero for $5 to play some games, run office applications, and surf the Internet, b
[Embedded]
The performance is similar, the memory is redundant, and the 8G version of Raspberry Pi 4 is useless
Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号