Method for dynamically allocating AFM address space and testing method
By dynamically allocating AFM address space, the problem of low utilization of DDR space in ATE is solved, and more efficient address space allocation and storage is achieved, adapting to the needs of different test scenarios, expanding the address storage capacity of a single DUT, and reducing the cost.
Patent Information
- Application Number
- CN202410995339.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-12
AI Technical Summary
When existing automatic test equipment (ATE) is in the memory chip address line, DDR space utilization is low and cannot flexibly adapt to different device characteristics and test scenarios, resulting in data loss and waste of storage space.
A method of dynamically allocating the AFM address space is provided. By entering the configuration information of the DUT to the processor, determining whether the dynamic allocation mode is enabled, dynamically adjusting the logical address space of each DUT based on the configuration information, and optimizing the allocation of the DDR space.
It improves the utilization rate of DDR space, expands the maximum number of addresses that a single DUT can store, saves costs, and adapts to the needs of different test scenarios.
Smart Images

Figure CN118940684A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of integrated circuit automated testing equipment, in particular to a method for dynamically allocating AFM address space and a testing method. Background Art
[0002] In recent years, my country's integrated circuit industry has developed rapidly, the performance and functions of chips have been improved day by day, and the requirements for ATE (Automatic Test Equipment) testers are also more. Among them, the number of address lines of the chip has increased, and the ATE tester needs to be able to store more addresses, which has higher requirements for the logical DDR (Double Data Rate) capacity. Generally speaking, when the ATE tester tests the chip, a comparison result data will be generated. Usually, the comparison result data needs to be stored in an AFM (Address Fail Memory) logical address corresponding to the DDR under the FPGA (Field-Programmable Gate Array). When the sum of the Row and Column of the chip's address line is greater than the sum of the AFM logical addresses of the DDR under the FPGA in the ATE tester, the AFM logical address cannot store data of the maximum physical address length, which will cause data loss.
[0003] Current ATE testers usually limit the data length of each address and evenly distribute the FPGA's DDR space based on the maximum number of DUTs (Device Under Test) supported by the ATE tester. However, in actual use, the number of DUTs tested may be far less than the number of DUTs supported by the ATE tester, resulting in too much redundant DDR space and a waste of storage space. If the number of DUTs is small but the comparison data generated requires more DDR AFM logical addresses to store, the current solution cannot meet this requirement.
[0004] In the prior art, there are some ways to solve the insufficient capacity of DDR, such as increasing the original address space by expanding the capacity of DDR, increasing its actual capacity or changing the data storage format. However, these methods do not fundamentally solve the problem of low DDR space utilization, nor can they flexibly meet different test scenarios according to different DUT characteristics. Summary of the invention
[0005] The object of the present invention is to provide a method and a testing method for dynamically allocating AFM address space to solve the problems raised in the above background technology.
[0006] To achieve the above object, on the one hand, the present invention provides a method for dynamically allocating AFM address space, the method comprising:
[0007] Enter the DUT configuration information into the processor;
[0008] The processor receives the configuration information and determines whether to enable the dynamic allocation mode according to the configuration information;
[0009] If the dynamic allocation mode is not enabled, the processor allocates a logical address space to each DUT according to a default configuration;
[0010] If the dynamic allocation mode is enabled, the processor dynamically adjusts the logical address space allocated to each DUT according to the configuration information.
[0011] Preferably, in the method for dynamically allocating AFM address space, the configuration information includes the number of DUTs, address bit width and configuration switches.
[0012] Preferably, in the method for dynamically allocating AFM address space, the processor is an FPGA.
[0013] Preferably, in the method for dynamically allocating AFM address space, the configuration information of the DUT is input into the processor, including the number of DUTs, address width and configuration information of the configuration switch configured by the host computer, and sent to the processor.
[0014] Preferably, in the method of dynamically allocating AFM address space, if the default configuration can meet the quantity requirement of the DUT, the dynamic allocation mode is not enabled, and the value of the configuration switch is set to false; if the default configuration cannot meet the quantity requirement of the DUT, the dynamic allocation mode is enabled, and the value of the configuration switch is set to true.
[0015] Preferably, in the method for dynamically allocating AFM address space, the default configuration method comprises the steps of:
[0016] When the processor determines, based on the received value of the configuration switch, that dynamic allocation is not enabled;
[0017] The processor evenly divides the DDR space according to the default number of DUTs to obtain an address space allocated to each DUT;
[0018] The processor evenly distributes the address space of the DUT according to a default address bit width to obtain the number of logical addresses allocated to each DUT.
[0019] Preferably, in the method for dynamically allocating AFM address space, the dynamic allocation mode comprises the steps of:
[0020] When the processor determines to enable the dynamic allocation mode according to the received value of the configuration switch;
[0021] The processor configures allocation parameters according to the received number of DUTs;
[0022] The processor equally divides the DDR space according to the allocation parameters to obtain an address space allocated to each DUT;
[0023] The processor evenly distributes the address space of the DUT according to the received address bit width to obtain the number of logical addresses allocated to each DUT.
[0024] Preferably, in the method for dynamically allocating AFM address space, the processor configuring allocation parameters according to the received number of DUTs comprises the steps of:
[0025] Obtain the allocation parameter 2^ for DDR space equalization according to the number of DUTs N ; Among them, 2^ N Belongs to a set that is greater than or equal to the number of DUTs and is the minimum value in the set.
[0026] In addition, in another aspect of the present invention, a test method is also proposed, including the method for dynamically allocating AFM address space as described above, and the test method further includes the steps of:
[0027] After the processor completes the configuration of the logical address of each DUT, it tests the chip and obtains the test results;
[0028] The processor compares the test result with standard data to obtain comparison result data;
[0029] The comparison result data is stored in the DDR space.
[0030] Preferably, in the test method, if the test result is consistent with the standard data, the comparison result data is recorded as 0; if the test result is inconsistent with the standard data, the comparison result data is recorded as 1.
[0031] Compared with the prior art, the present invention has at least the following beneficial effects:
[0032] The present invention adds a new dynamic allocation mode to the existing default configuration, and can determine whether to enable the dynamic allocation mode according to the configuration information; if not enabled, the default configuration mode is enabled, which can save allocation time and have better allocation efficiency; if the dynamic allocation mode is enabled, the utilization rate of the DDR space can be effectively improved and the test scenarios of the DUT address can be increased. In addition, the present invention expands the maximum number of addresses that can be stored in a single DUT without changing the hardware level, saving costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A flowchart of a method for dynamically allocating AFM address space in the present invention;
[0035] Figure 2 is a flow chart of the testing method in the present invention;
[0036] Figure 3 A schematic diagram of a DUT address space using a default configuration method in one embodiment of the present invention;
[0037] Figure 4 FIG. 4 is a schematic diagram of a DUT address space in a dynamic allocation mode according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] A method for dynamically allocating AFM address space and a test method of the present invention will be described in more detail below in conjunction with a schematic diagram, wherein a preferred embodiment of the present invention is shown, and it should be understood that those skilled in the art can modify the present invention described herein while still achieving the advantageous effects of the present invention. Therefore, the following description should be understood as being widely known to those skilled in the art, and not as a limitation of the present invention.
[0039] For the sake of clarity, not all features of the actual embodiments are described. In the following description, well-known functions and structures are not described in detail because they would clutter the invention with unnecessary detail. It should be recognized that in the development of any actual embodiment, a large number of implementation details must be made to achieve the developer's specific goals, such as changing from one embodiment to another according to the limitations of the relevant system or the relevant business. In addition, it should be recognized that such development work may be complex and time-consuming, but it is just a routine task for those skilled in the art.
[0040] The present invention is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. The advantages and features of the present invention will become more apparent from the following description and claims. It should be noted that the drawings are in very simplified form and in non-precise proportions, and are only used to facilitate and clearly assist in illustrating the purpose of the embodiments of the present invention.
[0041] See also Figure 1 On the one hand, this embodiment proposes a method for dynamically allocating AFM address space, the method comprising:
[0042] Enter the DUT configuration information into the processor;
[0043] The processor receives the configuration information and determines whether to enable the dynamic allocation mode according to the configuration information;
[0044] If the dynamic allocation mode is not enabled, the processor allocates a logical address space to each DUT according to a default configuration;
[0045] If the dynamic allocation mode is enabled, the processor dynamically adjusts the logical address space allocated to each DUT according to the configuration information.
[0046] In this embodiment, the processor may be selected as an FPGA. This is because FPGA has the following advantages: Reconfigurability: FPGA can be reprogrammed as needed, so it can be used for a variety of different applications. Fast development time: FPGA development time is shorter than ASIC because it does not require the manufacture of new hardware. Low cost: FPGA can implement a variety of applications without the need for a lot of custom hardware, so it can greatly reduce development costs. High-speed performance: Because FPGAs can implement specific tasks at the hardware level, they are usually faster than software-based solutions.
[0047] Specifically, the configuration information of the DUT is input to the processor, including the number of DUTs, address width and configuration information of the configuration switch configured by the host computer, and sent to the processor. The value of the configuration switch can be selected according to the number of DUTs. If the default configuration can meet the number requirement of the DUTs, the dynamic allocation mode can be disabled and the value of the configuration switch can be set to false. If the default configuration cannot meet the number requirement of the DUTs, the dynamic allocation mode needs to be enabled and the value of the configuration switch can be set to true.
[0048] In a specific example, for example, the number of DUTs entered is 6, and the address width is 8 bits. The number of DUTs configured by default is 16, and the address width configured by default is 32 bits. The number of DUTs configured by default is 16, which is much larger than the number of DUTs 6 and can meet the number requirement of the DUTs. Therefore, it does not matter whether the dynamic allocation mode is enabled or not.
[0049] To facilitate the introduction of the difference between enabling the dynamic allocation mode and not enabling the dynamic allocation mode, the above specific examples will be used for illustration and comparison below.
[0050] When the dynamic allocation mode is not enabled, the value of the configuration switch is set to false when entering the DUT configuration information; for example, the AFM address space in DDR is 4GB, and if it is evenly allocated according to the default configuration of 16 DUTs, the address space size allocated to each DUT is 2 ^31 bit, according to the default address width of 32 bits, the number of logical addresses for each DUT can be further obtained as 2 ^26 For details, please refer to Figure 3 .
[0051] When dynamic allocation is not enabled, the processor directly allocates the address space of each DUT evenly according to the default configuration, which can save the time of dynamic allocation and have better allocation efficiency.
[0052] When the dynamic allocation mode is enabled, the value of the configuration switch is set to true when entering the DUT configuration information; the processor configures the allocation parameters according to the number of the received DUTs, including the steps of:
[0053] Obtain the allocation parameter 2^ for the average allocation of the DDR space according to the number of the DUTs N ; Among them, 2^ N Belongs to a set greater than or equal to the number of DUTs, and is the minimum value in the set. For example, if the number of DUTs is 3, then 2^ 2 >3 and is the minimum value in the set, so N is 2 and the resulting allocation parameter is 4.
[0054] The processor evenly distributes the DDR space according to the allocation parameters to obtain the address space allocated to each DUT; then, the processor evenly distributes the address space of the DUT according to the received address bit width to obtain the number of logical addresses allocated to each DUT.
[0055] Specifically, continue to use the above example for illustration, when the dynamic allocation mode is enabled, the AFM address space in DDR is 4GB, and the number of DUTs is 6, according to 2 ^2 <6<2 ^3, the allocation parameter is 8, and the address space allocated to each DUT is 2 ^32 bit, and then according to the address bit width of 32 bits, the number of logical addresses of each DUT can be further obtained as 2 ^29 For details, please refer to Figure 4 .
[0056] It can be seen that when the dynamic allocation mode is enabled, the optimal allocation parameters will be calculated based on the actual number of DUTs first, and then the processor will evenly allocate the address space of each DUT according to the allocation parameters to obtain the optimal allocation mode. For example, in the above example, when the dynamic allocation mode is not enabled, the number of logical addresses of each DUT is 2 ^26 ; When dynamic allocation mode is enabled, the number of logical addresses per DUT is 2 ^29 ,It can be seen that enabling the dynamic allocation mode can ,expand the maximum number of addresses that a single DUT can store, ,effectively improve the utilization of DDR space.
[0057] In addition, in another aspect of this embodiment, a testing method is also proposed, and the steps of the testing method include:
[0058] After the processor completes the configuration of the logical address of each DUT by using the above-mentioned method of dynamically allocating the AFM address space, the chip is tested to obtain the test results;
[0059] Afterwards, the processor compares the test result with the standard data to obtain comparison result data; and stores the comparison result data in the DDR space.
[0060] Specifically, if the test result is consistent with the standard data, the comparison result data is recorded as 0; if the test result is inconsistent with the standard data, the comparison result data is recorded as 1, so as to facilitate subsequent reading of the comparison result data for further use and analysis.
[0061] To sum up, in a method and test method for dynamically allocating AFM address space provided in an embodiment of the present invention, the default configuration mode can be enabled or the dynamic allocation mode can be enabled according to specific needs; wherein, the default configuration mode can save allocation time and has better allocation efficiency; the dynamic allocation mode can expand the maximum number of addresses that can be stored in a single DUT, effectively improve the utilization rate of the DDR space and increase the test scenarios of the DUT address.
[0062] The above is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any technician in the relevant technical field, without departing from the scope of the technical solution of the present invention, makes any form of equivalent replacement or modification to the technical solution and technical content disclosed in the present invention, which does not depart from the content of the technical solution of the present invention and still falls within the protection scope of the present invention.
Claims
1. A method for dynamically allocating AFM address space, characterized in that: The method comprises: Enter the DUT configuration information into the processor; The processor receives the configuration information and determines whether to enable the dynamic allocation mode according to the configuration information; If the dynamic allocation mode is not enabled, the processor allocates a logical address space to each DUT according to a default configuration; If the dynamic allocation mode is enabled, the processor dynamically adjusts the logical address space allocated to each DUT according to the configuration information.
2. The method for dynamically allocating AFM address space according to claim 1, characterized in that: The configuration information includes the number of DUTs, address width, and configuration switches.
3. The method for dynamically allocating AFM address space according to claim 1, characterized in that: The processor is FPGA.
4. The method for dynamically allocating AFM address space according to claim 2, characterized in that: The configuration information of the DUT is input to the processor, including the number of the DUTs, the address width and the configuration information of the configuration switch configured by the host computer, and sent to the processor.
5. The method for dynamically allocating AFM address space according to claim 4, characterized in that: If the default configuration can meet the quantity requirement of the DUT, the dynamic allocation mode is not enabled, and the value of the configuration switch is set to false; if the default configuration cannot meet the quantity requirement of the DUT, the dynamic allocation mode is enabled, and the value of the configuration switch is set to true.
6. The method for dynamically allocating AFM address space according to claim 4, characterized in that: The method of default configuration comprises the steps of: When the processor determines, based on the received value of the configuration switch, that the dynamic allocation mode is not enabled; The processor evenly distributes the DDR space according to the default number of DUTs to obtain an address space allocated to each DUT; The processor evenly distributes the address space of the DUT according to a default address bit width to obtain the number of logical addresses allocated to each DUT.
7. The method for dynamically allocating AFM address space according to claim 4, characterized in that: The dynamic allocation mode comprises the steps of: When the processor determines to enable the dynamic allocation mode according to the received value of the configuration switch; The processor configures allocation parameters according to the received number of DUTs; The processor evenly distributes the DDR space according to the allocation parameters to obtain an address space allocated to each DUT; The processor evenly distributes the address space of the DUT according to the received address bit width to obtain the number of logical addresses allocated to each DUT.
8. The method for dynamically allocating AFM address space according to claim 7, characterized in that: The processor configures allocation parameters according to the received number of DUTs, including the steps of: Obtain the allocation parameter 2^ for the average allocation of the DDR space according to the number of the DUTs N ; Among them, 2^ N Belongs to a set that is greater than or equal to the number of the DUTs and is the minimum value in the set.
9. A testing method, comprising the method for dynamically allocating AFM address space according to any one of claims 1 to 8, characterized in that: The testing method further comprises the steps of: After the processor completes the configuration of the logical address of each DUT, it tests the chip and obtains the test results; The processor compares the test result with standard data to obtain comparison result data; The comparison result data is stored in the DDR space.
10. The testing method according to claim 9, characterized in that: If the test result is consistent with the standard data, the comparison result data is recorded as 0; if the test result is inconsistent with the standard data, the comparison result data is recorded as 1.
