Doping concentration file generation method and device and electronic equipment

By constructing a KD tree and performing a fast search, the low efficiency and long time-consuming problems caused by sequential traversal in the existing technology are solved, and the rapid positioning of the new topology grid nodes on the original topology grid and the efficient doping concentration file are achieved. generate.

CN118627291APending Publication Date: 2024-09-10BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410747506.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing technology uses a sequential traversal method when determining whether a node in a new topology grid falls into a triangle of the original topology grid, resulting in low efficiency and long time consumption.

Method used

A KD tree is constructed based on the specified point coordinates in all graphics grids in the original topology grid. The KD tree is used to search for the target graphics grid corresponding to the coordinates of each node in the new topology grid in the original topology grid, and based on The node doping concentration of each target graphics grid is interpolated for each node in the new topology grid to form a new doping concentration file.

Benefits of technology

The rapid positioning of new topology grid nodes on the original topology grid and the rapid generation of doping concentration are achieved, which improves efficiency and reduces time-consuming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627291A
    Figure CN118627291A
Patent Text Reader

Abstract

The invention provides a doping concentration file generation method and device and electronic equipment, and belongs to the technical field of computers. The method comprises the following steps: acquiring all node coordinates in a new topological structure grid; constructing a KD tree based on the coordinates of the specified points in all the graphic grids in the original topological structure grid; searching a target graphic grid corresponding to each node coordinate in the new topological structure grid in the original topological structure grid based on the KD tree; and interpolating each node coordinate in the new topological structure grid based on the node doping concentration of each target graph grid to obtain the doping concentration of all node coordinates in the new topological structure grid so as to form a new doping concentration file. Compared with the prior art in which triangular grids of an original topological structure are traversed in sequence, the method is low in process efficiency and long in time consumption. According to the method, rapid search of the original graphic grid is established in a KD tree mode, and rapid positioning of the nodes of the new topological structure grid on the original topological structure grid is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method for generating a doping concentration file, a device for generating a doping concentration file and an electronic device. Background Art

[0002] When using different solvers to simulate the device electrical system of semiconductor devices, due to the different solving accuracy and capabilities of different solvers, in order to ensure that different solvers can solve normally, it is necessary to perform different mesh divisions on the same geometric model to adapt to different solvers. This process also involves mapping the doping concentration file from the original topology mesh to the new topology mesh.

[0003] Taking a two-dimensional triangular mesh as an example, the existing method is to read the mesh of the original topology structure into memory, traverse the nodes in the new topology structure mesh, determine whether the node in the new topology structure mesh falls within a specific triangle in the original topology structure mesh, and use the three vertices of the triangle to perform interpolation to obtain the doping concentration at the node in the new topology structure mesh, and finally obtain a doping concentration file that matches the new topology structure mesh.

[0004] However, when determining whether a node in the new topology structure grid falls into a specific triangle in the original topology structure grid, the prior art uses a method of sequentially traversing the triangles in the original topology structure grid, and the entire process is inefficient and time-consuming. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a doping concentration file generation method, a doping concentration file generation device and an electronic device to solve the problem that when judging whether a node in a new topological structure grid falls into a specific triangle in an original topological structure grid, the existing technology adopts a method of sequentially traversing the triangles in the original topological structure grid, and the whole process is inefficient and time-consuming.

[0006] In order to achieve the above object, an embodiment of the present invention provides a method for generating a doping concentration file, comprising: Get the coordinates of all nodes in the new topology grid; Construct a KD tree based on the coordinates of the specified points in all graphic grids in the original topological structure grid; Based on the KD tree, search for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid in the original topological structure grid; Each node coordinate in the new topological structure grid is interpolated based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

[0007] Optionally, constructing a KD tree based on the coordinates of designated points in all graphic grids in the original topological structure grid includes: Repeat the following steps until the preset termination condition is reached: Determine the segmentation dimension; The coordinates of the designated point in the current graphic grid are divided into a left subtree and a right subtree based on the set value on the split dimension; the set value includes any one of the median, the average value, and the average value of the maximum value and the minimum value on the split dimension; The coordinate value of any specified point in the left subtree in the segmentation dimension is less than the set value, and the coordinate value of any specified point in the right subtree in the segmentation dimension is greater than or equal to the set value.

[0008] Optionally, searching for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid in the original topological structure grid based on the KD tree includes: Performing a nearest neighbor search on the coordinates of the first node in the new topological structure grid in a direction from the root node of the KD tree to the terminal leaf node to obtain the coordinates of the designated point of the first terminal leaf node of the KD tree; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the first terminal leaf node are located, determining the graphical grid where the designated point coordinates of the first terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

[0009] Optionally, after performing a nearest neighbor search on the coordinates of the first node in the new topological structure grid in the direction from the root node of the KD tree to the terminal leaf node to obtain the coordinates of the designated point of the first terminal leaf node of the KD tree, the method further includes: In the case where the coordinates of the first node in the new topological structure grid are not located in the graphical grid where the coordinates of the designated point of the first terminal leaf node are located, starting from the root node of the first terminal leaf node, a nearest neighbor search is performed on the coordinates of the first node in the new topological structure grid along a new search path to obtain the coordinates of the designated point of the second terminal leaf node of the KD tree; wherein the new search path is different from the search path from the root node of the first terminal leaf node to the first terminal leaf node; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the second terminal leaf node are located, determining the graphical grid where the designated point coordinates of the second terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

[0010] Optionally, interpolating each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file includes: Determine the Lagrangian basis functions of all nodes of the target graphic grid based on all node coordinates of the target graphic grid and the first node coordinates in the new topological structure grid; Based on the Lagrangian basis functions of all the nodes and the node doping concentrations of all the nodes, the doping concentration of the first node coordinates is determined; wherein the first node coordinates are any node coordinates in the new topological structure grid.

[0011] On the other hand, an embodiment of the present invention further provides a doping concentration file generating device, comprising: An acquisition module is used to obtain the coordinates of all nodes in the new topological structure grid; A construction module is used to construct a KD tree based on the coordinates of specified points in all graphic grids in the original topological structure grid; A search module, used for searching, based on the KD tree, for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid in the original topological structure grid; The generation module is used to interpolate each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

[0012] Optionally, constructing a KD tree based on the coordinates of designated points in all graphic grids in the original topological structure grid includes: Repeat the following steps until the preset termination condition is reached: Determine the segmentation dimension; The coordinates of the designated point in the current graphic grid are divided into a left subtree and a right subtree based on the set value on the split dimension; the set value includes any one of the median, the average value, and the average value of the maximum value and the minimum value on the split dimension; The coordinate value of any specified point in the left subtree in the segmentation dimension is less than the set value, and the coordinate value of any specified point in the right subtree in the segmentation dimension is greater than or equal to the set value.

[0013] Optionally, searching for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid in the original topological structure grid based on the KD tree includes: Performing a nearest neighbor search on the coordinates of the first node in the new topological structure grid in a direction from the root node of the KD tree to the terminal leaf node to obtain the coordinates of the designated point of the first terminal leaf node of the KD tree; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the first terminal leaf node are located, determining the graphical grid where the designated point coordinates of the first terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

[0014] Optionally, after performing a nearest neighbor search on the coordinates of the first node in the new topological structure grid in the direction from the root node of the KD tree to the terminal leaf node to obtain the coordinates of the designated point of the first terminal leaf node of the KD tree, the method further includes: In the case where the coordinates of the first node in the new topological structure grid are not located in the graphical grid where the coordinates of the designated point of the first terminal leaf node are located, starting from the root node of the first terminal leaf node, a nearest neighbor search is performed on the coordinates of the first node in the new topological structure grid along a new search path to obtain the coordinates of the designated point of the second terminal leaf node of the KD tree; wherein the new search path is different from the search path from the root node of the first terminal leaf node to the first terminal leaf node; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the second terminal leaf node are located, determining the graphical grid where the designated point coordinates of the second terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

[0015] Optionally, interpolating each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file includes: Determine the Lagrangian basis functions of all nodes of the target graphic grid based on all node coordinates of the target graphic grid and the first node coordinates in the new topological structure grid; Based on the Lagrangian basis functions of all the nodes and the node doping concentrations of all the nodes, the doping concentration of the first node coordinates is determined; wherein the first node coordinates are any node coordinates in the new topological structure grid.

[0016] Optionally, the coordinates of the designated point in the graphic grid include any one of barycentric coordinates, orthocentric coordinates and incenter coordinates in the graphic grid.

[0017] On the other hand, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for generating a doping concentration file when executing the program.

[0018] On the other hand, the present invention further provides a machine-readable storage medium having a computer program stored thereon, and the computer program implements the above-mentioned method for generating a doping concentration file when executed by a processor.

[0019] On the other hand, the present invention also provides a computer program product, including a computer program, which implements the above-mentioned doping concentration file generation method when executed by a processor.

[0020] Through the above technical solution, the embodiment of the present invention constructs a KD tree based on the coordinates of the specified points in all the graphic grids in the original topological structure grid, searches out the target graphic grid corresponding to each node coordinate in the new topological structure grid in the original topological structure grid based on the KD tree; and interpolates each node coordinate in the new topological structure grid based on the node doping concentration of each graphic grid. Compared with the prior art method of sequentially traversing the triangular grid of the original topological structure, the whole process is inefficient and time-consuming. The embodiment of the present invention uses the KD tree method to establish a fast search of the original graphic grid, and realizes the fast positioning of the nodes of the new topological structure grid on the original topological structure grid.

[0021] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings: Figure 1 It is a schematic flow chart of the method for generating a doping concentration file provided by the present invention; Figure 2 It is a schematic diagram of the process of constructing a KD tree provided by the present invention; Figure 3 It is a structural schematic diagram of data partitioning through a KD tree provided by the present invention; Figure 4 It is a schematic diagram of the structure of the constructed KD tree provided by the present invention; Figure 5 It is a structural schematic diagram of interpolating node coordinates in a new topological structure grid provided by the present invention; Figure 6 It is a structural schematic diagram of the doping concentration file generating device provided by the present invention; Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0023] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0024] Method Embodiment Please refer to Figure 1 , an embodiment of the present invention provides a method for generating a doping concentration file, comprising: Step 100: Obtain the coordinates of all nodes in the new topological structure grid.

[0025] The doping concentration file of the embodiment of the present invention can be obtained by TCAD (Technology Computer-Aided Design) device simulation software. When using different solver products to perform device electrical simulation on semiconductor devices, due to the different solving accuracy and capabilities of different solvers, in order to ensure that different solvers can solve normally, it is necessary to perform different mesh divisions on the same geometric model to adapt to different solvers. Therefore, the new topology structure grid of the embodiment of the present invention adopts a mesh division method different from the original topology structure grid. For example, if the original topology structure grid adopts a triangular mesh mesh division method, the new topology structure grid can adopt a quadrilateral mesh mesh division method. The electronic device can read the new topology structure grid into the memory, and then traverse the nodes in the new topology structure grid to obtain all the node coordinates in the new topology structure grid.

[0026] Step 200: construct a KD tree based on the coordinates of the designated points in all the graphic grids in the original topological structure grid.

[0027] The graphic mesh in the original topological structure mesh may be a two-dimensional graphic mesh, such as a triangular mesh, a quadrilateral mesh, etc. In other embodiments, the graphic mesh in the original topological structure mesh may also be a three-dimensional graphic mesh, such as a tetrahedral mesh, etc. In the embodiment of the present invention, the graphic mesh in the original topological structure mesh is described by taking a triangular mesh as an example.

[0028] The electronic device first calculates the coordinates of the specified points in all triangular meshes to represent each triangular mesh through the coordinates of the specified points in the triangular mesh, and then uses the coordinates of the specified points in all triangular meshes as the basis for dividing the coordinates to construct a KD (K-Dimension tree). The coordinates of the specified points in the triangular mesh can be various points that reflect the properties of the triangle, such as the orthocenter coordinates.

[0029] When constructing a KD tree, the core idea is to recursively divide the coordinates of the specified points in all triangular meshes to form a series of hyper-rectangular regions. Each node represents such a hyper-rectangular region, and the region contains the coordinates of the specified points in some triangular meshes. In other words, the core idea of ​​the KD tree is to construct a binary tree by recursively dividing the dimensions and points, so that each node of the tree corresponds to a hyper-rectangular region, and the coordinates of the specified points in the triangular mesh contained in each node are all within the hyper-rectangular region. This division method helps to improve the efficiency of operations such as kNN (k-nearest neighbors) search, because the search direction can be selected by comparing the coordinate values ​​of the target point and the structure of the tree.

[0030] Step 300: Search for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid in the original topological structure grid based on the KD tree.

[0031] The KD tree is an extension of the binary search tree and is mainly used for searching multidimensional spatial data, such as range search and nearest neighbor search. Each leaf node in the KD tree includes the coordinates of specified points in multiple triangular meshes that meet the partitioning conditions (for example, less than a set threshold on the x-axis). By comparing the node coordinates in the new topological structure mesh with the partitioning conditions of each leaf node, the approximate super-rectangular area to which the node coordinates in the new topological structure mesh belong in the original topological structure mesh can be obtained. When the terminal leaf node of the KD tree has only one specified point coordinate in a triangular mesh, and one of the node coordinates in the new topological structure mesh happens to be in the triangular mesh corresponding to the specified point coordinates of the terminal leaf node, then the triangular mesh corresponding to the specified point coordinates of the terminal leaf node of the KD tree is the target triangular mesh corresponding to the node coordinates in the new topological structure mesh in the original topological structure mesh.

[0032] Step 400: interpolate each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

[0033] When obtaining the target triangular mesh corresponding to the original topological structure mesh for each node coordinate in the new topological structure mesh, unlike the traditional spline interpolation method and the linear interpolation method, the embodiment of the present invention can interpolate the coordinates of each node in the new topological structure mesh using the node doping concentration of the target triangular mesh through the element transfer method, rather than a simple point cloud interpolation method, which is more suitable for numerical calculation, thereby realizing the mapping of the doping concentration of the nodes of the original topological structure mesh to the new topological structure mesh, forming a new doping concentration file of the new topological structure mesh that is adapted to different solvers.

[0034] Therefore, the embodiment of the present invention firstly establishes a KD tree-based fast index for the finite volume grid in the .tdr file in the memory through the strategy of "trading space for time", so as to find the positions of all node coordinates in the new topological structure grid in the original topological structure; then uses the "Element Transfer Method" (ETM) in numerical calculation to interpolate the doping concentration of all nodes in the new topological structure grid; finally, a doping concentration file adapted to the new topological structure grid is obtained.

[0035] The embodiment of the present invention constructs a KD tree based on the coordinates of the specified points in all the graphic grids in the original topological structure grid, searches for the target graphic grid corresponding to the coordinates of each node in the new topological structure grid in the original topological structure grid based on the KD tree; and interpolates the coordinates of each node in the new topological structure grid based on the node doping concentration of each graphic grid. Compared with the prior art method of sequentially traversing the triangular grid of the original topological structure, the whole process is inefficient and time-consuming. The embodiment of the present invention uses the KD tree method to establish a fast search of the original graphic grid, and realizes the fast positioning of the nodes of the new topological structure grid on the original topological structure grid.

[0036] In other aspects of the embodiments of the present invention, step 200, constructing a KD tree based on the coordinates of designated points in all triangular meshes in the original topological structure mesh, includes: Repeat the following steps until a preset termination condition is reached: determine a split dimension; divide the coordinates of a specified point in the current graphic grid into a left subtree and a right subtree based on a set value on the split dimension; the set value includes any one of the median, average, and average of the maximum and minimum values ​​on the split dimension. The coordinate value of any specified point in the left subtree on the split dimension is less than the set value, and the coordinate value of any specified point in the right subtree on the split dimension is greater than or equal to the set value.

[0037] Specifically, when constructing a KD tree, the core idea of ​​the embodiment of the present invention is to recursively divide the data space into a series of super-rectangular regions, each node represents such a super-rectangular region, and the region contains some data points. Figure 2 , this process mainly includes the following steps: Select the split dimension: In each recursion, select a dimension as the split dimension. You can select it in turns or according to some criteria. The purpose of selecting the split dimension is to divide the data set into two subsets along the dimension.

[0038] Select the split point: After selecting the split dimension, you need to determine a split point. Usually the median on the dimension is selected as the split point, so that the data set can be divided into two left and right subsets, the left subset contains data less than the median, and the right subset contains data greater than the median. In other embodiments, the average value on the dimension can also be selected as the split point, so that the data set can be divided into two left and right subsets, the left subset contains data less than the average value, and the right subset contains data greater than or equal to the average value. In other embodiments, the average value of the maximum and minimum values ​​on the dimension can also be selected as the split point, so that the data set can be divided into two left and right subsets, the left subset contains data less than the average value of the maximum and minimum values, and the right subset contains data greater than or equal to the average value of the maximum and minimum values.

[0039] Recursively construct left and right subtrees: Divide the data set into left and right subsets according to the selected split dimension and split point, and recursively construct left and right subtrees respectively. The left subtree contains data that is less than the split point on the split dimension, and the right subtree contains data that is greater than or equal to the split point.

[0040] Alternating split dimensions: During the recursive construction process, the split dimensions are usually selected alternately, that is, if the current node selects a certain dimension for splitting, then its child node selects the next dimension for splitting. This helps to maintain the balance of the KD tree.

[0041] Recursive termination condition (i.e. preset termination condition): The termination condition of recursive construction can be that the number of points in the data set is less than a certain threshold (for example, less than 2), or the depth of the tree reaches a predetermined maximum depth. This can prevent the KD tree from being built too deep, affecting the search efficiency.

[0042] In order to more vividly understand the method for constructing a KD tree in the embodiment of the present invention, the following is given: Figure 3 Specific instructions. Figure 3 The nodes on the graph correspond to each leaf node when the KD tree is indexed. The KD tree index table can be established by alternating horizontally and then vertically (x->y->x->…), with the median of each sorting dimension as the root node. Green, red, and blue are the three layers of root nodes from top to bottom in the space. The arrows point to the order in which the index table is established, and the spatial index is established in a nested manner.

[0043] In one embodiment, constructing a KD tree may be represented by the following code: struct SKNode { int axis; / / Divide the dimension (1 is x, 2 is y) double median; / / median SKNode* left; / / Left subtree SKNode* right; / / right subtree std::vector <int>SKNodeNum; triangleindexV Med_tri; SKNode(int _axis, double _median) : axis(_axis), median(_median),left(NULL), right(NULL) {} }; Among them, axis represents the division dimension of the root node. This parameter determines the reference direction of the left subtree and the right subtree of the node; median represents the division coordinate basis of the root node.

[0044] It should be noted that when the original topological structure grid is a three-dimensional graphic grid, such as a tetrahedral grid, when constructing the KD tree, the order of x-axis first, y-axis second, and z-axis third can be cyclically alternating (x->y->z->x->…), and the median of each sorting dimension can be used as the root node to establish a KD tree index table.

[0045] In some embodiments, the coordinate division basis of the coordinates of the specified point in the graphic mesh may include any one of the barycentric coordinates, orthocentric coordinates, and in-center coordinates in the graphic mesh. When the graphic mesh is a triangular mesh, the coordinate division basis of the coordinates of the specified point in the triangular mesh may include any one of the barycentric coordinates, orthocentric coordinates, and in-center coordinates in the triangular mesh. When the graphic mesh is a tetrahedral mesh, the coordinate division basis of the coordinates of the specified point in the tetrahedral mesh may include any one of the barycentric coordinates, orthocentric coordinates, and in-center coordinates in the tetrahedral mesh.

[0046] The embodiment of the present invention is explained by taking the centroid coordinates of the triangle mesh as an example, and uses the centroid coordinates of the triangle mesh of Sentaurus TCAD as the basis for division coordinates, which is also the center coordinate of the reference direction of the split position of the left subtree and the right subtree. Left and right represent the left subtree and the right subtree corresponding to the root node respectively. SKNodeNum represents the numbering vector of all triangle meshes in the area divided by the root node. This numbering vector is required when sorting the KD tree. Med_tri represents the root node triangle mesh. It stores the triangle mesh information on the root node, and the data structure is represented by the following code: struct triangleindexV { int a, b, c; double coord[3][NDIM-1]; int tri_num; }; Where a, b, c represent the global node numbers respectively; coord represents the coordinates of each node; tri_num represents the global number of the triangle mesh.

[0047] The embodiment of the present invention constructs a KD tree based on the coordinates of the specified points in all the triangular meshes in the original topological structure mesh. Due to the binary tree structure of the KD tree, each node of the KD tree corresponds to a super rectangular area, and the coordinates of the specified points in the triangular mesh contained in each node are all located in the super rectangular area. This division method helps to improve the efficiency of the search, because the search direction can be selected by comparing the coordinate value of the target node and the structure of the tree, so as to quickly obtain the target triangular mesh corresponding to each node coordinate in the new topological structure mesh in the original topological structure mesh, thereby realizing the rapid search of the original triangular mesh and the rapid positioning of the nodes of the new topological structure mesh on the original topological structure mesh.

[0048] In other aspects of the embodiments of the present invention, step 300, searching for the target graphic grid corresponding to the original topological structure grid for each node coordinate in the new topological structure grid based on the KD tree, includes: performing a nearest neighbor search for the first node coordinate in the new topological structure grid in the direction from the root node of the KD tree to the terminal leaf node to obtain the designated point coordinates of the first terminal leaf node of the KD tree; when the first node coordinate in the new topological structure grid is located in the graphic grid where the designated point coordinates of the first terminal leaf node are located, determining the graphic grid where the designated point coordinates of the first terminal leaf node are located as the target graphic grid; wherein the first node coordinates are any node coordinates in the new topological structure grid.

[0049] Specifically, for example, if the node coordinates in the new topology structure grid are (1, 3), a nearest neighbor search is performed on the first node coordinates in the new topology structure grid in the direction from the root node of the KD tree to the terminal leaf node, and the first terminal leaf node of the KD tree (for example, a leaf node with a division condition of less than 2 on the x-axis) is the approximate super-rectangular area where the node coordinates (1, 3) in the new topology structure grid are located. And there is only one specified point coordinate in the first terminal leaf node. In the case where the first node coordinates in the new topology structure grid are located in the triangular grid where the specified point coordinates of the first terminal leaf node are located, the triangular grid where the specified point coordinates of the first terminal leaf node are located is determined as the target graphic grid. Among them, to determine whether the first node coordinates in the new topology structure grid are located in the triangular grid where the specified point coordinates of the first terminal leaf node are located, the determination can be made based on the first node coordinates in the new topology structure grid and the three vertex coordinates of the triangular grid where the specified point coordinates of the first terminal leaf node are located by a determinant method.

[0050] It should be noted that the coordinates of the designated point in the triangular mesh include any one of the barycentric coordinates, orthocentric coordinates and in-center coordinates in the triangular mesh. In the embodiment of the present invention, the coordinates of the designated point in the triangular mesh can be set as the barycentric coordinates in the triangular mesh.

[0051] The embodiment of the present invention characterizes the triangular mesh by the coordinates of specified points within the triangular mesh, which facilitates the construction of a KD tree based on a smaller amount of data to perform nearest neighbor search, improves search efficiency, and realizes the rapid indexing of the triangular mesh in the original topological structure mesh, and realizes the rapid positioning of all node coordinates in the new topological structure mesh on the original topological structure mesh.

[0052] In other aspects of the embodiments of the present invention, after performing a nearest neighbor search on the first node coordinates in the new topological structure grid in the direction from the root node of the KD tree to the terminal leaf node to obtain the designated point coordinates of the first terminal leaf node of the KD tree, it also includes: when the first node coordinates in the new topological structure grid are not located in the graphic grid where the designated point coordinates of the first terminal leaf node are located, taking the root node of the first terminal leaf node as the starting point, performing a nearest neighbor search on the first node coordinates in the new topological structure grid along a new search path to obtain the designated point coordinates of the second terminal leaf node of the KD tree; wherein the new search path is different from the search path from the root node of the first terminal leaf node to the first terminal leaf node; when the first node coordinates in the new topological structure grid are located in the graphic grid where the designated point coordinates of the second terminal leaf node are located, determining the graphic grid where the designated point coordinates of the second terminal leaf node are located as the target graphic grid; wherein the first node coordinates are any node coordinates in the new topological structure grid.

[0053] In order to find the corresponding node in the original topological structure grid, the embodiment of the present invention uses the KD tree with the center of gravity coordinates as the division basis to perform the nearest neighbor search. In addition, it is necessary to recursively judge whether the triangle grid where the coordinates of the specified point of the first terminal leaf node are located is not the target graphic grid. Please refer to Figure 4 , assuming that the first terminal leaf node ( Figure 4 If the coordinates of the target point cannot be found in the leaf node 1), then trace back to the root node of the current leaf node ( Figure 4 In the example, the first node coordinate in the new topological structure grid is located in the graphic grid where the specified point coordinate of the second terminal leaf node 4 is located, and the graphic grid where the specified point coordinate of the second terminal leaf node 4 is located is determined as the target graphic grid. Similarly, to determine whether the first node coordinate in the new topological structure grid is located in the triangular grid where the specified point coordinate of the second terminal leaf node is located, the determinant method can be used to determine the three vertex coordinates of the triangular grid where the first node coordinate in the new topological structure grid and the specified point coordinate of the second terminal leaf node are located.

[0054] In addition, when the triangular mesh where the coordinates of the specified point of leaf node 4 are located is not the target graphic mesh, it is necessary to trace back layer by layer (in the direction from node 2 to node 4, and from node 4 to node 8) until a triangular mesh that meets the requirements is found. From a geometric point of view, since the target triangular mesh must be near the nearest neighbor (leaf node 1), this recursive judgment will not affect the query complexity of the KD tree. Therefore, in the embodiment of the present invention, when the target triangular mesh is not found in the leaf node where the node is located, the target triangular mesh corresponding to the node of the new topological structure mesh is searched by tracing back layer by layer along the direction from bottom to top of the KD tree, thereby improving the positioning accuracy of the nodes of the new topological structure mesh on the original topological structure mesh.

[0055] In other aspects of the embodiments of the present invention, step 400, based on the node doping concentration of each target triangular mesh, interpolates each node coordinate in the new topological structure mesh to obtain the doping concentration of all node coordinates in the new topological structure mesh to form a new doping concentration file, including: determining the Lagrangian basis functions of all nodes of the target graphic mesh based on all node coordinates of the target graphic mesh and the first node coordinate in the new topological structure mesh; determining the doping concentration of the first node coordinate based on the Lagrangian basis functions of all nodes and the node doping concentration of all nodes; wherein the first node coordinate is an arbitrary node coordinate in the new topological structure mesh.

[0056] Different from the traditional spline interpolation method and the linear interpolation method, the present invention uses the mesh topology information to perform interpolation through the element transfer method rather than the simple point cloud interpolation method, which is more suitable for numerical calculation.

[0057] For example, in the embodiment of the present invention, It is the original topological structure grid of TCAD. For a new topology mesh, the element transfer method can be divided into the following steps: Through KD tree index, for Any node on A , find its The "background unit" (i.e. the target triangle mesh) , . Find the node A In the "background unit" The local coordinates on (i.e., the Lagrangian basis functions of the three nodes of the target triangular mesh). Assume that the nodes A The global coordinates of the node , the global coordinates of the three nodes corresponding to the "background unit" are , , , then the local coordinates The following matrix relationship is satisfied: ; Thus, based on the matrix relationship between the three node coordinates of the target triangular mesh and the node coordinates in the new topological structure mesh, the Lagrangian basis functions of the three nodes of the target triangular mesh can be determined. , , .

[0058] Assume that the physical quantities (e.g. doping concentration) at the three nodes of the target triangular mesh correspond to q 1, q 2 and q 3, the linear Lagrangian basis functions corresponding to the three nodes are , , , if a high-order Lagrangian basis function is used, it will be The position value can be determined by the above Lagrange basis function. The physical quantity (doping concentration) at is: ; In the above formula is a mesh projection operator, which represents the value of the physical quantity in the new topological structure mesh, i=3. The embodiment of the present invention determines the doping concentration of the node coordinates in the new topological structure mesh based on the Lagrangian basis functions of the three nodes of the target triangular mesh and the node doping concentration of the three nodes. The doping concentration of the remaining node coordinates of the new topological structure mesh can also be obtained by interpolation using the above method, thereby obtaining the doping concentration of all node coordinates of the new topological structure mesh. Please refer to Figure 5 The figure shows the original topology mesh B ( ) find the new topology mesh A ( ) on the node.

[0059] After obtaining the physical values ​​of all node coordinates in the new topology mesh from the background unit (target triangle mesh), at any point in the new topology mesh The value can be obtained by The projection value on the topology is obtained by interpolation of the Lagrangian basis function This is the value that the solver can resolve: ; in, Represents the Lagrangian basis function of the target triangular mesh corresponding to any point in the new topology mesh; It represents the doping concentration of the three nodes of the corresponding triangular mesh of the new topology structure mesh at any point of the new topology structure mesh.

[0060] The embodiment of the present invention uses the "Element Transfer Method" (ETM) in numerical calculation to interpolate the doping concentration of each node position in the new topological structure grid, and finally obtains a doping concentration file adapted to the new topological structure grid.

[0061] Device Embodiment Please refer to Figure 6 On the other hand, an embodiment of the present invention further provides a doping concentration file generating device, comprising: An acquisition module 601 is used to acquire coordinates of all nodes in a new topological structure grid; A construction module 602 is used to construct a KD tree based on the coordinates of the specified points in all the graphic grids in the original topological structure grid; A search module 603 is used to search for a target graphic grid corresponding to the original topological structure grid by the coordinates of each node in the new topological structure grid based on the KD tree; The generation module 604 is used to interpolate each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

[0062] Optionally, constructing a KD tree based on the coordinates of designated points in all graphic grids in the original topological structure grid includes: Repeat the following steps until the preset termination condition is reached: Determine the segmentation dimension; The coordinates of the designated point in the current graphic grid are divided into a left subtree and a right subtree based on the set value on the split dimension; the set value includes any one of the median, the average value, and the average value of the maximum value and the minimum value on the split dimension; The coordinate value of any specified point in the left subtree in the segmentation dimension is less than the set value, and the coordinate value of any specified point in the right subtree in the segmentation dimension is greater than or equal to the set value.

[0063] Optionally, searching for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid in the original topological structure grid based on the KD tree includes: Performing a nearest neighbor search on the coordinates of the first node in the new topological structure grid in a direction from the root node of the KD tree to the terminal leaf node to obtain the coordinates of the designated point of the first terminal leaf node of the KD tree; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the first terminal leaf node are located, determining the graphical grid where the designated point coordinates of the first terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

[0064] Optionally, after performing a nearest neighbor search on the coordinates of the first node in the new topological structure grid in the direction from the root node of the KD tree to the terminal leaf node to obtain the coordinates of the designated point of the first terminal leaf node of the KD tree, the method further includes: In the case where the coordinates of the first node in the new topological structure grid are not located in the graphical grid where the coordinates of the designated point of the first terminal leaf node are located, starting from the root node of the first terminal leaf node, a nearest neighbor search is performed on the coordinates of the first node in the new topological structure grid along a new search path to obtain the coordinates of the designated point of the second terminal leaf node of the KD tree; wherein the new search path is different from the search path from the root node of the first terminal leaf node to the first terminal leaf node; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the second terminal leaf node are located, determining the graphical grid where the designated point coordinates of the second terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

[0065] Optionally, interpolating each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file includes: Determine the Lagrangian basis functions of all nodes of the target graphic grid based on all node coordinates of the target graphic grid and the first node coordinates in the new topological structure grid; Based on the Lagrangian basis functions of all the nodes and the node doping concentrations of all the nodes, the doping concentration of the first node coordinates is determined; wherein the first node coordinates are any node coordinates in the new topological structure grid.

[0066] Optionally, the coordinates of the designated point in the graphic grid include any one of barycentric coordinates, orthocentric coordinates and incenter coordinates in the graphic grid.

[0067] The doping concentration file generating device includes a processor and a memory. The acquisition module 601, construction module 602, search module 603 and generation module 604 are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

[0068] The processor includes a kernel, which calls the corresponding program unit from the memory. There can be one or more kernels.

[0069] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0070] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the method for generating a doping concentration file, the method comprising: obtaining all node coordinates in the new topological structure grid; constructing a KD tree based on the coordinates of the specified points in all the graphic grids in the original topological structure grid; searching for the target graphic grid corresponding to each node coordinate in the new topological structure grid in the original topological structure grid based on the KD tree; interpolating each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

[0071] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0072] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a machine-readable storage medium. When the computer program is executed by a processor, the computer can execute a doping concentration file generation method, which includes: obtaining all node coordinates in the new topological structure grid; constructing a KD tree based on the coordinates of specified points in all graphic grids in the original topological structure grid; searching for a target graphic grid corresponding to each node coordinate in the new topological structure grid in the original topological structure grid based on the KD tree; interpolating each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

[0073] On the other hand, the present invention also provides a machine-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute a doping concentration file generation method, the method comprising: obtaining all node coordinates in a new topological structure grid; constructing a KD tree based on the coordinates of specified points in all graphic grids in the original topological structure grid; searching for a target graphic grid corresponding to each node coordinate in the new topological structure grid in the original topological structure grid based on the KD tree; interpolating each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

[0074] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0075] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / int>

Claims

1. A method for generating a doping concentration file, characterized in that: include: Get the coordinates of all nodes in the new topology grid; Construct a KD tree based on the coordinates of the specified points in all graphic grids in the original topological structure grid; Searching for a target graphic grid corresponding to the original topological structure grid by coordinates of each node in the new topological structure grid based on the KD tree; Each node coordinate in the new topological structure grid is interpolated based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

2. The method for generating a doping concentration file according to claim 1, characterized in that: The step of constructing a KD tree based on the coordinates of designated points in all graphic grids in the original topological structure grid includes: Repeat the following steps until the preset termination condition is reached: Determine the segmentation dimension; The coordinates of the designated point in the current graphic grid are divided into a left subtree and a right subtree based on the set value on the split dimension; the set value includes any one of the median, the average value, and the average value of the maximum value and the minimum value on the split dimension; The coordinate value of any specified point in the left subtree in the segmentation dimension is less than the set value, and the coordinate value of any specified point in the right subtree in the segmentation dimension is greater than or equal to the set value.

3. The method for generating a doping concentration file according to claim 1, characterized in that: The step of searching for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid based on the KD tree includes: Performing a nearest neighbor search on the coordinates of the first node in the new topological structure grid in a direction from the root node of the KD tree to the terminal leaf node to obtain the coordinates of the designated point of the first terminal leaf node of the KD tree; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the first terminal leaf node are located, determining the graphical grid where the designated point coordinates of the first terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

4. The method for generating a doping concentration file according to claim 3, characterized in that: After performing a nearest neighbor search on the first node coordinates in the new topological structure grid in the direction from the root node of the KD tree to the terminal leaf node to obtain the designated point coordinates of the first terminal leaf node of the KD tree, the method further includes: In the case where the coordinates of the first node in the new topological structure grid are not located in the graphic grid where the coordinates of the designated point of the first terminal leaf node are located, starting from the root node of the first terminal leaf node, a nearest neighbor search is performed on the coordinates of the first node in the new topological structure grid along a new search path to obtain the coordinates of the designated point of the second terminal leaf node of the KD tree; wherein the new search path is different from the search path from the root node of the first terminal leaf node to the first terminal leaf node; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the second terminal leaf node are located, determining the graphical grid where the designated point coordinates of the second terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

5. The method for generating a doping concentration file according to claim 1, characterized in that: The interpolation of each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file includes: Determine the Lagrangian basis functions of all nodes of the target graphic grid based on all node coordinates of the target graphic grid and the first node coordinates in the new topological structure grid; Based on the Lagrangian basis functions of all the nodes and the node doping concentrations of all the nodes, the doping concentration of the first node coordinates is determined; wherein the first node coordinates are any node coordinates in the new topological structure grid.

6. The method for generating a doping concentration file according to any one of claims 1 to 4, characterized in that: The coordinates of the designated point in the graphic grid include any one of the barycentric coordinates, orthocentric coordinates and in-center coordinates in the graphic grid.

7. A doping concentration file generating device, characterized in that: include: An acquisition module is used to obtain the coordinates of all nodes in the new topological structure grid; A construction module is used to construct a KD tree based on the coordinates of specified points in all graphic grids in the original topological structure grid; A search module, used for searching, based on the KD tree, for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid in the original topological structure grid; The generation module is used to interpolate each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file.

8. The doping concentration file generating device according to claim 7, characterized in that: The step of constructing a KD tree based on the coordinates of designated points in all graphic grids in the original topological structure grid includes: Repeat the following steps until the preset termination condition is reached: Determine the segmentation dimension; The coordinates of the designated point in the current graphic grid are divided into a left subtree and a right subtree based on the set value on the split dimension; the set value includes any one of the median, the average value, and the average value of the maximum value and the minimum value on the split dimension; The coordinate value of any specified point in the left subtree in the segmentation dimension is less than the set value, and the coordinate value of any specified point in the right subtree in the segmentation dimension is greater than or equal to the set value.

9. The doping concentration file generating device according to claim 7, characterized in that: The step of searching for a target graphic grid corresponding to the coordinates of each node in the new topological structure grid based on the KD tree includes: Performing a nearest neighbor search on the coordinates of the first node in the new topological structure grid in a direction from the root node of the KD tree to the terminal leaf node to obtain the coordinates of the designated point of the first terminal leaf node of the KD tree; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the first terminal leaf node are located, determining the graphical grid where the designated point coordinates of the first terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

10. The doping concentration file generating device according to claim 9, characterized in that: After performing a nearest neighbor search on the first node coordinates in the new topological structure grid in the direction from the root node of the KD tree to the terminal leaf node to obtain the designated point coordinates of the first terminal leaf node of the KD tree, the method further includes: In the case where the coordinates of the first node in the new topological structure grid are not located in the graphic grid where the coordinates of the designated point of the first terminal leaf node are located, starting from the root node of the first terminal leaf node, a nearest neighbor search is performed on the coordinates of the first node in the new topological structure grid along a new search path to obtain the coordinates of the designated point of the second terminal leaf node of the KD tree; wherein the new search path is different from the search path from the root node of the first terminal leaf node to the first terminal leaf node; In a case where the first node coordinates in the new topological structure grid are located in the graphical grid where the designated point coordinates of the second terminal leaf node are located, determining the graphical grid where the designated point coordinates of the second terminal leaf node are located as the target graphical grid; The first node coordinates are coordinates of any node in the new topological structure grid.

11. The doping concentration file generating device according to claim 7, characterized in that: The interpolation of each node coordinate in the new topological structure grid based on the node doping concentration of each target graphic grid to obtain the doping concentration of all node coordinates in the new topological structure grid to form a new doping concentration file includes: Determine the Lagrangian basis functions of all nodes of the target graphic grid based on all node coordinates of the target graphic grid and the first node coordinates in the new topological structure grid; Based on the Lagrangian basis functions of all the nodes and the node doping concentrations of all the nodes, the doping concentration of the first node coordinates is determined; wherein the first node coordinates are any node coordinates in the new topological structure grid.

12. The doping concentration file generating device according to any one of claims 7 to 9, characterized in that: The coordinates of the designated point in the graphic grid include any one of the barycentric coordinates, orthocentric coordinates and in-center coordinates in the graphic grid.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the doping concentration file generation method according to any one of claims 1 to 6 is implemented.

14. A machine-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a doping concentration file according to any one of claims 1 to 6 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for generating a doping concentration file according to any one of claims 1 to 6 is implemented.