Parallel testing system for memory chips
By using multiple test processors and routing modules in the parallel testing system for memory chips, and configuring fixed channel identifiers and CDC interface numbers, the problem of unstable COM port mapping in the USB CDC multi-serial port architecture is solved, achieving efficient multi-chip parallel testing and reliable test result traceability.
Patent Information
- Application Number
- CN202522742073.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-24
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2035-12-24
AI Technical Summary
The COM port mapping in the existing USB CDC multi-serial port test architecture is unstable, which makes it impossible to establish a stable correspondence between test data and the physical location of the chip under test, affecting the traceability of test results and the reliability of mass production systems.
Multiple test processors are used, each with a unique and fixed channel identifier. A stable mapping link between the CDC interface and the physical test channel is established through the channel mapping storage unit in the routing module and the CDC interface with a fixed number, ensuring that the host computer can accurately identify the physical test channel.
It enables large-scale parallel testing of multiple chips under test, improves test throughput, ensures the traceability of test results and the reliability of system operation, and has the advantages of low cost, strong scalability and flexible deployment.
Smart Images

Figure CN224985983U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of integrated circuit testing, and in particular to a parallel testing system for memory chips. Background Technology
[0002] During chip mass production, each chip needs to undergo block erasure, page programming, and page reading tests to verify its functional integrity and data reliability. Testing efficiency directly impacts production line capacity and costs; therefore, efficient parallel testing technology is crucial for chip mass production.
[0003] In existing technologies, parallel testing of multiple chips mainly adopts two approaches: one is a test architecture based on FPGA multi-channel boards or dedicated ATE (Automatic Test Equipment), which enables simultaneous testing of multiple chips through hardware parallel channels; the other is a multi-serial port test architecture based on USB CDC (Communication Device Center), which virtualizes multiple serial port channels through the USB interface to communicate with multiple test units, thereby achieving parallel testing of multiple chips under test. While the former offers higher testing efficiency, it suffers from high equipment costs and poor system scalability, making it unsuitable for rapid deployment or large-scale distributed production lines; the latter offers relatively lower costs and flexible deployment, and is more commonly used in small- to medium-scale mass production scenarios.
[0004] However, the multi-serial port testing architecture based on USB CDC suffers from unstable COM port mapping. Specifically, during the USB CDC device enumeration process, the operating system dynamically assigns COM port numbers based on factors such as device insertion order, USB port location, and historical records. This results in the same test device being assigned different COM port numbers on different computers, or even on the same computer with different insertion and removal orders. This COM port mapping drift makes it difficult for the host computer software to accurately identify the physical test channel corresponding to each COM port, leading to an unstable correspondence between test data and the physical location of the chip under test. This severely affects the traceability of test results and the reliability of mass production systems. Utility Model Content
[0005] The main purpose of this invention is to propose a parallel testing system for memory chips, which aims to solve the problem that a stable correspondence cannot be established between test data and the physical location of the chip under test.
[0006] To achieve the above objectives, this utility model proposes a parallel testing system for memory chips, which includes: Multiple test processors, each of which is configured to communicate with multiple chips under test, and each of which includes a channel identifier storage unit; Multiple serial port expansion chips, each of which is electrically connected to a plurality of the test processors; The routing module is electrically connected to multiple serial port expansion chips via an SPI interface. The routing module includes a USB device controller and a channel mapping storage unit. The USB device controller includes multiple CDC interfaces with fixed interface numbers, which are used for communication with a host computer. The channel mapping storage unit is electrically connected to the multiple CDC interfaces and the multiple serial port expansion chips. Each CDC interface communicates independently with one of the serial port expansion chips through the channel mapping storage unit.
[0007] In some embodiments, the channel identifier storage unit is any one of Flash memory, EEPROM memory, and GPIO level configuration circuit.
[0008] In some embodiments, the routing module further includes a plurality of first chip select output terminals, each of the serial port expansion chips includes a first chip select input terminal, the plurality of first chip select output terminals are electrically connected to the first chip select input terminals of the plurality of serial port expansion chips respectively, and the routing module addresses the plurality of serial port expansion chips through independent chip select signals.
[0009] In some embodiments, each of the serial port expansion chips further includes an SPI interface unit and a UART transceiver unit. The SPI interface unit is electrically connected to the SPI interface of the routing module, and the UART transceiver unit is electrically connected to the UART interface of the corresponding test processor.
[0010] In some embodiments, the routing module further includes an interrupt input terminal, and the serial port expansion chip includes an interrupt output pin. The interrupt output pin is electrically connected to the interrupt input terminal, and the serial port expansion chip outputs an interrupt signal to the interrupt input terminal through the interrupt output pin.
[0011] In some embodiments, the test processor includes an SPI controller and multiple GPIO ports; the clock line and data line of the SPI controller are shared with multiple chips under test; each GPIO port is connected to a corresponding chip under test, and the test processor addresses the corresponding chip under test through the multiple GPIO ports.
[0012] In some embodiments, each of the test processors further includes a DUT state storage unit and a task queue storage area; the DUT state storage unit is electrically connected to the SPI controller, and the DUT state storage unit includes multiple status register groups corresponding to each chip under test, each status register group including a busy flag register, an operation type register, and an operation address register; the task queue storage area includes a ready queue storage area and a busy queue storage area, and the ready queue storage area and the busy queue storage area each include multiple identifier registers corresponding to each chip under test.
[0013] In some embodiments, the test processor further includes an ECC status cache unit and a page data buffer electrically connected to the SPI controller; the ECC status cache unit includes a plurality of ECC status registers corresponding one-to-one with each chip under test, and the page data buffer is used to cache page data read from the chip under test.
[0014] In some embodiments, the number of test processors is 12, the number of chips to be tested connected to each test processor is 12, and the number of CDC interfaces is 12.
[0015] In some embodiments, the chip under test is an SPI NAND Flash chip, the test processor is an STM32H743 series microcontroller, and the serial port expansion chip is an SC16IS752 or SC16IS762 chip.
[0016] The beneficial effects of this utility model's technical solution are as follows: By setting up multiple independent and parallel-working test processors, large-scale parallel testing of multiple chips under test is achieved, improving test throughput. Simultaneously, a channel identifier storage unit is set in each test processor, and each test processor stores a distinct channel identifier, assigning each test processor a unique and fixed identity. By configuring multiple CDC interfaces with fixed interface numbers in the routing module, each CDC interface maintains a fixed interface number during USB enumeration, unaffected by the operating system's dynamic allocation of COM port numbers. Furthermore, by setting up a channel mapping storage unit to store the correspondence between the interface numbers of each CDC interface and the corresponding channel identifiers of the test processors, a stable mapping link is established between the CDC interfaces and the physical test channels. Thus, the host computer can accurately identify the physical test channel corresponding to each CDC interface by querying the channel identifier, effectively solving the problem in traditional USB CDC multi-serial port architecture where test data and the physical location of the chip under test cannot be stably matched due to COM port mapping drift, ensuring the traceability of test results and the reliability of system operation in the mass production testing system. Attached Figure Description
[0017] Figure 1 This is an architecture diagram of an embodiment of the parallel testing system for memory chips of this utility model; Figure 2 This is an architecture diagram of the routing module in one embodiment of the parallel testing system for memory chips of this utility model; Figure 3 This is an architectural diagram of a serial port expansion chip in one embodiment of the present invention; Figure 4 This is an architecture diagram of the test processor in one embodiment of the present invention.
[0018] Explanation of icon numbers: 100. Test Processor; 110. Channel Identifier Storage Unit; 111. SPI Controller; A1. GPIO Port; 112. DUT Status Storage Unit; 113. Status Register Group; 114. Busy Status Flag Register; 115. Operation Type Register; 116. Operation Address Register; 120. Task Queue Storage Area; 121. Ready Queue Storage Area; 122. Busy Status Queue Storage Area; 123. Identifier Register; 130. ECC status cache unit; 131. ECC status register; 132. Page data buffer; 200. Serial port expansion chip; A2. First chip select input terminal; A3. SPI interface unit; 201. UART transceiver unit; A4. Interrupt output pin; 300. Router module; A5. SPI interface; 301. USB device controller; A6. CDC interface; 302. Channel mapping memory unit; A7. First chip select output; A8. Interrupt input. Detailed Implementation
[0019] The solutions in the embodiments of this utility model will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this utility model, and not all of them. Based on the embodiments of this utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this utility model.
[0020] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in this utility model embodiment are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicator will also change accordingly.
[0021] It should also be noted that when a component is described as "fixed to" or "set on" another component, it can be directly on the other component or there may be an intervening component present. When a component is described as "connected to" another component, it can be directly connected to the other component or there may be an intervening component present.
[0022] Furthermore, the use of terms such as "first" and "second" in this utility model is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this utility model.
[0023] In existing technologies, during the USB CDC device enumeration process, the operating system dynamically assigns COM port numbers based on factors such as device insertion order, USB port location, and historical records. This results in the same test device being assigned different COM port numbers on different computers, or even on the same computer with different insertion and removal sequences. This COM port mapping drift makes it difficult for the host computer software to accurately identify the physical test channel corresponding to each COM port. Consequently, a stable correspondence cannot be established between test data and the physical location of the chip under test, severely impacting the traceability of test results and the reliability of mass production systems. Therefore, this invention proposes a parallel testing system for memory chips. By setting up multiple independent and parallel-operating test processors, it achieves large-scale parallel testing of multiple chips under test, improving test throughput. Simultaneously, each test processor is equipped with a channel identifier storage unit, and each test processor is configured with a unique channel identifier, assigning each test processor a unique and fixed identity. By configuring multiple CDC interfaces with fixed interface numbers in the routing module, each CDC interface maintains a fixed interface number during USB enumeration, unaffected by the operating system's dynamic allocation of COM port numbers. Furthermore, by setting up a channel mapping storage unit, a correspondence is established between the interface numbers of each CDC interface and the corresponding channel identifier of the test processor, thereby establishing a stable mapping link between the CDC interface and the physical test channel. For details, please refer to... Figure 1 , Figure 1 This is an architecture diagram of an embodiment of the parallel testing system for memory chips according to this utility model. The present utility model proposes a parallel testing system for memory chips, which includes: Multiple test processors 100, each test processor 100 is used to communicate with multiple chips under test, and each test processor 100 includes a channel identifier storage unit 110; Multiple serial port expansion chips 200 are electrically connected to multiple test processors 100 respectively. The routing module 300 is electrically connected to multiple serial port expansion chips 200 via an SPI interface. The routing module 300 includes a USB device controller 301 and a channel mapping storage unit 302. The USB device controller 301 includes multiple CDC interfaces A6 with fixed interface numbers, which are used for communication with a host computer. The channel mapping storage unit 302 is electrically connected to the multiple CDC interfaces A6 and the multiple serial port expansion chips 200. Each CDC interface A6 communicates independently with one serial port expansion chip 200 through the channel mapping storage unit 302.
[0024] In this embodiment, multiple test processors 100 are configured, and STM32H743 series microcontrollers can be used. Each test processor 100 is used to communicate with multiple chips under test (DUTs). For example, each test processor 100 controls 12 DUTs and is responsible for SPI command transmission, pseudo-parallel scheduling, status polling, and result reporting. Each test processor 100 includes a channel identifier storage unit 110, and each channel identifier storage unit 110 is configured with a different channel identifier (CHANNEL_ID). The channel identifier storage unit 110 can be implemented in one of the following ways: Flash memory embedded in the test processor 100, hard-coded address circuit configured via GPIO, or EEPROM memory. The channel identifier is fixed at the factory and corresponds one-to-one with the physical location of the DUT managed by the test processor 100. For example, test processor 0 corresponds to CHANNEL_ID=0, test processor 1 corresponds to CHANNEL_ID=1, and so on, up to test processor 11 corresponding to CHANNEL_ID=11. The channel identifier remains constant and is unaffected by USB enumeration or operating system behavior.
[0025] In this embodiment, multiple serial port expansion chips 200 are used. Since the number of native UARTs on a single MCU is limited, this embodiment employs multiple external UART serial port expansion chips 200 to construct multiple UART channels. The serial port expansion chip 200 can be an SC16IS752 (2-channel UART) or an SC16IS762 (4-channel UART), which internally integrates an SPI interface unit A3, a UART transceiver unit 201, a receive buffer, and a baud rate generator. Multiple serial port expansion chips 200 are electrically connected to multiple test processors 100, and the multiple UART transceiver units 201 of each serial port expansion chip 200 are electrically connected to the UART interface of the corresponding test processor 100, thereby forming multiple independent MCU-MCU serial port links. This architecture has high scalability and can be smoothly expanded to 16, 24, or even more channels, significantly enhancing the scalability of mass production-grade test systems.
[0026] The routing module 300 in this embodiment can be implemented using a routing-MCU. The routing module 300 is electrically connected to multiple serial port expansion chips 200 via an SPI interface A5. The routing module 300 may also include multiple first chip select outputs A7, and each serial port expansion chip 200 includes a first chip select input A2. The multiple first chip select outputs A7 are connected one-to-one with the first chip select inputs A2 of the multiple serial port expansion chips 200. The routing module 300 addresses the multiple serial port expansion chips 200 using independent chip select signals. Furthermore, each serial port expansion chip 200 includes an interrupt output pin A4, which is electrically connected to the interrupt input A8 of the routing module 300. When data is stored in the receive buffer, the interrupt output pin A4 outputs an interrupt signal to the routing module 300, enabling the routing module 300 to read data promptly without high-frequency polling, thus improving system real-time performance and efficiency.
[0027] The routing module 300 includes a USB device controller 301 and a channel mapping storage unit 302. The USB device controller 301 internally implements the CDC Composite device function and is configured with multiple CDC interfaces A6 with fixed interface numbers. These multiple CDC interfaces A6 are used for communication with a host computer. The number, order, and identifier of the CDC interfaces A6 are explicitly defined by the routing module 300 firmware during the enumeration phase. When the routing module 300 is powered on, its firmware declares multiple CDC ACM interfaces sequentially in the device descriptor according to a preset interface order, including interface number, endpoint number, and functional description. Because the number and order of the USB CDC interfaces A6 are statically defined by the routing module 300 at the device descriptor level, these interfaces are always presented in a fixed order during USB enumeration, such as Interface0 to Interface11.
[0028] It is important to emphasize that the COM number assigned by the operating system to each CDC interface A6 is a dynamic mapping at the operating system level and does not affect the interface order defined by the routing module 300. Even if the operating system assigns different COM numbers to the same device on different computers or different ports, the internal numbering, functional order and endpoint structure of the multiple CDC interfaces A6 defined by the routing module 300 remain unchanged.
[0029] The channel mapping storage unit 302 is electrically connected to multiple CDC interfaces A6 (via a USB device controller) and multiple serial port expansion chips 200. It stores the correspondence between the interface number of each CDC interface A6 and the channel identifier of the corresponding test processor 100. The routing module 300 firmware establishes a one-to-one mapping between each interface and its corresponding UART expansion channel based on the CDC interface A6 number. For example, CDC Interface0 corresponds to UART0, CDC Interface1 corresponds to UART1, and so on, up to CDCInterface11 corresponding to UART11. This mapping relationship is entirely controlled by the routing module 300 and cannot be changed by the host computer or the COM port number of the operating system. Therefore, the virtual serial port order in this system is strictly defined by the USB descriptor structure of the routing module 300, rather than determined by the operating system. Multiple CDC interfaces A6 are mapped one-to-one with multiple test processors 100 through the channel mapping storage unit 302.
[0030] After the host computer starts the mass production software, it will automatically identify multiple virtual COM ports according to the following handshake process: First, the host computer scans all newly appearing COM ports, which originate from multiple CDC interfaces A6 exposed by the routing module 300; then, the host computer opens each COM port in sequence and sends a handshake command to that COM port, such as GET_CHANNEL_INFO; after receiving the handshake command, the routing module 300 queries the UART extended channel corresponding to the CDC interface A6 through the channel mapping storage unit 302, and transparently forwards the handshake command to the corresponding serial port expansion chip 200; the serial port expansion chip 200 sends the handshake command to the corresponding test processor 100 through the UART interface; after receiving the handshake command, the test processor 100 reads its own channel identifier from the channel identifier storage unit 110, and sends back information such as the channel identifier, DUT quantity and configuration, and firmware version; the returned information is sent back to the host computer via the serial port expansion chip 200 and the routing module 300; the host computer constructs a mapping table between COM port numbers and channel identifiers based on the response data, for example: COM12 corresponds to CHANNEL_ID 0 corresponds to test processor 1000, COM7 corresponds to CHANNEL_ID 1, which corresponds to test processor 1001, and so on.
[0031] After the handshake process is completed, all test tasks are scheduled based on the channel identifier rather than the COM number. When the host computer needs to issue a test command to a certain test processor 100, it first looks up the corresponding COM port number of the test processor 100 according to the mapping table, and then sends the command through the COM port number. After the command is received by the CDC interface A6 of the routing module 300, it is forwarded to the corresponding serial port expansion chip 200 through the SPI interface according to the corresponding relationship in the channel mapping storage unit 302, and then sent to the corresponding test processor 100 by the UART transceiver unit 201 of the serial port expansion chip 200. After receiving the command, the test processor 100 performs the corresponding test operations on the multiple chips under test managed by it, and sends the test results back to the host computer along the original path.
[0032] Since the CDC interface A6 number is defined and fixed by the firmware of the routing module 300, the UART expansion chip channel order is determined by hardware wiring and chip select signal and cannot drift, the channel identifier is permanently fixed within the test processor 100 and does not change due to software or connection method, and the host computer executes a full handshake process and dynamically reconstructs the mapping relationship between COM port number and channel identifier every time it starts, the correspondence between the host computer and the chip under test is independent of factors such as the COM number assigned by Windows, USB plug-in / plug-out order, computer restart, computer replacement, driver cache records, etc., and a completely stable and traceable physical DUT mapping relationship is achieved.
[0033] The beneficial effects of this utility model are as follows: by setting up multiple independent and parallel test processors 100, large-scale parallel testing of multiple chips under test is achieved, significantly improving the test throughput; at the same time, a channel identifier storage unit 110 is set in each test processor 100, and each test processor 100 is configured with a different channel identifier, giving each test processor 100 a unique and fixed identity; by configuring multiple CDC interfaces A6 with fixed interface numbers in the routing module 300, each CDC interface A6 always maintains a fixed interface number during USB enumeration, unaffected by the operating system's dynamic allocation of COM port numbers; and by setting up a channel mapping storage unit 302 to store the correspondence between the interface number of each CDC interface A6 and the corresponding channel identifier of the test processor 100, a stable mapping link between the CDC interface A6 and the physical test channel is established.
[0034] In this way, the host computer can accurately identify the physical test channel corresponding to each CDC interface A6 by querying the channel identifier. This effectively solves the problem in traditional USB CDC multi-serial port architecture where test data cannot stably correspond to the physical location of the chip under test due to COM port mapping drift, ensuring the traceability of test results and the reliability of system operation in the mass production test system. Furthermore, this system uses an SPI bus to connect to the serial port expansion chip 200, which has high scalability and can be smoothly expanded to more test channels, meeting the rapid deployment needs of large-scale distributed production lines. Compared with FPGA multi-channel boards or dedicated ATE test equipment, it has the advantages of low cost, strong scalability, and flexible deployment.
[0035] In a preferred embodiment, the channel identifier storage unit 110 is any one of Flash memory, EEPROM memory, and GPIO level configuration circuit.
[0036] Specifically, when using Flash memory, the channel identifier is permanently stored in the Flash memory area inside the test processor 100 and is written once at the factory, offering advantages such as large storage capacity and fast read speed. When using EEPROM memory, the channel identifier is stored in an external or internal EEPROM chip, supporting multiple erase and write operations, facilitating later maintenance and channel identifier updates. When using GPIO level configuration circuit, the channel identifier is hard-coded through the combination of high and low levels of multiple GPIO ports A1 of the test processor 100. For example, using 4 GPIO ports A1 can encode 16 different channel identifiers. This method requires no software configuration; the channel identifier is directly determined by the hardware circuit, resulting in high reliability and independence from firmware updates.
[0037] All three methods described above can configure each test processor 100 with a unique and persistently fixed channel identifier that will not change due to system restart, firmware upgrade or USB re-enumeration.
[0038] See Figure 2 In a preferred embodiment, the routing module 300 further includes a plurality of first chip select output terminals A7, and each serial port expansion chip 200 includes a first chip select input terminal A2. The plurality of first chip select output terminals A7 are electrically connected to the first chip select input terminals A2 of the plurality of serial port expansion chips 200 respectively. The routing module 300 addresses the plurality of serial port expansion chips 200 through independent chip select signals.
[0039] Specifically, the multiple first chip select outputs A7 of the routing module 300 are fixedly connected to the first chip select inputs A2 of the multiple serial port expansion chips 200 through PCB hardware wiring. For example, the first chip select output A7CS0 is connected to the first chip select input A2 of the serial port expansion chip 2000, the first chip select output A7CS1 is connected to the first chip select input A2 of the serial port expansion chip 2001, and so on. When the routing module 300 needs to access a certain serial port expansion chip 200, it pulls down the corresponding chip select signal. The serial port expansion chip 200 is selected and responds to data transmission on the SPI bus, while the other serial port expansion chips 200 remain in an unselected state because their chip select signals are high.
[0040] Since the connection between each first chip select output terminal A7 and each serial port expansion chip 200 is determined by hardware wiring, this correspondence is fixed after the system is manufactured and is not affected by software configuration, system restart or USB re-enumeration, thus ensuring the stability of the communication link between the routing module 300 and each serial port expansion chip 200, providing hardware-level protection for the channel mapping stability of the entire system.
[0041] See Figure 3 In a preferred embodiment, each serial port expansion chip 200 further includes an SPI interface unit A3 and a UART transceiver unit 201. The SPI interface unit A3 is electrically connected to the SPI interface of the routing module 300; the UART transceiver unit 201 is electrically connected to the UART interface of the corresponding test processor 100.
[0042] Specifically, the serial port expansion chip 200 can be either the SC16IS752 or the SC16IS762 chip. The SC16IS752 provides two UART channels, while the SC16IS762 provides four UART channels, allowing for flexible selection based on system size requirements. Each serial port expansion chip 200 integrates an SPI interface unit A3, multiple UART transceiver units 201, a FIFO buffer, and a baud rate generator, enabling it to bridge the SPI and UART protocols.
[0043] Each serial port expansion chip 200 forms a fixed physical connection with the corresponding SPI interface of the routing module 300 through its SPI interface unit A3. The routing module 300 acts as the SPI master device, accessing data from each serial port expansion chip 200 via the SPI bus. The channel mapping storage unit 302 inside the routing module 300 establishes a mapping relationship between the CDC interface A6 and each serial port expansion chip 200, ensuring that data sent by the host computer through a specific CDC interface A6 can be accurately routed to the corresponding serial port expansion chip 200. For example, when the host computer sends data through CDC Interface 0, the routing module 300, based on the mapping relationship in the channel mapping storage unit 302, writes the data into the UART transmit FIFO of the corresponding serial port expansion chip 200 via the SPI bus.
[0044] Each serial port expansion chip 200 includes multiple UART transceiver units 201. The TX / RX signal lines of each UART transceiver unit 201 are electrically connected to the UART interface of the corresponding test processor 100, thereby forming multiple independent serial communication links. For example, with a configuration using 6 SC16IS752 chips, 12 independent UART channels can be constructed, connecting 12 test processors 100 respectively, realizing parallel communication between the routing module 300 and each test processor 100.
[0045] The above structure establishes a complete data transmission path from the CDC interface A6 to the serial port expansion chip 200 and then to the test processor 100. Each transmission path is independent and has a fixed physical connection, ensuring the stability of the communication link and the reliability of data transmission. Furthermore, this architecture is highly scalable, allowing for smooth expansion to 16, 24, or even more channels by increasing the number of serial port expansion chips 200, significantly enhancing the scalability of mass-production testing systems.
[0046] Continue reading Figure 2 In a preferred embodiment, the routing module 300 further includes an interrupt input terminal A8, and the serial port expansion chip 200 includes an interrupt output pin A4. The interrupt output pin A4 is electrically connected to the interrupt input terminal A8, and the serial port expansion chip 200 outputs an interrupt signal to the interrupt input terminal A8 through the interrupt output pin A4.
[0047] Specifically, to ensure that the routing module 300 can promptly read the receive buffer data of the UART transceiver unit 201 in the serial port expansion chip 200, this embodiment uses the interrupt output pin A4INT# of the serial port expansion chip 200 to implement real-time notification of receive events. The interrupt output pin A4INT# of each serial port expansion chip 200 is electrically connected to the external interrupt input terminal A8 of the routing module 300. When a receive event occurs in any serial port expansion chip 200, it can promptly notify the routing module 300 to read the data.
[0048] When any UART channel receives data from the test processor 100 and writes it to the receive buffer, the serial port expansion chip 200 generates a receive interrupt and pulls the INT# pin low. The external interrupt input A8 of the routing module 300 captures the change in the pin level in real time and triggers the interrupt service routine to perform the following operations: First, the routing module 300 reads the interrupt flag register of the serial port expansion chip 200 through the SPI interface to determine which UART channel received the data; then, it reads all received bytes in the receive buffer of the corresponding UART channel; next, according to the mapping relationship in the channel mapping storage unit 302, it writes the data to the USB transmit buffer of the corresponding CDC interface A6; finally, the USB device controller 301 sends the data back to the host computer.
[0049] Through the INT# interrupt mechanism, the routing module 300 can respond and read data in a timely manner after a reception event occurs, without the need for high-frequency polling of each serial port expansion chip 200. This effectively reduces the processor load of the routing module 300, improves the real-time performance and data transmission efficiency of the system, and ensures the integrity and timeliness of data reception under high baud rate communication conditions.
[0050] See Figure 4 In a preferred embodiment, the test processor 100 includes an SPI controller 111 and multiple GPIO ports A1; the clock line and data line of the SPI controller 111 are shared with multiple chips under test; each GPIO port A1 is connected to each chip under test in a one-to-one correspondence, and the test processor 100 addresses the corresponding chip under test through the multiple GPIO ports A1.
[0051] Specifically, the test processor 100 can be an STM32H743 series microcontroller, which controls multiple chips under test simultaneously through a set of SPI / QSPI interfaces. The chips under test are preferably SPI NAND Flash chips, and each test processor 100 can control 12 chips under test. Except for the chip select signal, all SPI signal lines are shared by multiple chips under test, including the clock line SCK, write data line MOSI, and read data line MISO. Each GPIO port A1 is configured as a chip select output, connected one-to-one with the chip select input of each chip under test. For example, GPIO port A1CS0 is connected to chip under test 0, GPIO port A1CS1 is connected to chip under test 1, and so on, up to GPIO port A1CS11 connected to chip under test 11.
[0052] At any given time, the test processor 100 selects the target chip under test only by pulling down one chip select signal. Other chips under test, although connected to the bus, will not respond to commands because the chip select signal is high. Secondly, when a chip under test performs an internal operation with a long delay, such as erasing or writing, its internal busy state will not occupy the SPI bus. The test processor 100 can immediately switch to the next chip under test and issue new operation commands, which provides a hardware basis for pseudo-parallel scheduling. In addition, multiple chips under test sharing the SPI bus can significantly reduce the number of pins occupied by the test processor 100 and reduce the complexity of board-level routing.
[0053] The test processor 100 addresses and operates the chip under test via GPIO port A1 in the following steps: First, it pulls the corresponding chip select signal CSx low to select the target chip under test; then, it sends operation commands and address data through the SPI controller 111; after the command is sent, it pulls the chip select signal CSx high, at which point the chip under test enters its internal execution state and no longer occupies the SPI bus; the test processor 100 then switches to the next chip under test, pulls its chip select signal low, and sends the same type of operation command. In this way, the test processor 100 can continuously initiate new operation instructions during the internal execution of multiple chips under test, achieving pseudo-parallel scheduling and significantly improving test throughput.
[0054] The test processor 100 internally reserves a page data buffer 132 and a spare data buffer via SRAM. The page data buffer 132 has a capacity of no less than 2048 bytes, and the spare data buffer has a capacity of no less than 64 bytes. Since all chips under test share the same SPI bus, the test processor 100 only needs to configure one set of data buffers to complete the read and write operations for each chip under test.
[0055] Each test processor 100 connects to its corresponding serial port expansion chip 200 via its UART interface, and then establishes a communication link with the host computer through the routing module 300. The UART communication baud rate can be configured to high rates such as 921600 or 1500000 to meet the bandwidth requirements for test information feedback. The test processor 100 does not directly participate in USB mapping; it is only responsible for UART communication, command parsing, and executing test operations on the chip under test.
[0056] See Figure 4 In a preferred embodiment, each test processor 100 further includes a DUT state storage unit 112 and a task queue storage area 120; the DUT state storage unit 112 is electrically connected to the SPI controller 111, and the DUT state storage unit 112 includes a plurality of status register groups 113 corresponding to each chip under test, each status register group 113 including a busy flag register 114, an operation type register and an operation address register 115; the task queue storage area 120 includes a ready queue storage area 121 and a busy queue storage area 122, and the ready queue storage area 121 and the busy queue storage area 122 respectively include a plurality of identifier registers 123 corresponding to each chip under test.
[0057] Specifically, the test processor 100 defines a unified SPI NAND Flash operation sequence for each chip under test, including operations such as block erase, page program, page read and ECC status check, and read status. Each operation consists of the following general process: First, the target chip under test is selected by pulling the chip select signal of the corresponding GPIO port A1 low; then, the operation command and address are sent through the SPI controller 111; next, the chip select signal is pulled high, and the chip under test enters the internal busy state to execute the corresponding operation; at this time, the test processor 100 immediately switches to the next chip under test to execute the same operation; finally, the status register is polled to determine the change from busy to idle state of each chip under test to confirm the completion of the operation.
[0058] The DUT status storage unit 112 is used to record the current status of each chip under test in real time. In each status register group 113, the busy state flag register 114 is used to identify whether the corresponding chip under test is currently in an idle state or an internal execution state; the operation type register is used to record the type of operation currently being performed by the corresponding chip under test, such as erase, write, or read; the operation address register 115 is the operation type register; and 116 is used to record the target address of the current operation of the corresponding chip under test, including the block address or page address. When the test processor 100 sends an operation command to a chip under test, it immediately updates the busy state flag, operation type, and operation address information in the corresponding status register group 113 of that chip under test.
[0059] The task queue storage area 120 is used to manage the task scheduling of each chip under test. The identifier register 123 in the ready queue storage area 121 is used to store the identifier of the chip under test that is currently in an idle state and can immediately execute a new operation; the identifier register 123 in the busy queue storage area 122 is used to store the identifier of the chip under test that has triggered an operation command and is currently in an internal execution state. After the host computer issues a test task, the test processor 100 writes the identifiers of all target chips to be tested into the ready queue storage area 121. The test processor 100 sequentially retrieves the chip identifiers from the ready queue storage area 121, issues operation commands to the corresponding chip, and moves the identifier from the ready queue storage area 121 to the busy queue storage area 122. When idle, the test processor 100 polls the status registers of each chip to be tested in the busy queue storage area 122. When it detects that a chip to be tested has changed from busy to idle, it performs a result judgment and reports it to the host computer. At the same time, it moves the identifier from the busy queue storage area 122 back to the ready queue storage area 121, waiting for the next round of operation.
[0060] The test processor 100 does not wait for any single-channel operation of the chip under test to finish. Instead, it immediately schedules the next chip under test after sending the operation command, thus achieving multi-channel pseudo-parallel scheduling. Since the typical erase operation of SPI NAND Flash takes about 2ms and the typical write operation takes about 400μs, while sending the operation command only takes a few microseconds, the test processor 100 can continuously send new operation instructions to other chips under test during the internal execution of each chip under test. This hides the long erase and write busy states in the operation sequence of multiple chips under test, allowing a single test processor 100 to approximately achieve 12-channel parallel testing, significantly improving test throughput and achieving near-hardware multi-channel parallel efficiency.
[0061] Continue reading Figure 4In a preferred embodiment, the test processor 100 further includes an ECC status cache unit 130 and a page data buffer 132 electrically connected to the SPI controller 111; the ECC status cache unit 130 includes a plurality of ECC status registers 131 corresponding one-to-one with each chip under test, and the page data buffer 132 is used to cache page data read from the chip under test.
[0062] Specifically, SPI NAND Flash read operations typically take only about 100μs, which is shorter than erase and write operations. Therefore, it cannot achieve significant parallelization through pseudo-parallel scheduling like erase and write operations. To further improve the efficiency of read operations, this embodiment employs an early judgment mechanism based on ECC status to reduce the time spent reading and uploading meaningless data.
[0063] Each ECC status register 131 in the ECC status cache unit 130 corresponds one-to-one with each chip under test and is used to store the error correction status data of the most recent read operation of each chip under test. The page data buffer 132 is electrically connected to the SPI controller 111 and has a capacity of not less than 2048 bytes. It is used to cache the page data read from the chip under test.
[0064] The optimized read operation process is as follows: First, the test processor 100 sends a page read command to the target chip under test, and the chip under test loads the data of the specified page from the memory array into its internal cache; then, the test processor 100 reads the ECC status bit in the status register of the chip under test and stores the status data in the corresponding ECC status register 131 in the ECC status cache unit 130; next, the test processor 100 determines the validity of the read result based on the ECC status bit: if the ECC status indicates an uncorrectable error (ECC FAIL), the test processor 100 no longer reads the 2048 bytes of main data of the page through the SPI bus, but directly reports the read failure information to the host computer, thereby saving the SPI bus time; if the ECC status indicates no error or a correctable error (ECC PASS), the test processor 100 continues to read the main data of the page into the page data buffer 132 through the SPI controller 111, and reports the data in the page data buffer 132 to the host computer.
[0065] By employing the aforementioned ECC status early judgment mechanism, this embodiment avoids the uploading of meaningless large data for ECC failure pages, reducing bandwidth consumption on the SPI bus and serial communication links. It significantly improves SPI bus utilization, enabling the test processor 100 to switch to the next chip under test more quickly for read operations. In test scenarios with multiple chips under test, it further enhances the overall read operation speed and system test throughput. This mechanism is particularly suitable for test scenarios that may generate numerous ECC errors, such as extensive erase / write stress tests and lifespan tests, effectively reducing the bandwidth consumption problem caused by invalid data.
[0066] In a preferred embodiment, the number of test processors 100 is 12, the number of chips to be tested connected to each test processor 100 is 12, and the number of CDC interfaces A6 is 12.
[0067] Specifically, this embodiment adopts a 12×12 architecture, meaning that 12 test processors 100 work in parallel, with each test processor 100 controlling 12 chips under test. The system can simultaneously perform parallel testing on a total of 144 chips under test. The routing module 300 is configured with 12 CDC interfaces A6, each corresponding to one of the 12 test processors 100, enabling independent communication between the host computer and each test processor 100.
[0068] It should be noted that the system architecture of this utility model has good scalability, and the above-mentioned 12×12 configuration is only a preferred embodiment. In practical applications, the system configuration can be flexibly adjusted according to the needs of mass production scale. For example, an 8×8 architecture can be used to achieve parallel testing of 64 chips under test, which is suitable for small and medium-sized production lines; a 16×12 architecture can be used to achieve parallel testing of 192 chips under test; or a 24×12 architecture can be used to achieve parallel testing of 288 chips under test, which is suitable for large-scale mass production scenarios. When expanding, only the number of test processors 100, serial port expansion chips 200, and CDC interface A6 need to be increased accordingly, and the overall system architecture and working principle remain unchanged. In addition, the number of serial port expansion chips 200 can be the same as the number of test processors 100, or one serial port expansion chip 200 can be electrically connected to two test processors 100; of course, one serial port expansion chip 200 can also be electrically connected to four test processors 100.
[0069] The above description is only a part or preferred embodiment of this utility model. Neither the text nor the drawings should limit the scope of protection of this utility model. All equivalent structural transformations made using the content of this utility model specification and drawings under the overall concept of this utility model, or direct / indirect applications in other related technical fields, are included within the scope of protection of this utility model.
Claims
1. A memory chip parallel testing system, characterized in that, include: Multiple test processors, each of which is configured to communicate with multiple chips under test, and each of which includes a channel identifier storage unit; Multiple serial port expansion chips, each of which is electrically connected to a plurality of the test processors; The routing module is electrically connected to multiple serial port expansion chips via an SPI interface. The routing module includes a USB device controller and a channel mapping storage unit. The USB device controller includes multiple CDC interfaces with fixed interface numbers. The multiple CDC interfaces are used for communication with a host computer. The channel mapping storage unit is electrically connected to the USB device controller and the multiple serial port expansion chips. Each CDC interface communicates independently with one of the serial port expansion chips through the channel mapping storage unit.
2. The memory chip parallel testing system of claim 1, wherein, The channel identifier storage unit can be any one of Flash memory, EEPROM memory, or GPIO level configuration circuit.
3. The parallel testing system for memory chips according to claim 1 or 2, characterized in that, The routing module further includes multiple first chip select output terminals, and each of the serial port expansion chips includes a first chip select input terminal. The multiple first chip select output terminals are electrically connected to the corresponding first chip select input terminals of the multiple serial port expansion chips. The routing module addresses the multiple serial port expansion chips through independent chip select signals.
4. The parallel testing system for memory chips according to claim 3, characterized in that, Each of the serial port expansion chips further includes an SPI interface unit and a UART transceiver unit. The SPI interface unit is electrically connected to the SPI interface of the routing module; the UART transceiver unit is electrically connected to the UART interface of the corresponding test processor.
5. The parallel testing system for memory chips according to claim 1, characterized in that, The routing module also includes an interrupt input terminal, and each of the serial port expansion chips includes an interrupt output pin. The interrupt output pin is electrically connected to the interrupt input terminal, and the serial port expansion chip outputs an interrupt signal to the interrupt input terminal through the interrupt output pin.
6. The parallel testing system for memory chips according to claim 1, characterized in that, The test processor includes an SPI controller and multiple GPIO ports; the clock and data lines of the SPI controller are shared with multiple chips under test; each GPIO port is connected to a corresponding chip under test, and the test processor addresses the corresponding chip under test through the multiple GPIO ports.
7. The parallel testing system for memory chips according to claim 6, characterized in that, Each of the test processors further includes a DUT status storage unit and a task queue storage area; the DUT status storage unit is electrically connected to the SPI controller, and the DUT status storage unit includes multiple status register groups corresponding to each chip under test, each status register group including a busy status flag register, an operation type register, and an operation address register; the task queue storage area includes a ready queue storage area and a busy queue storage area, and the ready queue storage area and the busy queue storage area each include multiple identifier registers corresponding to each chip under test.
8. The parallel testing system for memory chips according to claim 6 or 7, characterized in that, The test processor also includes an ECC status cache unit and a page data buffer electrically connected to the SPI controller; the ECC status cache unit includes multiple ECC status registers corresponding to each chip under test, and the page data buffer is used to cache page data read from the chip under test.
9. The parallel testing system for memory chips according to claim 1, characterized in that, The number of test processors is 12, the number of chips to be tested connected to each test processor is 12, and the number of CDC interfaces is 12.
10. The parallel testing system for memory chips according to claim 9, characterized in that, The chip under test is a Spin-AND Flash chip, the test processor is an STM32H743 series microcontroller, and the serial port expansion chip is an SC16IS752 or SC16IS762 chip.
