Spatial index construction method, retrieval method and system for graph with large length-width ratio

By constructing a spatial index database with a strip index structure and binary tree nodes, the problem of low efficiency in retrieval of graphics with large aspect ratios in the existing technology is solved, and the rapid construction and retrieval of polygonal graphics in integrated circuit layout files is achieved.

CN120687624AActive Publication Date: 2025-09-23HUAXINCHENG (HANGZHOU) TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202511207263.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-27
Publication Date
2025-09-23
Estimated Expiration
2045-08-27

AI Technical Summary

Technical Problem

Existing spatial indexing technology has poor applicability, long index construction time and low retrieval efficiency when retrieving polygonal graphics in integrated circuit layout files, and is particularly unsuitable for two-dimensional graphics with large aspect ratios.

Method used

Construct a spatial index database of strip index structure and binary tree nodes, and quickly construct and retrieve polygon graphics in the target layout file by screening large aspect ratio graphics and performing matching operations.

Benefits of technology

The method realizes the rapid construction of a spatial index database, improves the retrieval efficiency and positioning speed of graphics with large aspect ratios, and solves the problems of poor applicability and low retrieval efficiency of polygonal graphics in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120687624A_ABST
    Figure CN120687624A_ABST
Patent Text Reader

Abstract

The invention provides a spatial index construction method, retrieval method and system for a graph with a large length-width ratio, and the method comprises the steps: screening one or more graphs with the large length-width ratio when reading a target layout file, and constructing a corresponding spatial index database; matching operation is carried out on the screened graphs with the large length-width ratios, and target band-shaped index structures, target index bands and target binary tree nodes of the graphs with the large length-width ratios in the spatial index database are matched step by step, so that storage addresses of the graphs with the large length-width ratios are stored in the corresponding target binary tree nodes; updating the spatial index database; therefore, the spatial index database can be quickly constructed, and the target graph with the large length-width ratio in the target layout file can be quickly retrieved and positioned during layout design. The technical problems that an existing spatial index technology is poor in polygonal graph applicability to a target layout file, the index construction time is long, and the retrieval efficiency is limited are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data storage technology, and in particular to a spatial index construction method, retrieval method and system for graphics with a large aspect ratio. Background Art

[0002] Integrated circuits integrate the microelectronic components and interconnects required for a large number of circuits on a single semiconductor chip or dielectric substrate through processes such as photolithography, doping, and thin film deposition, and package them into microstructures with specific circuit functions, thereby achieving miniaturization, low power consumption, and high reliability of electronic components.

[0003] During integrated circuit production, EDA (Electronic Design Automation) tools are primarily used to complete circuit design and generate layout files to guide chip manufacturing. An IC layout file is a digital file that describes the physical layout of the chip. It is defined layer by layer according to the semiconductor process steps, including: active area layer, polysilicon layer, metal layer, and via / contact hole. The metal layer layout layer primarily describes signal and power routing and contains multiple polygonal shapes that define the outlines of power and signal lines. These polygonal shapes often have a large aspect ratio and are nearly uniform in width.

[0004] In layout design, such as the layout pattern matching process, it is usually necessary to retrieve and locate each polygonal graphic in the layout layer file to obtain the spatial position of the target polygonal graphic. When retrieving each polygonal graphic, spatial indexing technology is usually used. It should be understood that spatial indexing technology divides the space of different dimensions into different index areas, and organizes and arranges spatial data according to the element position, element form or spatial relationship between elements of spatial data, so as to achieve rapid positioning of target objects during retrieval. Therefore, spatial indexing technology is widely used in the rapid positioning and retrieval of two-dimensional graphics. Spatial indexing technology mainly includes R-tree, quadtree, KD tree, etc. Among them, R-tree creates nodes based on the minimum enclosing rectangle, which can efficiently retrieve two-dimensional graphics within a given range; quadtree uses space to recursively divide four quadrants, and the hierarchical structure is conducive to subsequent queries, which is particularly suitable for evenly distributed two-dimensional graphics.

[0005] However, while R-trees are more efficient for searching complex graphics, they take a long time to build when searching individual polygons in layout files due to the dynamic data insertion involved, significantly impacting index construction and retrieval efficiency. Furthermore, while quadtrees are relatively simple and require less time to build, their retrieval efficiency is limited if data is unevenly distributed, making them unsuitable for searching individual polygons in layout files, especially for 2D graphics with large aspect ratios.

[0006] Therefore, existing spatial indexing technologies have technical problems such as poor applicability to polygonal graphics in layout files, long index construction time, and limited retrieval efficiency. Summary of the Invention

[0007] In view of the shortcomings of the existing technology mentioned above, the purpose of this application is to provide a spatial index construction method, retrieval method and system for graphics with large aspect ratios, which are used to solve the technical problems of existing spatial indexing technology such as poor applicability to polygonal graphics in layout files, long index construction time and limited retrieval efficiency.

[0008] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a method for constructing a spatial index of a large aspect ratio graphic, the method comprising: reading a plurality of layout layers in a target layout file, and obtaining the outer bounding rectangles of a plurality of polygonal graphics in each layout layer, and calculating the aspect ratio of each outer bounding rectangle respectively to screen one or more large aspect ratio graphics; constructing a spatial index database of the target layout file; wherein the spatial index database comprises a plurality of band index structures, each band index structure comprises a plurality of index bands; each index band is constructed with a binary tree, comprising one or more binary tree nodes; based on the width values ​​of the large aspect ratio graphics, The index structure matching operation is performed on each major aspect ratio graphic respectively to obtain the target strip index structure of each major aspect ratio graphic; based on the spatial position of each major aspect ratio graphic in the width direction, the index band matching operation is performed on each major aspect ratio graphic respectively to obtain the target index band of each major aspect ratio graphic in the target strip index structure; based on the spatial position of each major aspect ratio graphic in the length direction, the binary tree node matching operation is performed on each major aspect ratio graphic respectively to obtain the target binary tree node of each major aspect ratio graphic in the target index band; the storage address of each major aspect ratio graphic is obtained, and each storage address is stored in the target binary tree node of each major aspect ratio graphic respectively, and the spatial index database of the target layout file is updated.

[0009] In some embodiments of the first aspect of the present application, each band index structure is used to store one or more large aspect ratio graphics that meet different graphic width conditions; wherein, the method of performing an index structure matching operation on each large aspect ratio graphic includes: obtaining the graphic width condition of each band index structure based on the first data identifier of each band index structure in the spatial index database; comparing the width value of the large aspect ratio graphic to be matched with the graphic width condition of each band index structure, screening the matching graphic width conditions, and using the corresponding band index structure as the target band index structure of the large aspect ratio graphic.

[0010] In some embodiments of the first aspect of the present application, each index band is used to store one or more large aspect ratio graphics that meet different width-direction spatial position conditions; wherein, the method of performing an index band matching operation on each large aspect ratio graphic includes: obtaining the width-direction spatial position condition of each index band based on the second data identifier of each index band in the target band index structure; comparing the spatial position of the large aspect ratio graphic to be matched in the width direction with the width-direction spatial position condition of each index band, and screening the matching width-direction spatial position conditions to use the corresponding index band as the target index band of the large aspect ratio graphic in the target band index structure.

[0011] In some embodiments of the first aspect of the present application, the method of performing an index band matching operation on each large aspect ratio graphic further includes: obtaining a rectangular layout area of ​​the target layout file, and constructing a layout coordinate system based on the rectangular layout area; wherein the x-axis direction of the layout coordinate system is the length direction of the rectangular layout area, and the y-axis direction is the width direction of the layout area; according to the first data identifier of the target band index structure, obtaining the graphic width condition W of the target band index structure; according to the second data identifier of each index band in the target band index structure, obtaining the width direction spatial position condition of each index band storing large aspect ratio graphics based on the layout coordinate system ;in, as well as They are the first The minimum value and maximum value of the width direction of each large aspect ratio graphic stored in the layout coordinate system are obtained by the index band; the outer bounding rectangle of the large aspect ratio graphic to be matched is obtained, and the minimum value of the width direction of the outer bounding rectangle in the layout coordinate system is calculated. ; If the width direction of the outer bounding rectangle is the minimum Satisfy the spatial position conditions in the width direction of an index band , then the index band is the target index band of the large aspect ratio graphic in the target band index structure.

[0012] In some embodiments of the first aspect of the present application, each binary tree node is used to store one or more large aspect ratio graphics that meet different length direction spatial position conditions; wherein, the method of performing a binary tree node matching operation on each large aspect ratio graphic includes: based on the binary tree of the target index band, starting from the root node of the binary tree to search, obtain the length direction spatial position conditions of the large aspect ratio graphics stored in the node, and determine whether the spatial position of the large aspect ratio graphic to be matched in the length direction meets the length direction spatial position condition. If so, the node is the target binary tree node of the large aspect ratio graphic in the target index band; if not, determine whether the spatial position of the large aspect ratio graphic to be matched in the length direction is less than the length direction spatial position condition. If it is less than the length direction spatial position condition, continue searching in the left subtree of the binary tree; if it is greater than the length direction spatial position condition, continue searching in the right subtree of the binary tree; repeat the above steps until the matching target binary tree node is found.

[0013] In some embodiments of the first aspect of the present application, the method of performing a binary tree node matching operation on each large aspect ratio graphic further includes: obtaining a rectangular layout area of ​​the target layout file, and constructing a layout coordinate system based on the rectangular layout area; wherein the x-axis direction of the layout coordinate system is the length direction of the rectangular layout area, and the y-axis direction is the width direction of the layout area; calculating the minimum value of the length direction of the rectangular layout area in the layout coordinate system , the median value in the length direction And the maximum value in the length direction ; Among them, the length direction median value of the rectangular layout area Requirements: ; Get the outer bounding rectangle of the large aspect ratio graphic to be matched, and calculate the minimum length direction of the outer bounding rectangle in the layout coordinate system And the maximum value in the length direction ; If the length direction of the outer bounding rectangle is the minimum And the maximum value in the length direction Requirements: , then determine the binary tree root node as the target binary tree node of the large aspect ratio graphic; if the length direction of the outer bounding rectangle is the minimum And the maximum value in the length direction satisfy: , then determine whether the left child node of the binary tree root node is the target binary tree node of the large aspect ratio graphic. If the length direction of the outer bounding rectangle is the minimum value And the maximum value in the length direction satisfy: , then the node is the target binary tree node of the large aspect ratio graphic; if the length direction of the outer bounding rectangle is the minimum And the maximum value in the length direction satisfy: , then determine whether the right child node of the binary tree root node is the target binary tree node of the large aspect ratio graphic. If the length direction of the outer bounding rectangle is the minimum value And the maximum value in the length direction satisfy: , then the node is the target binary tree node of the large aspect ratio graph; otherwise, repeat the above steps until a matching target binary tree node is found.

[0014] In some embodiments of the first aspect of the present application, a method for screening graphics with a large aspect ratio includes: obtaining the outer enclosing rectangle of the polygonal graphic, and calculating the initial length value and initial width value of the outer enclosing rectangle; performing a right shift operation on the initial length value, and comparing the obtained doubled length value with the initial width value; if the doubled length value is greater than the initial width value, the polygonal graphic is determined to be a graphic with a large aspect ratio.

[0015] In some embodiments of the first aspect of the present application, another method of screening large aspect ratio graphics includes: obtaining the outer enclosing rectangle of the polygonal graphic and calculating the initial length value and initial width value of the outer enclosing rectangle; performing a left shift operation on the initial width value, and comparing the obtained multiplied width value with the initial length value; if the multiplied width value is smaller than the initial length value, the polygonal graphic is judged to be a large aspect ratio graphic.

[0016] To achieve the above-mentioned objectives and other related objectives, a second aspect of the present application provides a large aspect ratio graphic retrieval method for retrieving one or more target large aspect ratio graphics in a target layout file based on a spatial index database constructed by the spatial index construction method for large aspect ratio graphics described in any of the above-mentioned embodiments. The large aspect ratio graphic retrieval method comprises: screening one or more retrieval conditions for retrieving each target large aspect ratio graphic according to an acquired retrieval statement, and obtaining a width retrieval condition, a width-direction spatial position retrieval condition, and a length-direction spatial position retrieval condition for retrieving each target large aspect ratio graphic accordingly; screening one or more target band index structures based on the width retrieval condition for retrieving each target large aspect ratio graphic; screening one or more target index bands in each target band index structure based on the width-direction spatial position retrieval condition for retrieving each target large aspect ratio graphic; screening one or more target binary tree nodes in each target index band based on the length-direction spatial position retrieval condition for retrieving each target large aspect ratio graphic; and obtaining a storage address of each target large aspect ratio graphic according to each target binary tree node, thereby obtaining each target large aspect ratio graphic.

[0017] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a spatial index construction system for graphics with large aspect ratios, which includes: a graphics screening module for reading multiple layout layers in a target layout file, and obtaining the outer bounding rectangles of multiple polygonal graphics in each layout layer, and calculating the aspect ratios of each outer bounding rectangle to screen one or more graphics with large aspect ratios; a database construction module for constructing a spatial index database of the target layout file; wherein the spatial index database includes multiple band index structures, each band index structure includes multiple index bands; each index band is constructed with a binary tree, including one or more binary tree nodes; a database update module, respectively connected to the graphics screening module and the database construction module, including: an index structure matching unit, respectively connected to the graphics screening module and the database construction module, for performing index structure matching operations on each major aspect ratio graphic based on the width values ​​of each major aspect ratio graphic, to obtain each major aspect ratio graphic. A target band index structure of the aspect ratio graphic; an index band matching unit, respectively connected to the graphic screening module, the database construction module and the index structure matching unit, for performing index band matching operations on each aspect ratio graphic based on the spatial position of each aspect ratio graphic in the width direction, and obtaining the target index bands of each aspect ratio graphic in the target band index structure; a binary tree node matching unit, respectively connected to the graphic screening module, the database construction module and the index band matching unit, for performing binary tree node matching operations on each aspect ratio graphic based on the spatial position of each aspect ratio graphic in the length direction, and obtaining the target binary tree nodes of each aspect ratio graphic in the target index band; a database updating unit, respectively connected to the graphic screening module, the database construction module and the binary tree node matching unit, for obtaining the storage addresses of each aspect ratio graphic, and storing each storage address in the target binary tree nodes of each aspect ratio graphic, and updating the spatial index database of the target layout file.

[0018] As described above, the present application has the following beneficial effects: the present application provides a spatial index construction method, retrieval method and system for large aspect ratio graphics, which screens one or more large aspect ratio graphics when reading a target layout file and constructs a corresponding spatial index database; by performing a matching operation on the screened large aspect ratio graphics, the target band index structure, target index band and target binary tree node of each large aspect ratio graphics in the spatial index database are gradually matched to store the storage addresses of each large aspect ratio graphics in the corresponding target binary tree node, and update the spatial index database; thereby realizing the rapid construction of the spatial index database and the ability to quickly retrieve and locate the target large aspect ratio graphics in the target layout file during layout design, thereby solving the technical problems of the existing spatial index technology in terms of poor applicability to polygonal graphics in the target layout file, long index construction time and limited retrieval efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Shown is a flow chart of a method for constructing a spatial index for graphics with a large aspect ratio according to an embodiment of the present application.

[0020] Figure 2 Shown is a schematic diagram of a layout layer of a target layout file in an embodiment of the present application.

[0021] Figure 3 Shown is a schematic diagram of the structure of a spatial index database in one embodiment of the present application.

[0022] Figure 4 Shown is a schematic diagram of performing an index band matching operation in one embodiment of the present application.

[0023] Figure 5 Shown is a schematic diagram of performing a binary tree node matching operation in one embodiment of the present application.

[0024] Figure 6 Shown is a flowchart of a method for retrieving graphics with a large aspect ratio according to an embodiment of the present application.

[0025] Figure 7 Shown is a structural diagram of a spatial index construction system for graphics with a large aspect ratio in one embodiment of the present application. DETAILED DESCRIPTION

[0026] The following describes the embodiments of the present application through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present application from the content disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other unless they conflict.

[0027] To solve the above problems, the present application provides a spatial index construction method, retrieval method and system for large aspect ratio graphics, aiming to construct a spatial index database including multiple band index structures, each band index structure including multiple index bands, and each index band is constructed with a binary tree, thereby accelerating the retrieval speed of a large number of large aspect ratio graphics in the target layout file, and solving the technical problems of existing spatial index technology such as poor applicability to polygonal graphics in the target layout file, long index construction time and limited retrieval efficiency.

[0028] In order to make the invention objectives, technical solutions and advantages of this application more clearly understood, the following embodiments and the accompanying drawings are used to further explain the technical solutions in the embodiments of this application. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0029] like Figure 1 FIG. 1 is a flow chart showing a method for constructing a spatial index for a graphic with a large aspect ratio according to an embodiment of the present application. The method for constructing a spatial index for a graphic with a large aspect ratio according to the embodiment includes steps S101 to S106.

[0030] Step S101: Read multiple layout layers in the target layout file, and obtain the outer bounding rectangles of multiple polygonal graphics in each layout layer, and calculate the aspect ratio of each outer bounding rectangle to select one or more graphics with a large aspect ratio.

[0031] The target layout file is a digital file that describes the physical layout of the chip in the integrated circuit, including: active area layer, polysilicon layer, metal layer and through hole / contact hole. Among them, the target layout file includes one or more metal layer layout layers, and each metal layer layout layer includes multiple polygonal graphics, which are used to define the outline of the power line and signal line, thereby describing the signal and power wiring situation. Figure 2 As shown, each polygonal graphic generally has a large aspect ratio, and the polygonal graphics in each layout layer have a consistent width. Therefore, this application selects large aspect ratio graphics that meet this characteristic and builds a spatial index database based on them to enable rapid retrieval and positioning of this type of polygonal graphics in layout design, thereby accelerating the speed and efficiency of layout design.

[0032] In this embodiment, the aspect ratio of each polygonal figure's enclosing rectangle is calculated to identify high-aspect-ratio figures. When the length of a polygonal figure's enclosing rectangle is significantly greater than its width, the polygon is considered to have a large aspect ratio and is therefore classified as a high-aspect-ratio figure. It should be understood that the enclosing rectangle refers to the smallest rectangle that can completely contain the given polygonal figure. Specifically, obtaining the enclosing rectangle of a polygonal figure includes the following steps.

[0033] ① Obtain the rectangular layout area of ​​the target layout file and construct a layout coordinate system based on the rectangular layout area.

[0034] Among them, the x-axis direction of the layout coordinate system is the length direction of the rectangular layout area, and the y-axis direction is the width direction of the layout area.

[0035] It should be noted that if the target layout file can provide the dimensions of the corresponding integrated circuit, that is, the size and spatial extent of the rectangular layout area, the corresponding rectangular layout area can be directly obtained from the target layout file and the layout coordinate system can be constructed. However, if the target layout file cannot directly provide the size and spatial extent of the rectangular layout area, the layout coordinate system can be gradually constructed and updated based on the size, spatial extent, and positional relationship of each polygonal figure with other polygonal figures, so that the layout coordinate system is adapted to the target layout file.

[0036] ② Get the coordinate value of each point of the polygon in the layout coordinate system , and calculate the minimum length direction of the polygon in the layout coordinate system based on this , maximum value in length direction , minimum value in width direction And the maximum value in the width direction .

[0037] ③ Determine the vertices of the outer bounding rectangle of the polygon: the first vertex , second vertex , the third vertex and the fourth vertex .

[0038] At this time, the length of the outer bounding rectangle , width value If the aspect ratio of the outer bounding rectangle satisfies: , then the corresponding polygonal figure is determined to be a figure with a large aspect ratio. It is a preset aspect ratio threshold, which can be set by the user according to needs and is not specifically limited in this application.

[0039] However, in actual calculations, especially when implementing the method using a computer program, the use of division operations results in limited computational accuracy and efficiency, and may often return an exception, causing the program to crash. To address this technical problem, the present application replaces the division operation with a bitwise operation, thereby effectively improving computational accuracy and efficiency.

[0040] In one embodiment, a method of using bit operations to filter out graphics with a large aspect ratio includes: obtaining an outer enclosing rectangle of a polygonal graphic and calculating an initial length value and an initial width value of the outer enclosing rectangle; performing a right shift operation on the initial length value, and comparing the obtained doubled length value with the initial width value; if the doubled length value is greater than the initial width value, then determining that the polygonal graphic is a graphic with a large aspect ratio.

[0041] Preferably, the initial length value can be shifted right by three digits to obtain a doubled length value for comparison with the initial width value to determine whether the corresponding polygonal figure is a figure with a large aspect ratio. It should be understood that when the initial length value is shifted right by three digits, the doubled length value is 8 times smaller than the initial length value. At this time, if the doubled length value is still greater than the initial width value, it indicates that the aspect ratio of the initial length value to the initial width value is at least greater than 8, and there is a large gap between the initial length value and the initial width value. The corresponding polygonal figure can be determined as a figure with a large aspect ratio. It should be noted that the specific number of digits for right-shifting the initial length value can be set by the user according to needs, and this application does not limit it.

[0042] In another embodiment, another method of using bit operations to screen out graphics with a large aspect ratio includes: obtaining an outer enclosing rectangle of a polygonal graphic and calculating an initial length value and an initial width value of the outer enclosing rectangle; performing a left shift operation on the initial width value, and comparing the obtained multiplied width value with the initial length value; if the multiplied width value is less than the initial length value, determining that the polygonal graphic is a graphic with a large aspect ratio.

[0043] Preferably, the initial width value can be shifted left by three digits to obtain a multiplied width value for comparison with the initial length value to determine whether the corresponding polygonal figure is a figure with a large aspect ratio. It should be understood that when the initial width value is shifted left by three digits, the multiplied width value increases by 8 times compared with the initial width value. At this time, if the multiplied width value is still smaller than the initial length value, it indicates that the aspect ratio of the initial length value to the initial width value is at least greater than 8, and there is a large gap between the initial length value and the initial width value. The corresponding polygonal figure can be determined to be a figure with a large aspect ratio. It should be noted that the specific number of digits for the left shift of the initial width value can be set by the user according to needs, and this application does not limit it.

[0044] It should also be noted that, according to needs, the user can select one of the methods provided in the above embodiments to filter large aspect ratio graphics, that is, the user can choose to shift the initial length value to the right or the initial width value to the left to determine whether the corresponding polygonal graphic is a large aspect ratio graphic. This application is not limited.

[0045] Step S102: Constructing a spatial index database of the target layout file.

[0046] Among them, such as Figure 3 As shown, the spatial index database includes multiple band index structures.

[0047] Specifically, each band index structure is used to store one or more large aspect ratio graphics that meet different graphic width conditions. Since the polygon graphics in each layout layer of the target layout file mostly have the characteristic of consistent width. This application groups and manages the selected large aspect ratio graphics based on their width values, divides one or more large aspect ratio graphics that meet the same graphic width condition into a group, and indexes them based on the same band index structure, while multiple large aspect ratio graphics that meet different graphic width conditions are indexed based on different band index structures, thereby improving indexing speed and indexing efficiency.

[0048] In one embodiment, a method for constructing a band index structure includes: obtaining width values ​​of various aspect ratio graphics, and grouping the various aspect ratio graphics accordingly to obtain one or more large aspect ratio graphic groups, constructing corresponding band index structures based on the various aspect ratio graphic groups, and generating first data identifiers for each band index structure based on the graphic width ranges of the various aspect ratio graphic groups.

[0049] In another embodiment, another method for constructing a band index structure includes: obtaining a width value of a first high-aspect-ratio graphic, constructing a corresponding first band index structure based on the first high-aspect-ratio graphic, and generating a first data identifier for the band index structure based on the width value of the high-aspect-ratio graphic; obtaining a width value of a second high-aspect-ratio graphic, and comparing it with the width value of the first high-aspect-ratio graphic; if the ratio does not exceed a preset first threshold, storing the high-aspect-ratio graphic in the first band index structure for subsequent indexing; otherwise, constructing a corresponding second band index structure, and generating a first data identifier for the band index structure based on its width value; continuing to sequentially obtain the width values ​​of each large-aspect-ratio graphic, and comparing them with the width values ​​of the high-aspect-ratio graphics stored in each constructed band index structure; if the ratio with the width value of the high-aspect-ratio graphic stored in a certain band index structure does not exceed the preset first threshold, storing the high-aspect-ratio graphic in the matching band index structure; otherwise, constructing a new band index structure; repeating the previous step until all high-aspect-ratio graphics are traversed and all band index structures are constructed.

[0050] It should be noted that if the target layout file can directly obtain the width range or width requirement of each polygonal graphic, a preset number of band index structures can be directly constructed based on this, and the first data identifier of each band index structure can be defined, as well as the graphic width conditions of the large aspect ratio graphics stored in each band index structure.

[0051] like Figure 3 As shown, each band-shaped index structure includes multiple index bands, and each index band is used to store one or more large aspect ratio graphics that meet the same graphic width condition but different width direction spatial position conditions.

[0052] In integrated circuit design, the location of the chip, the wiring of signal lines, and the wiring of power lines need to be designed and planned. To avoid signal interference caused by chaotic wiring and affecting the performance of the integrated circuit, the layout design and planning usually need to follow certain rules. Therefore, the polygonal graphics formed also conform to certain arrangement rules, such as Figure 2 As shown, it exhibits a strip-like distribution characteristic and is parallel to the length direction of the rectangular layout area, that is, the x-axis direction of the layout coordinate system.

[0053] Based on this, the present application constructs multiple index bands distributed in a band-like manner based on the spatial positions of the major aspect ratio graphics in the width direction to form a band-like index structure, thereby realizing hierarchical indexing of the major aspect ratio graphics that meet the same graphic width conditions, and can quickly retrieve and locate the major aspect ratio graphics in the width direction, thereby improving the indexing speed and indexing efficiency.

[0054] In one embodiment, a method of constructing an index band includes: obtaining a rectangular layout area of ​​a target layout file, and layering the rectangular layout area to obtain multiple rectangular layout layers to construct a corresponding index band, and generating a second data identifier for each index band based on the spatial position of each rectangular layout layer, that is, based on the y-axis coordinate range of each rectangular layout layer in the layout coordinate system.

[0055] It should be noted that if the target layout file can provide the dimensions of the corresponding integrated circuit, that is, the size and spatial extent of the rectangular layout area, the corresponding rectangular layout area can be directly obtained from the target layout file and the layout coordinate system can be constructed. Thus, the index band can be constructed using the above method. However, if the target layout file cannot directly provide the size and spatial extent of the rectangular layout area, the index band can be gradually constructed and updated based on the spatial position of each high-aspect-ratio graphic and its positional relationship with other high-aspect-ratio graphics.

[0056] Specifically, the method of gradually constructing and updating the index band includes: obtaining a first large aspect ratio graphic, constructing a corresponding first index band, and generating a second data identifier for the index band according to the spatial position of the large aspect ratio graphic in the width direction, that is, its y-axis coordinate range in the layout coordinate system; obtaining the y-axis coordinate range of the second large aspect ratio graphic in the layout coordinate system, and comparing the y-axis coordinate range with the y-axis coordinate range of the first large aspect ratio graphic; if the ratio does not exceed a preset second threshold, storing the large aspect ratio graphic in the first index band for subsequent indexing, otherwise constructing the corresponding A second index band is constructed, and a second data identifier of the index band is generated according to its y-axis coordinate range in the layout coordinate system; the y-axis coordinate range of each large aspect ratio graphic in the layout coordinate system is continued to be obtained in turn, and compared with the y-axis width range of the large aspect ratio graphic stored in each constructed index band, if the ratio of the y-axis coordinate range to the large aspect ratio graphic stored in a certain index band does not exceed the preset second threshold, the large aspect ratio graphic is stored in the matching index band, otherwise a new index band is constructed; repeat the previous step until all large aspect ratio graphics are traversed and the construction of all index bands is completed.

[0057] Since each index band may store multiple large aspect ratio graphics, in order to further speed up the indexing speed and indexing efficiency, each index band is constructed with a binary tree, which includes one or more binary tree nodes for storing one or more large aspect ratio graphics that meet the same graphic width conditions and width direction spatial position conditions but different length direction spatial position conditions.

[0058] In one embodiment, the method of constructing a binary tree for each index band includes: constructing a first-level binary tree node, storing the large aspect ratio graphic located in the middle of the length direction of the rectangular layout area in the root node of the binary tree; constructing a second-level binary tree node, storing the large aspect ratio graphic located in the middle of the length direction of the left half of the rectangular layout area in the left child node of the root node, and storing the large aspect ratio graphic located in the middle of the length direction of the right half of the rectangular layout area in the right child node of the root node; and constructing the binary tree nodes layer by layer in the same way.

[0059] In one embodiment, if an index band stores relatively few high-aspect-ratio graphics, it is not necessary to construct a binary tree, and all high-aspect-ratio graphics and their storage addresses can be directly stored in the index band. During retrieval, after matching the target index band, a small number of high-aspect-ratio graphics can be directly traversed.

[0060] Step S103: Based on the width values ​​of the graphics with different aspect ratios, index structure matching operations are performed on the graphics with different aspect ratios respectively to obtain target band index structures of the graphics with different aspect ratios.

[0061] In one embodiment, the method of performing an index structure matching operation on each high-aspect-ratio graphic includes: obtaining, based on the first data identifier of each band index structure in the spatial index database, a graphic width condition for each large-aspect-ratio graphic stored in each band index structure; comparing the width value of the high-aspect-ratio graphic to be matched with the graphic width condition of each band index structure, screening the matching graphic width condition, and using the corresponding band index structure as the target band index structure for the high-aspect-ratio graphic.

[0062] Specifically, if the width value of the high aspect ratio graphic to be matched is Requirements: ; then the corresponding The band index structure is the target band index structure of the large aspect ratio graphic. For the The width condition of the graphic of the band index structure, that is, the minimum width value of the graphics of various aspect ratios stored in the band index structure is , the maximum value is .

[0063] Step S104: Based on the spatial positions of the graphics with different aspect ratios in the width direction, index band matching operations are performed on the graphics with different aspect ratios respectively to obtain target index bands of the graphics with different aspect ratios in the target band index structure.

[0064] In one embodiment, the method of performing an index band matching operation on each large aspect ratio graphic includes: obtaining the width direction spatial position conditions of each index band storing the large aspect ratio graphics based on the second data identifier of each index band in the target band index structure; comparing the spatial position in the width direction of the large aspect ratio graphic to be matched with the width direction spatial position conditions of each index band, and screening the matching width direction spatial position conditions to use the corresponding index band as the target index band of the large aspect ratio graphic in the target band index structure.

[0065] In a specific embodiment, the method of performing the index band matching operation on each high aspect ratio graphic further includes the following steps.

[0066] ① Obtain the rectangular layout area of ​​the target layout file and construct a layout coordinate system based on the rectangular layout area.

[0067] Among them, the x-axis direction of the layout coordinate system is the length direction of the rectangular layout area, and the y-axis direction is the width direction of the layout area.

[0068] It should be noted that the method for constructing the layout coordinate system in this embodiment is consistent with the method provided in the above embodiment. If the target layout file can provide the size of the corresponding integrated circuit, that is, the size and spatial range of the rectangular layout area, the corresponding rectangular layout area can be directly obtained from the target layout file and the layout coordinate system can be constructed. However, if the target layout file cannot directly provide the size and spatial range of the rectangular layout area, the layout coordinate system can be gradually constructed and updated based on the size, spatial range, and positional relationship of each polygonal figure with other polygonal figures, so that the layout coordinate system is adapted to the target layout file.

[0069] ②According to the first data identifier of the target band index structure, a graphic width condition W of the target band index structure is obtained.

[0070] In one embodiment, the pattern width condition W of the target band index structure can be specifically expressed as: , or will As the graphic width condition W of the band index structure. The specific user can set it according to the needs, and this application does not limit it. It should be noted that, The minimum width value of the graphics with different aspect ratios stored in the target band index structure. The maximum width value of the graphics with different aspect ratios stored in the target band index structure.

[0071] ③According to the second data identifier of each index band in the target band index structure, obtain the width direction spatial position conditions of each index band storing the large aspect ratio graphics based on the layout coordinate system .

[0072] Among them, Figure 4 As shown, The first The minimum width value of each aspect ratio graphic stored in each index band in the layout coordinate system, The first The maximum values ​​of the width direction of the graphics with various aspect ratios stored in each index band in the layout coordinate system.

[0073] ④ Obtain the outer bounding rectangle of the large aspect ratio graphic to be matched, and calculate the minimum width direction of the outer bounding rectangle in the layout coordinate system .

[0074] Specifically, the method for obtaining the outer enclosing rectangle of a graphic with a large aspect ratio is the same as the method for obtaining the outer enclosing rectangle of a polygonal graphic provided in the above embodiment, and is not described again for the sake of brevity.

[0075] ⑤ If the width direction of the outer enclosing rectangle is the minimum Satisfy the spatial position conditions in the width direction of an index band , then the index band is the target index band of the large aspect ratio graphic in the target band index structure.

[0076] That is, Figure 4 As shown, if the width direction of the outer bounding rectangle is the minimum Requirements: , then the corresponding The index band is located in the target index band of the target band index structure of the large aspect ratio graphic.

[0077] It should be noted that by setting the minimum width of the outer bounding rectangle Spatial position conditions in the width direction of each index band The method of comparing to match the target index band is only a preferred embodiment provided by this application. The user can choose other methods to match the target index band according to the needs, such as choosing to match the maximum value of the width direction of the outer enclosing rectangle, the middle value of the width direction, etc. with the width direction spatial position conditions of each index band. The present application does not specifically limit the manner of comparison.

[0078] Step S105: Based on the spatial positions of the graphics with different aspect ratios in the longitudinal direction, a binary tree node matching operation is performed on each of the graphics with different aspect ratios to obtain target binary tree nodes of the graphics with different aspect ratios in the target index band.

[0079] In one embodiment, the method of performing a binary tree node matching operation on each large aspect ratio graphic includes: based on the binary tree of the target index band, starting from the root node of the binary tree to search, obtaining the length direction spatial position conditions of the large aspect ratio graphics stored in the node, and judging whether the spatial position of the large aspect ratio graphic to be matched in the length direction meets the length direction spatial position conditions. If so, the node is the target binary tree node of the large aspect ratio graphic in the target index band; if not, judging whether the spatial position of the large aspect ratio graphic to be matched in the length direction is less than the length direction spatial position conditions. If so, continue searching in the left subtree of the binary tree; if so, continue searching in the right subtree of the binary tree; repeat the above steps until a matching target binary tree node is found.

[0080] In a specific embodiment, the method of performing a binary tree node matching operation on each high aspect ratio graphic further includes the following steps.

[0081] ① Obtain the rectangular layout area of ​​the target layout file and construct a layout coordinate system based on the rectangular layout area.

[0082] Among them, the x-axis direction of the layout coordinate system is the length direction of the rectangular layout area, and the y-axis direction is the width direction of the layout area.

[0083] It should be noted that the method of constructing the layout coordinate system in this embodiment is consistent with the method provided in the above embodiment, and for the sake of brevity, it will not be repeated.

[0084] ② Calculate the minimum length of the rectangular layout area in the layout coordinate system , the median value in the length direction And the maximum value in the length direction .

[0085] Among them, the length direction median value of the rectangular layout area Requirements: .

[0086] ③ Get the outer bounding rectangle of the large aspect ratio graphic to be matched, and calculate the minimum length direction of the outer bounding rectangle in the layout coordinate system And the maximum value in the length direction .

[0087] ④ If the length direction of the outer enclosing rectangle is the minimum And the maximum value in the length direction Requirements: , then determine the binary tree root node as the target binary tree node of the large aspect ratio graph, such as Figure 5 shown.

[0088] ⑤ If the length direction of the outer enclosing rectangle is the minimum And the maximum value in the length direction Requirements: , then determine whether the left child node of the binary tree root node is the target binary tree node of the large aspect ratio graphic, such as Figure 5 As shown, if the minimum length direction of the outer bounding rectangle is And the maximum value in the length direction satisfy: , then this node is the target binary tree node of the large aspect ratio graph.

[0089] ⑥ If the length direction of the outer bounding rectangle is the minimum And the maximum value in the length direction satisfy: , then determine whether the right child node of the binary tree root node is the target binary tree node of the large aspect ratio graphic, such as Figure 5 As shown, if the minimum length direction of the outer bounding rectangle is And the maximum value in the length direction satisfy: , then this node is the target binary tree node of the large aspect ratio graph.

[0090] ⑦ Otherwise, repeat the above steps until a matching target binary tree node is found.

[0091] It should be noted that, by using the minimum value in the length direction of the outer bounding rectangle And the maximum value in the length direction , determining the position of the outer enclosing rectangle in the rectangular layout area to match the target binary tree node is only a preferred embodiment provided by this application. Users can choose other methods to match the target binary tree node according to their needs, and this application does not specifically limit it.

[0092] Step S106: obtaining storage addresses of graphics with different aspect ratios, and storing the storage addresses in target binary tree nodes of the graphics with different aspect ratios, respectively, and updating the spatial index database of the target layout file.

[0093] In one embodiment, the binary tree node stores the width value, the spatial position in the width direction, the spatial position in the length direction, and the storage address of one or more graphics with a large aspect ratio.

[0094] To speed up layout design and increase efficiency, this application provides a method for constructing a spatial index for graphics with large aspect ratios after reading a target layout file. Based on the characteristics of each polygonal graphic in the target layout file being relatively large in aspect ratio, having a width that conforms to grouping characteristics, and exhibiting a banded distribution in the width direction, a method is used to rapidly construct multiple banded index structures comprising multiple index bands with banded distributions, thereby rapidly constructing and updating a spatial index database for the target layout file. This method improves the retrieval speed and efficiency of graphics with various aspect ratios, and addresses the technical issues of existing spatial indexing technologies, such as poor applicability to polygonal graphics in the target layout file, long index construction time, and limited retrieval efficiency.

[0095] like Figure 6 FIG2 is a flow chart showing a method for retrieving a large aspect ratio graphic according to an embodiment of the present application. The method for retrieving a large aspect ratio graphic is used to retrieve one or more target large aspect ratio graphics in a target layout file based on a spatial index database constructed by any of the methods for constructing a spatial index for large aspect ratio graphics provided in the above embodiments.

[0096] Specifically, such as Figure 6 As shown, the large aspect ratio graphic retrieval method includes steps S201 to S205.

[0097] Step S201: Filter one or more search conditions for searching each target high aspect ratio graphic according to the acquired search statement, and thereby obtain a width search condition, a width direction spatial position search condition, and a length direction spatial position search condition for searching each target high aspect ratio graphic.

[0098] It should be noted that the width retrieval condition defines the width value of each target large aspect ratio graphic; the width direction spatial position retrieval condition defines the spatial position of each target large aspect ratio graphic in the width direction, that is, it defines the y-axis coordinate range of each target large aspect ratio graphic in the layout coordinate system; the length direction spatial position retrieval condition defines the spatial position of each target large aspect ratio graphic in the length direction, that is, it defines the x-axis coordinate range of each target large aspect ratio graphic in the layout coordinate system.

[0099] Step S202: Filter one or more target band index structures based on a width search condition for searching each target large aspect ratio graphic.

[0100] Step S203: Based on the retrieval condition for the width direction spatial position of each target high-aspect-ratio graphic, one or more target index bands are sequentially selected in each target band index structure.

[0101] Step S204: based on the longitudinal spatial position search condition for searching each target large aspect ratio graphic, one or more target binary tree nodes are sequentially selected in each target index band.

[0102] Step S205 : acquiring the storage address of each target high-aspect-ratio graphic according to each target binary tree node, and then acquiring each target high-aspect-ratio graphic.

[0103] It should be understood that the embodiment of the large aspect ratio graphic retrieval method and the embodiment of the spatial index construction method for large aspect ratio graphics provided in the above embodiments belong to the same concept. The structure of the spatial index database used by the large aspect ratio graphic retrieval method and the matching operation method performed on each large aspect ratio graphic have been described in detail in the above method embodiments. For the sake of brevity, they will not be repeated here.

[0104] like Figure 7 FIG2 is a schematic diagram showing a structure of a spatial index construction system 700 for graphics with a large aspect ratio according to an embodiment of the present invention. The spatial index construction system 700 for graphics with a large aspect ratio comprises: a graphics screening module 710 , a database construction module 720 , and a database update module 730 .

[0105] The database updating module 730 is connected to the graphic screening module 710 and the database building module 720 respectively.

[0106] The graphic screening module 710 is used to read multiple layout layers in the target layout file, obtain the outer bounding rectangles of multiple polygonal graphics in each layout layer, and calculate the aspect ratio of each outer bounding rectangle to screen one or more graphics with a large aspect ratio.

[0107] The database construction module 720 is used to construct a spatial index database for the target layout file. The spatial index database includes multiple band-like index structures, each of which includes multiple index bands. Each index band is constructed as a binary tree, including one or more binary tree nodes.

[0108] The database update module 730 includes: an index structure matching unit 731, an index band matching unit 732, a binary tree node matching unit 733 and a database update unit 734. Figure 7 As shown, the index structure matching unit 731, the index band matching unit 732, the binary tree node matching unit 733 and the database updating unit 734 are connected in sequence and are respectively connected to the graphic screening module 710 and the database construction module 720.

[0109] The index structure matching unit 731 is configured to perform index structure matching operations on each of the graphics with different aspect ratios based on the width values ​​of the graphics with different aspect ratios, and obtain target band index structures for the graphics with different aspect ratios.

[0110] The index band matching unit 732 is configured to perform index band matching operations on each of the aspect ratio graphics based on their spatial positions in the width direction, and obtain target index bands of each of the aspect ratio graphics in the target band index structure.

[0111] The binary tree node matching unit 733 is used to perform binary tree node matching operations on each aspect ratio graphic based on the spatial position of each aspect ratio graphic in the length direction, and obtain target binary tree nodes of each aspect ratio graphic in the target index band.

[0112] The database updating unit 734 is used to obtain the storage addresses of the graphics with different aspect ratios, and store the storage addresses in the target binary tree nodes of the graphics with different aspect ratios, and update the spatial index database of the target layout file.

[0113] It should be understood that the embodiment of the spatial index construction system for large aspect ratio graphics and the embodiment of the spatial index construction method for large aspect ratio graphics provided in the above embodiments belong to the same concept. The implementation methods of the various modules and units of the spatial index construction system 700 for large aspect ratio graphics have been described in detail in the above method embodiments. For the sake of brevity, they will not be repeated here.

[0114] It should also be understood that the division of modules and units in the embodiments of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods. In addition, the functional modules and functional units in the various embodiments of the present application can be integrated into a processor, or can exist physically separately, or two or more modules can be integrated into a module. The above-mentioned integrated modules or units can be implemented in the form of hardware or in the form of software functional modules or units.

[0115] The spatial index construction method for large aspect ratio graphics and the large aspect ratio graphics retrieval method provided in each embodiment of the present application can be implemented on the terminal side or the server side, or completed through hardware related to the computer program.

[0116] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

[0117] In summary, the present application provides a spatial index construction method, retrieval method and system for large aspect ratio graphics. When reading a target layout file, one or more large aspect ratio graphics are screened and a corresponding spatial index database is constructed; by performing a matching operation on the screened large aspect ratio graphics, the target band index structure, target index band and target binary tree node of each large aspect ratio graphic in the spatial index database are gradually matched to store the storage address of each large aspect ratio graphic in the corresponding target binary tree node, and update the spatial index database; thereby realizing the rapid construction of the spatial index database and the ability to quickly retrieve and locate the target large aspect ratio graphic in the target layout file during layout design, thereby solving the technical problems of the existing spatial index technology in terms of poor applicability to polygonal graphics in the target layout file, long index construction time and limited retrieval efficiency.

[0118] Therefore, the present invention effectively overcomes various shortcomings of the prior art and has high industrial utilization value.

[0119] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical concepts disclosed in this application shall be covered by the claims of this application.

Claims

1. A method for constructing a spatial index for graphics with a large aspect ratio, characterized in that: include: Read multiple layout layers in the target layout file, and obtain the outer bounding rectangles of multiple polygonal graphics in each layout layer, and calculate the aspect ratio of each outer bounding rectangle to select one or more graphics with a large aspect ratio; Constructing a spatial index database of the target layout file; wherein the spatial index database includes a plurality of band index structures, each band index structure includes a plurality of index bands; each index band is constructed with a binary tree including one or more binary tree nodes; Based on the width values ​​of the graphics with different aspect ratios, index structure matching operations are performed on the graphics with different aspect ratios to obtain target band index structures of the graphics with different aspect ratios; Based on the spatial positions of the graphics with different aspect ratios in the width direction, index band matching operations are performed on the graphics with different aspect ratios respectively to obtain target index bands of the graphics with different aspect ratios in the target band index structure; Based on the spatial positions of the graphics with different aspect ratios in the length direction, a binary tree node matching operation is performed on each of the graphics with different aspect ratios to obtain target binary tree nodes of the graphics with different aspect ratios in the target index band; The storage addresses of the graphics with different aspect ratios are obtained, and the storage addresses are respectively stored in the target binary tree nodes of the graphics with different aspect ratios, and the spatial index database of the target layout file is updated.

2. The method for constructing a spatial index for a large aspect ratio graphic according to claim 1, wherein: Each band index structure is used to store one or more large aspect ratio graphics that meet different graphic width conditions; wherein the method of performing the index structure matching operation on each large aspect ratio graphic includes: Obtaining a graphic width condition of each band index structure according to a first data identifier of each band index structure in the spatial index database; The width value of the high aspect ratio graphic to be matched is compared with the graphic width conditions of each band index structure, and the matching graphic width conditions are screened to use the corresponding band index structure as the target band index structure of the high aspect ratio graphic.

3. The method for constructing a spatial index for a large aspect ratio graphic according to claim 1, wherein: Each index band is used to store one or more large aspect ratio graphics that meet different width direction spatial position conditions; wherein the method of performing the index band matching operation on each large aspect ratio graphic includes: Obtaining a widthwise spatial position condition of each index band according to the second data identifier of each index band in the target banded index structure; The spatial position of the large aspect ratio graphic to be matched in the width direction is compared with the spatial position conditions in the width direction of each index band, and the matching spatial position conditions in the width direction are screened to use the corresponding index band as the target index band of the large aspect ratio graphic in the target band index structure.

4. The method for constructing a spatial index for a large aspect ratio graphic according to claim 3, wherein: The method of performing the index band matching operation on each large aspect ratio graphic also includes: Obtain a rectangular layout area of ​​the target layout file, and construct a layout coordinate system based on the rectangular layout area; wherein the x-axis direction of the layout coordinate system is the length direction of the rectangular layout area, and the y-axis direction is the width direction of the layout area; Obtaining a graphic width condition W of the target band index structure according to the first data identifier of the target band index structure; According to the second data identifier of each index band in the target band index structure, the width direction spatial position condition of each index band storing the large aspect ratio graphics based on the layout coordinate system is obtained. ;in, as well as They are the first The minimum value and the maximum value of the width direction of each aspect ratio graphic stored in the layout coordinate system; Get the outer bounding rectangle of the large aspect ratio graphic to be matched, and calculate the minimum width direction of the outer bounding rectangle in the layout coordinate system ; If the width of the outer bounding rectangle is the minimum Satisfy the spatial position conditions in the width direction of an index band , then the index band is the target index band of the large aspect ratio graphic in the target band index structure.

5. The method for constructing a spatial index of a graphic with a large aspect ratio according to claim 1, wherein: Each binary tree node is used to store one or more large aspect ratio graphics that meet different length direction spatial position conditions; wherein the method of performing the binary tree node matching operation on each large aspect ratio graphic includes: Based on the binary tree of the target index band, search from the root node of the binary tree to obtain the longitudinal spatial position conditions of the nodes storing the large aspect ratio graphics, and determine whether the longitudinal spatial position of the large aspect ratio graphics to be matched meets the longitudinal spatial position conditions. If so, the node is the target binary tree node of the large aspect ratio graphics in the target index band; If not, determine whether the spatial position of the large aspect ratio graphic to be matched in the length direction is less than the length direction spatial position condition. If it is less than the length direction spatial position condition, continue searching in the left subtree of the binary tree; if it is greater than the length direction spatial position condition, continue searching in the right subtree of the binary tree. Repeat the above steps until a matching target binary tree node is found.

6. The method for constructing a spatial index for a large aspect ratio graphic according to claim 5, wherein: The method of performing the binary tree node matching operation on each large aspect ratio graphic also includes: Obtain a rectangular layout area of ​​the target layout file, and construct a layout coordinate system based on the rectangular layout area; wherein the x-axis direction of the layout coordinate system is the length direction of the rectangular layout area, and the y-axis direction is the width direction of the layout area; Calculate the minimum length of the rectangular layout area in the layout coordinate system , the median value in the length direction And the maximum value in the length direction ; Among them, the length direction median value of the rectangular layout area Requirements: ; Get the outer bounding rectangle of the large aspect ratio graphic to be matched, and calculate the minimum length direction of the outer bounding rectangle in the layout coordinate system And the maximum value in the length direction ; If the minimum length of the outer bounding rectangle And the maximum value in the length direction Requirements: , then determine the binary tree root node as the target binary tree node of the large aspect ratio graphic; If the minimum length of the outer bounding rectangle And the maximum value in the length direction satisfy: , then determine whether the left child node of the binary tree root node is the target binary tree node of the large aspect ratio graphic. If the length direction of the outer bounding rectangle is the minimum value And the maximum value in the length direction satisfy: , then the node is the target binary tree node of the large aspect ratio graph; If the minimum length of the outer bounding rectangle And the maximum value in the length direction satisfy: , then determine whether the right child node of the binary tree root node is the target binary tree node of the large aspect ratio graphic. If the length direction of the outer bounding rectangle is the minimum value And the maximum value in the length direction satisfy: , then the node is the target binary tree node of the large aspect ratio graph; Otherwise, repeat the above steps until a matching target binary tree node is found.

7. The method for constructing a spatial index for a large aspect ratio graphic according to claim 1, wherein: One way to filter out graphics with large aspect ratios is to: Get the outer bounding rectangle of the polygon and calculate the initial length and initial width of the outer bounding rectangle; A right shift operation is performed on the initial length value, and the obtained doubled length value is compared with the initial width value. If the doubled length value is greater than the initial width value, the polygonal figure is determined to be a large aspect ratio figure.

8. The method for constructing a spatial index for a large aspect ratio graphic according to claim 1, wherein: Another way to filter out graphics with large aspect ratios is to: Get the outer bounding rectangle of the polygon and calculate the initial length and initial width of the outer bounding rectangle; A left shift operation is performed on the initial width value, and the obtained multiplied width value is compared with the initial length value. If the multiplied width value is smaller than the initial length value, the polyhedral graphic is determined to be a graphic with a large aspect ratio.

9. A method for retrieving graphics with a high aspect ratio, for retrieving one or more target graphics with a high aspect ratio in a target layout file based on a spatial index database constructed by the method for constructing a spatial index for graphics with a high aspect ratio according to any one of claims 1 to 8, characterized in that: include: According to the obtained search statement, one or more search conditions for searching each target large aspect ratio graphic are screened, and accordingly, a width search condition, a width direction spatial position search condition, and a length direction spatial position search condition for searching each target large aspect ratio graphic are obtained; Filtering one or more target band index structures based on a width search condition for searching each target large aspect ratio graphic; Based on a retrieval condition for the width direction spatial position of each target large aspect ratio graphic, one or more target index bands are sequentially selected in each target band index structure; Based on the retrieval condition of the length direction spatial position of each target large aspect ratio graphic, one or more target binary tree nodes are sequentially selected in each target index band; According to each target binary tree node, the storage address of each target large aspect ratio graphic is obtained, and then each target large aspect ratio graphic is obtained.

10. A spatial index construction system for graphics with large aspect ratios, characterized in that: include: A graphics screening module is used to read multiple layout layers in the target layout file, obtain the outer bounding rectangles of multiple polygonal graphics in each layout layer, and calculate the aspect ratio of each outer bounding rectangle to screen one or more graphics with a large aspect ratio; A database construction module is used to construct a spatial index database of the target layout file; wherein the spatial index database includes a plurality of band index structures, each band index structure includes a plurality of index bands; each index band is constructed with a binary tree including one or more binary tree nodes; The database update module is connected to the graphic screening module and the database construction module, and includes: an index structure matching unit, connected to the graphic screening module and the database construction module, for performing index structure matching operations on each of the graphics with different aspect ratios based on the width values ​​of the graphics with different aspect ratios, to obtain target band index structures for the graphics with different aspect ratios; an index band matching unit, connected to the graphic screening module, the database construction module, and the index structure matching unit, respectively, for performing an index band matching operation on each of the graphics with different aspect ratios based on their spatial positions in the width direction, to obtain target index bands of each of the graphics with different aspect ratios in the target band index structure; A binary tree node matching unit, connected to the graphic screening module, the database construction module, and the index band matching unit, for performing a binary tree node matching operation on each of the graphics with different aspect ratios based on their spatial positions in the longitudinal direction, to obtain a target binary tree node for each of the graphics with different aspect ratios in a target index band; The database update unit is respectively connected to the graphic screening module, the database construction module and the binary tree node matching unit, and is used to obtain the storage addresses of the graphics of each major aspect ratio, and store each storage address in the target binary tree node of the graphics of each major aspect ratio, and update the spatial index database of the target layout file.

Citation Information

Patent Citations

  • Spatial index query method, device and equipment and computer readable storage medium

    CN115708079A

  • Processing method suitable for agf file, computer equipment and readable storage medium

    CN115796111A

  • Candidate edge rapid construction method for design rule inspection

    CN117933186A

  • Method and system for graphic data management, and storage medium

    JP2001014338A

  • Electrothermal rod

    KR1020220032819A