Automatic generation method and insertion method of built-in self-test model of embedded memory
By generating and inserting characteristic specification files of embedded memories and using the Memory Compiler tool and other technical means, the problem of automatic generation and insertion of built-in self-test models of embedded memories is solved, and fast and convenient self-test model generation and insertion are achieved. Reduced test costs and process replacement complexity.
Patent Information
- Application Number
- CN202410799055.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology is difficult to automatically generate and insert embedded memory built-in self-test models quickly and conveniently, resulting in the need to re-customize the development process when the process is changed. The degree of generalization is low, and the ATE test time and cost are high.
By generating the characteristic specification file of the embedded memory, extracting the specified keyword information, classifying the storage and creating the memory list file, using the Memory Compiler tool and the Mbistarchitect tool to automatically generate and insert the embedded memory built-in self-test model and controller, using Python and bash shell scripts for automation.
It realizes the rapid automatic generation and automatic insertion of built-in self-test models of different types of embedded memories, reduces resource occupation and test costs, and improves the adaptability and universality during process replacement.
Smart Images

Figure CN118709641A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of system-on-chip testability design, and in particular relates to an automatic generation method and an insertion method of a built-in self-test model of an embedded memory. Background Art
[0002] In modern chip design, embedded memory occupies a large area in application-specific integrated circuits (ASICs) and system-on-chips (SoCs). Especially when the chip enters the mass production stage from the MPW trial production stage, the yield of the embedded memory will have an important impact on the yield of the entire chip. In order to avoid the impact of the embedded memory yield being too low on the entire chip, the method of adding redundant design is usually used to diagnose and repair the faults in the test.
[0003] In the chip mass production stage test, an external test machine (Auto Test Equipment, ATE) is generally used to generate test vectors, and the test vectors are injected into the chip as a stimulus to observe the output response to determine whether the chip function fails. With the continuous advancement of technology, embedded memories integrate a large number of storage units per unit area under higher processes, resulting in longer and longer ATE test time, and the test cost is also increasing with the increase in integration. Therefore, the method of directly injecting test vectors into the chip through the ATE machine is not suitable for the test of embedded memories. Since the internal memory units of embedded memories are many and the structure is regularly distributed, algorithms can be designed and built-in self-test logic can be used to automatically generate test vectors, and the result responses can be compared at the same time. In the application of automated testing of the machine, this method only needs to issue automated test instructions on the test machine through the JTAG standard interface to obtain output responses and test results, thereby greatly reducing test time and reducing test costs.
[0004] During the development of integrated circuits, embedded memories tend to be customized and specialized, and are highly correlated with processes, which makes it impossible for process and EDA tool manufacturers to adopt a more unified and universal approach. Therefore, chip developers usually use customized methods to generate memory built-in self-test models and insert self-test controllers. When process changes occur, the development process needs to be customized again, and the degree of universality is low. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the prior art and provide an automatic generation method and an insertion method of an embedded memory built-in self-test model, which can automatically generate and insert an embedded memory built-in self-test model (Memory Built-In Self-Test Model, MBIST model) quickly and conveniently.
[0006] The object of the present invention is achieved through the following technical solutions:
[0007] A method for automatically generating a built-in self-test model of an embedded memory, the method comprising:
[0008] Generate a feature specification file of the embedded memory, the feature specification file including a memory name and specified keyword information, the specified keyword information including a memory type;
[0009] extracting designated keyword information from the feature specification file according to the type of the embedded memory;
[0010] The memories are classified and stored according to the extracted memory types, and respective memory list files are created according to the memory types;
[0011] The designated keyword information extracted from the feature specification file is stored in the corresponding memory list file.
[0012] Furthermore, the types of embedded memory include random access memory and read-only memory;
[0013] When the embedded memory is a random access memory, the specified keyword information further includes the value of the memory depth, the memory data bit width, the number of multiplexers and the write mask;
[0014] When the embedded memory is a read-only memory, the specified keyword information further includes values of memory depth, memory data bit width, number of multiplexers and storage file name.
[0015] Furthermore, the method includes generating a feature specification file of the embedded memory using a Memory Compiler tool.
[0016] On the other hand, the present invention also provides a method for inserting a built-in self-test model of an embedded memory, the method being used to insert a model generated by any of the above methods into the embedded memory, the method comprising:
[0017] According to the memory type, read the memory name in the corresponding memory list file, copy the embedded memory built-in self-test model template and change the template name to the corresponding memory name to obtain the embedded memory built-in self-test model file;
[0018] Extracting designated keyword information according to the memory name, and filling the keyword information into the built-in self-test model file of the embedded memory;
[0019] A controller of an embedded memory built-in self-test model is generated, and pins of the controller are added to insert the embedded memory built-in self-test model into the embedded memory.
[0020] Furthermore, the controller for generating the embedded memory built-in self-test model specifically includes:
[0021] Import the embedded memory built-in self-test model in the Mbistarchitect tool, generate and add the memory built-in self-test controller.
[0022] Further, the adding of the pins of the controller specifically includes:
[0023] The designated pins of the embedded memory built-in self-test model are mapped to obtain a complete embedded memory built-in self-test model, and the embedded memory built-in self-test model is inserted in the Mbistarchitect tool.
[0024] Furthermore, the embedded memory built-in self-test model template is written according to the memory type.
[0025] The beneficial effects of the present invention are:
[0026] The invention innovatively provides a method for automatically generating built-in self-test models (MBIST Models) of different types of embedded memories and automatically inserting built-in self-test controllers (MBISTControllers) by using Python and bash shell scripts. The method is particularly suitable for generating and inserting built-in self-test models of various types of embedded memories based on SMIC CMOS technology, and occupies low resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flowchart of a method for automatically generating a built-in self-test model of an embedded memory according to an embodiment of the present invention;
[0028] Figure 2 It is a flowchart of a method for inserting a built-in self-test model of an embedded memory according to an embodiment of the present invention;
[0029] Figure 3 The invention discloses a flow chart of automatic generation and insertion of a built-in self-test model of a dual-port random access memory. DETAILED DESCRIPTION
[0030] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0031] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present invention.
[0032] During the development of integrated circuits, embedded memories tend to be customized and specialized, and are highly correlated with processes, which makes it impossible for process and EDA tool manufacturers to adopt a more unified and universal approach. Therefore, chip developers usually use customized methods to generate memory built-in self-test models and insert self-test controllers. When process changes occur, the development process needs to be customized again, and the degree of universality is low.
[0033] In order to solve the above technical problems, the following embodiments of the automatic generation method and insertion method of the built-in self-test model of the embedded memory of the present invention are proposed.
[0034] Example 1
[0035] Reference Figure 1 ,like Figure 1 FIG. 1 is a flowchart of a method for automatically generating a built-in self-test model of an embedded memory according to an embodiment of the present invention. The method specifically includes the following steps:
[0036] First, use the Memory Compiler tool to generate feature specification files (spec files) for different types of embedded memories.
[0037] In this embodiment, for random access memory (RAM), the keyword information to be extracted from the feature specification file (spec file) includes: memory type (type), memory depth (words), memory data bit width (bits), number of multiplexers (mux), and write mask (wr_musk).
[0038] For a read-only memory (ROM), the keyword information included in the feature specification file (spec file) includes: memory type (type), memory depth (words), memory data bit width (bits), number of multiplexers (mux), and storage file name (content_file_name).
[0039] The keyword information to be extracted from the feature specification file (spec file) of the embedded memory is matched line by line and the corresponding values of the keywords are extracted. For the random access memory (RAM), the values of the keyword memory type (type), memory depth (words), memory data bit width (bits), number of multiplexers (mux), and write mask (wr_musk) are extracted.
[0040] For the Read-Only Memory (ROM), extract the values of the keywords memory type (type), memory depth (words), memory data bit width (bits), number of multiplexers (mux), and storage file name (content_file_name).
[0041] According to the extracted memory type (type), the memory is classified. The corresponding type types include five categories: sram_sp_hde_rvt_rvt, sram_dp_hde_rvt_rvt, rf_sp_hde_rvt_rvt, rf_fp_hde_rvt_rvt, rom_via_hdd_rvt_rvt, and a memory list file (memory.list) is created according to the memory type.
[0042] The memories saved in five types are classified and counted. After the statistics are completed, the corresponding memory depth (words), memory data bit width (bits), number of multiplexers (mux), write mask (wr_musk) and storage file name (content_file_name) are written into the corresponding memory list file (memory.list).
[0043] Example 2
[0044] Reference Figure 2 ,like Figure 2 The figure is a flowchart of the method for inserting the built-in self-test model of the embedded memory in the present embodiment. The present embodiment pre-provides an embedded memory built-in self-test model (MBIST Model) template written according to the embedded memory type. The method specifically comprises the following steps:
[0045] According to the embedded memory type (type), the corresponding embedded memory name is read from the corresponding memory list file (memory.list), the embedded memory built-in self-test model (MBIST Model) template is copied and the name of the template is changed to the corresponding embedded memory name, and the embedded memory built-in self-test model file (memory.vm) is obtained.
[0046] According to the embedded memory name corresponding to the memory list file (memory.list), extract the values of keyword information such as memory depth (words), memory data bit width (bits), number of multiplexers (mux), write mask (wr_musk) and storage file name (content_file_name), and fill the value into the embedded memory built-in self-test model file (memory.vm).
[0047] Import the embedded memory built-in self-test model (MBIST Model) in the Mbistarchitect tool, generate and add the memory built-in self-test controller (MBIST Controller).
[0048] Map some pins (bist_clk, bist_mode, bist_done and bist_fail) of the memory built-in self-test controller (MBIST Controller) to obtain a complete memory built-in self-test model (MBISTmodel), and finally complete the insertion of the memory built-in self-test model (MBIST model) in the Mbistarchitect tool.
[0049] Example 3
[0050] The present embodiment provides a method for automatically generating and inserting a built-in self-test model (MBISTModel) for implementing a dual-port random access memory (DPRAM).
[0051] Reference Figure 3 ,like Figure 3 FIG. 1 is a flowchart of automatic generation and insertion of a dual-port random access memory built-in self-test model in this embodiment. The method specifically includes the following steps:
[0052] First, use the Memory Compiler tool to generate the feature specification file (spec file) of the embedded memory, namely: "SM40LLP_RAMDP2048X8M8MSK.spec".
[0053] Run the python script "create_bist_model.py" to read the data in the embedded memory feature specification file "SM40LLP_RAMDP2048X8M8MSK.spec" line by line, extract the keyword information, and store the extracted key information value in dp_sram.list according to the embedded memory type value (type). At this point, the automatic generation of the dual-port random access memory built-in self-test model is completed.
[0054] Copy the MBIST Model template of DPRAM, extract the parameter values in dp_sram.list, fill the parameter values into the MBIST Model template, and obtain the embedded memory built-in self-test model file (memory.vm).
[0055] Import the dual-port random access memory built-in self-test model (MBISTModel) in the Mbistarchitect tool, generate and add the memory built-in self-test controller (MBIST Controller).
[0056] Map some pins (bist_clk, bist_mode, bist_done and bist_fail) of the memory built-in self-test controller (MBIST Controller) to obtain a complete dual-port random access memory (DPRAM) built-in self-test model (MBIST Model).
[0057] Finally, the built-in self-test model (MBIST Model) insertion operation is performed on the dual-port random access memory (DPRAM).
[0058] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for automatically generating a built-in self-test model for an embedded memory, characterized in that: The method comprises: Generate a feature specification file of the embedded memory, the feature specification file including a memory name and specified keyword information, the specified keyword information including a memory type; extracting designated keyword information from the feature specification file according to the type of the embedded memory; The memories are classified and stored according to the extracted memory types, and respective memory list files are created according to the memory types; The designated keyword information extracted from the feature specification file is stored in the corresponding memory list file.
2. The method for automatically generating a built-in self-test model for an embedded memory as claimed in claim 1, wherein: The types of embedded memory include random access memory and read-only memory; When the embedded memory is a random access memory, the specified keyword information further includes the value of the memory depth, the memory data bit width, the number of multiplexers and the write mask; When the embedded memory is a read-only memory, the specified keyword information also includes values of memory depth, memory data bit width, number of multiplexers and storage file name.
3. The method for automatically generating an embedded memory built-in self-test model as claimed in claim 1, characterized in that: The method includes generating a feature specification file of the embedded memory by using a Memory Compiler tool.
4. A method for inserting a built-in self-test model of an embedded memory, characterized in that: The method is used to insert a model generated by any one of the methods of claims 1 to 3 into an embedded memory, and the method comprises: According to the memory type, read the memory name in the corresponding memory list file, copy the embedded memory built-in self-test model template and change the template name to the corresponding memory name to obtain the embedded memory built-in self-test model file; Extracting designated keyword information according to the memory name, and filling the keyword information into the built-in self-test model file of the embedded memory; A controller of an embedded memory built-in self-test model is generated, and pins of the controller are added to insert the embedded memory built-in self-test model into the embedded memory.
5. The method for inserting an embedded memory built-in self-test model as claimed in claim 4, characterized in that: The controller for generating the embedded memory built-in self-test model specifically includes: Import the embedded memory built-in self-test model in the Mbistarchitect tool, generate and add the memory built-in self-test controller.
6. The method for inserting an embedded memory built-in self-test model as claimed in claim 4, characterized in that: The adding of the pins of the controller specifically includes: The designated pins of the embedded memory built-in self-test model are mapped to obtain a complete embedded memory built-in self-test model, and the embedded memory built-in self-test model is inserted in the Mbistarchitect tool.
7. The method for inserting an embedded memory built-in self-test model as claimed in claim 4, characterized in that: The embedded memory built-in self-test model template is written according to the memory type.
