A method for placing ports in a layout
By dividing the port position into basic feature positions and combining and sorting, position rules are generated, the complexity of port placement design in the special-shaped screen is solved, and flexible port placement and design efficiency are improved.
Patent Information
- Application Number
- CN202310080542.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-08
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2043-02-08
AI Technical Summary
In the prior art, the port placement design of the special-shaped area screen requires manual distinction and verification, resulting in high error rate and large labor time consumption, and it is impossible to effectively realize flexible port placement under complex screen shapes.
By dividing the port location into different types of basic feature locations, combining and sorting, generating position rules, and binding port locations, the port locations are achieved to achieve flexible port placement. The specific steps include filling type division, area division, basic feature position classification and combination, using addition, subtraction, and logical combination, sorting and binding position rules, and using port classifiers for dynamic display and binding.
It realizes flexible and convenient placement of ports in the special-shaped layout, reduces error rate and labor time consumption, and improves design efficiency.
Smart Images

Figure CN116090397B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuit layout design, and in particular to a method for placing ports in a layout. Background Art
[0002] In the existing technology, full screen has become the standard configuration of mobile smart terminals such as mobile phones, including full screen from "forehead" and "chin", "bangs screen", "rabbit tooth screen", "water drop screen", and the currently popular "hole screen". The screen size of mobile phones has also changed from the original 16:9 to the current 18:9, the right-angle screen has become a rounded-angle screen, and it is also equipped with different hole designs for cameras.
[0003] The above-mentioned complex screen shape poses a more severe test to the port placement design of the special-shaped area. In order for the screen in the special-shaped area to display normally, different ports need to be placed in different positions (there are multiple layers of ports and multiple types that need to be placed according to the positions). Since the design of special-shaped screens, panel design engineers have been manually distinguishing and placing ports, with a very high error rate and requiring a lot of man-hours for inspection, verification and modification. Summary of the invention
[0004] In order to solve the defects of the prior art, the purpose of the present invention is to provide a port placement method in a layout, which summarizes the port positions into different types of basic characteristic positions, and flexibly assembles the required positions through the combination of basic characteristic positions, so as to realize convenient and flexible placement of complex ports.
[0005] In order to achieve the above object, the present invention provides a method for placing ports in a layout, comprising the following steps:
[0006] According to the function of the port placement and the corresponding port position, all port position types are divided into filling types;
[0007] According to the relative position of the ports in the panel layout, the locations where the ports need to be placed are divided into areas;
[0008] Classify and combine the basic characteristic positions of the port positions in each area to generate position rules;
[0009] Bind location rules and ports to achieve port placement.
[0010] Furthermore, the filling types include: row filling, column filling, row and column filling, alternate row filling, alternate column filling, and diagonal filling.
[0011] Furthermore, the area includes: upper left, upper right, lower left, lower right, upper straight edge, lower straight edge, left straight edge, right straight edge, and an internal designated area.
[0012] Furthermore, the step of classifying and combining the basic characteristic positions of the port positions in each area to generate position rules further includes:
[0013] The basic feature positions are divided into the following types:
[0014] Column: First Column, Last Column, Corner, Select All;
[0015] Row: First row, First column, Corner, Select all;
[0016] Rows and columns: the first in each column, the middle of each column, the connected corners, the last in each column, select all;
[0017] The basic characteristic positions are combined as follows: addition combination, subtraction combination, logical combination and logical combination or logical combination and non-logical combination;
[0018] Sort the port position combinations, wherein the port positions filled in rows are sorted left to right, and the port positions filled in columns are sorted up and down;
[0019] During the sorting process, all port position combinations are classified and combined according to the region and sorted in the order of loop 1 to 8;
[0020] Calculate the connection relationship between port locations in different areas and different combinations, and generate location rules.
[0021] Furthermore, the addition combination further includes: adding a subsequent basic feature position based on the previous basic feature position result, performing an OR logic operation on multiple basic feature positions to obtain a merged port position combination.
[0022] Furthermore, the subtraction combination further includes: subtracting a subsequent basic feature position from the previous basic feature position result, performing non-logical operations on multiple basic feature positions, and obtaining a deleted port position combination.
[0023] Furthermore, the step of binding position rules and ports to achieve port placement also includes: binding the name of the port position combination with the combination method, distinguishing them by different colors, and displaying them in a dynamically drawn thumbnail, wherein the thumbnail is a proportional reduction of the panel layout.
[0024] In order to achieve the above-mentioned purpose, the present invention also provides a port classifier, including: a position combination editor, which is used to implement the port placement method in the layout as described above.
[0025] In order to achieve the above-mentioned purpose, the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a program running on the processor, and when the processor runs the program, the steps of the port placement method in the above-mentioned layout are executed.
[0026] In order to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the port placement method in the layout as described above is implemented.
[0027] The port placement method in the layout provided by the present invention has the following beneficial effects compared with the prior art:
[0028] The various port position types in the layout are classified into basic characteristic positions, and the required positions are flexibly assembled through the combination of basic characteristic positions, so as to realize the convenient and flexible placement of ports in special-shaped layouts.
[0029] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0031] Figure 1 A flow chart of a method for placing ports in a layout according to the present invention;
[0032] Figure 2 A schematic diagram of row filling according to the present invention;
[0033] Figure 3 A schematic diagram for filling a column according to the present invention
[0034] Figure 4 A schematic diagram of row and column filling according to the present invention;
[0035] Figure 5 A schematic diagram of the division of regions according to the present invention;
[0036] Figure 6 is an example of a basic characteristic position type according to the present invention;
[0037] Figure 7 is another example of a basic characteristic position type according to the present invention;
[0038] Figure 8 is another example of a basic characteristic position type according to the present invention;
[0039] Fig. 9 A schematic diagram of a combination method according to the present invention;
[0040] Fig.10 A schematic diagram of a reduction combination method according to the present invention;
[0041] Fig.11 A schematic diagram of all port positions according to the present invention;
[0042] Fig.12 is a schematic diagram of a port classifier interface according to the present invention;
[0043] Fig.13 is a schematic diagram of a position combination editor interface according to the present invention;
[0044] Fig.14 FIG. 2 is a schematic diagram of the structure of an electronic device according to the present invention. DETAILED DESCRIPTION
[0045] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0046] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0047] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0048] It should be noted that the concepts of “first”, “second”, etc. may be mentioned in the present invention only to distinguish different devices, components or parts, and are not used to limit the order or interdependence of the functions performed by these devices, components or parts.
[0049] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". "Plurality" should be understood as two or more.
[0050] Example 1
[0051] Figure 1 The following is a flow chart of the port placement method in the layout according to the present invention. Figure 1 , the port placement method in the layout of the present invention is described in detail.
[0052] In step 101, all port position types are divided into filling types according to the functions of the ports and the positions of the corresponding ports.
[0053] In the embodiment of the present invention, the various types of port positions existing in the layout are divided into row filling, column filling, and row and column filling according to the functions of the ports and the positions of the corresponding ports. Figure 2 , Figure 3 and Figure 4 As shown, you can freely select the filling type through the Placement Editor interface parameter Placing Type, such as Fig.13 shown.
[0054] It should be noted that, in other embodiments of the present invention, the filling type is not limited to row filling, column filling or row and column filling, but may also be alternate row filling, alternate column filling, diagonal filling, etc.
[0055] In step 102, the locations where the ports need to be placed are divided into regions according to the relative positions of the ports in the panel layout.
[0056] In the embodiment of the present invention, reference Figure 5 According to the relative position of the ports in the panel layout, the positions where the ports need to be placed are divided into eight areas: upper left, upper right, lower left, lower right, upper / lower straight edges, and left / right straight edges.
[0057] In other embodiments of the present invention, the placement area of the relative position of the port and the layout is not limited to the above eight areas, but may also include an internal designated area.
[0058] In step 103, the port positions in each area are classified and combined according to basic characteristic positions to generate position rules.
[0059] In the embodiment of the present invention, the various port positions in each area are summarized into different types of basic characteristic positions, such as Figure 6 , Figure 7 and Figure 8 As shown, the results are summarized as follows:
[0060] Column: First Column, Last Column, Corner, All;
[0061] Row: First Row, Last Row, Corner, All;
[0062] Rows and columns (Both): The first one in each column (Column Head), the middle of each column (Inner in Column), the connected corner (Column Inner Corner), the last one in each column (Column Tail), and all (All).
[0063] Therefore, all port positions are summarized into more than ten basic characteristic positions.
[0064] In the embodiment of the present invention, the above basic characteristic positions are combined in the following two combinations:
[0065] 1) Add combination: reference Fig. 9 , add the next basic feature position based on the previous basic feature position result, and perform OR logic operation on multiple basic feature positions to obtain a merged port position combination.
[0066] 2) Reduce combination: reference Fig.10 , deduct the next basic feature position based on the previous basic feature position result, and perform non-logical operations on multiple basic feature positions to obtain the deleted port position combination.
[0067] This step also includes sorting the port position combinations, where row filling supports left-right sorting and column filling supports top-bottom sorting. During the sorting process, all port position combinations are classified and combined according to the region, supporting the sorting order of cycle 1-8. During the sorting process, the connection relationship between different regions and different combinations will be automatically calculated, such as the last port of combination n in region m is cycle a, and the first port of combination n+1 is cycle a+1; the last port of the last combination in region m is cycle b, and the first port of the first combination in region m+1 is cycle b+1.
[0068] It should be noted that, in other embodiments of the present invention, the method of combining the basic characteristic positions is not limited to addition and subtraction, and may also be combined in a logical AND, logical NAND, or other combination manners.
[0069] In step 104, the location rules and ports are bound to achieve port placement.
[0070] Further, the names of the port position combinations are bound to the combination methods, and are distinguished by different colors, and displayed in a dynamically drawn thumbnail, which is a proportional reduction of the panel layout. Using dynamic drawing, different placement positions are intuitively distinguished by different colors, which can intuitively and realistically display the location information of the port to be placed.
[0071] In the embodiment of the present invention, by binding the position rule with the port, the corresponding port can be placed at the bound position, thereby realizing the placement of multiple ports.
[0072] Fig.11 is a schematic diagram of all port positions according to the present invention, such as Fig.11 As shown, the location information of the port to be placed is displayed intuitively and realistically, eliminating the need for design engineers to repeatedly search for the location to be placed in a huge layout.
[0073] Example 2
[0074] In order to help panel designers to intuitively, conveniently and flexibly complete the placement of ports, the present invention also provides a port classifier for placing complex ports in a special-shaped layout, which is used to summarize the port positions into more than ten basic characteristic positions, flexibly assemble and configure the required positions and can be repeatedly called. The port classifier supports assembling and describing the placement position rules of the same type of ports, and through dynamic drawing, different placement positions are intuitively distinguished by different colors. It supports saving the assembly rules as templates, which is convenient for importing and reuse, and greatly reduces the workload in panel design of similar ports.
[0075] The port classifier of the present invention includes a position combination editor that can perform position rule combination. The position combination editor has the following characteristics:
[0076] Contains a variety of fill types, not limited to row fill, column fill or row and column fill, but also includes alternate row fill, alternate column fill, diagonal fill, etc.;
[0077] Contains a variety of relative layout areas, not limited to upper left, upper right, lower left, lower right, upper / lower straight edges and left / right straight edges, but also includes designated internal areas;
[0078] The basic characteristic positions can be combined, which is not limited to the two combinations of addition and subtraction, and also includes logical AND, logical NOT and other combinations.
[0079] Fig.12 This is a schematic diagram of the port classifier interface designed according to the present invention. This tool is mainly used for drawing ports in the luminous area of special-shaped layouts and is placed in the xpanel (graphic interface design) toolbar. Fig.13 This is a schematic diagram of the location editor interface according to the present invention, combined with reference Fig.12 and Fig.13, perform the following steps:
[0080] 1) Open the Position Combination Editor in the Port Classifier interface;
[0081] 2) In the Placement Editor interface, select a fill type in Placing Type: By Row / By Column / By Both.
[0082] 3) In the Position Combination Editor interface, select a port in the panel layout relative placement area in Rule Location, such as upper left, upper right, lower left, lower right, upper / lower straight edge, and left / right straight edge;
[0083] 4) combining the basic characteristic positions in the current placement area, for example, by adding or subtracting, to obtain a set of position combinations;
[0084] 5) Repeat steps 3-4 until all placement areas and all positions that need to be placed in the areas can be completely occupied by combining the stacking;
[0085] 6) Repeat steps 2-5 until the location rules for dozens of types of Layer 3 ports are edited;
[0086] 7) Return to the classifier interface and refer to Fig.12 By binding the location rules to the ports, the corresponding ports can be placed at the bound positions, thus realizing the placement of dozens of ports.
[0087] The present invention places a classifier of complex ports in a special-shaped layout, and supports exporting the current position rules as a template, which can be directly called next time.
[0088] The classifier of the present invention, which arranges complex ports in a special-shaped layout, can be applied not only to the special-shaped layout but also to the rectangular layout.
[0089] Example 3
[0090] In an embodiment of the present invention, an electronic device is also provided. Fig.14 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Fig.14 As shown, the electronic device of the present invention includes a processor 1401 and a memory 1402, wherein:
[0091] The memory 1402 stores a computer program, and when the computer program is read and executed by the processor 1401, the computer program executes the steps in the embodiment of the port placement method in the above-mentioned layout.
[0092] Example 4
[0093] In an embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the steps in the embodiment of the port placement method in the above-mentioned layout when running.
[0094] In this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0095] Those skilled in the art can understand that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for placing ports in a layout. It is characterized in that The following steps are included: According to the function of the port placement and the corresponding port position, all port position types are divided into filling types; According to the relative position of the ports in the panel layout, the locations where the ports need to be placed are divided into areas; Classify and combine the basic characteristic positions of the port positions in each area to generate position rules; Bind location rules and ports to achieve port placement; The step of classifying and combining the basic characteristic positions of the port positions in each area to generate position rules further includes: The basic feature positions are divided into the following types: Column: First Column, Last Column, Corner, Select All; Row: First row, First column, Corner, Select all; Rows and columns: the first in each column, the middle of each column, the connected corners, the last in each column, select all; The basic characteristic positions are combined as follows: addition combination, subtraction combination, logical combination and logical combination or logical combination and non-logical combination; Sorting the port position combinations, wherein the port positions filled in rows are sorted left and right, and the port positions filled in columns are sorted up and down; in the sorting process, all the port position combinations are classified and combined according to the regions, and sorted according to the sorting order of cycles 1 to 8; calculating the connection relationship between the port positions in different regions and different combinations, and generating position rules; The step of binding position rules and ports to realize the placement of ports also includes: binding the name of the port position combination with the combination method, distinguishing them by different colors, and displaying them in a dynamically drawn thumbnail, wherein the thumbnail is a proportional reduction of the panel layout.
2. The method for placing ports in a layout according to claim 1, It is characterized in that The filling types include: row filling, column filling, row and column filling, alternate row filling, alternate column filling, and diagonal filling.
3. The method for placing ports in a layout according to claim 1, It is characterized in that The area includes: upper left, upper right, lower left, lower right, upper straight edge, lower straight edge, left straight edge, right straight edge, and an internal designated area.
4. The method for placing ports in a layout according to claim 1, It is characterized in that The adding combination further includes: adding a subsequent basic feature position based on the previous basic feature position result, performing an OR logic operation on multiple basic feature positions to obtain a merged port position combination.
5. The method for placing ports in a layout according to claim 1, It is characterized in that The subtraction combination further includes: subtracting a subsequent basic feature position from the previous basic feature position result, performing non-logical operations on multiple basic feature positions, and obtaining a deleted port position combination.
6. A port classifier, It is characterized in that include: A position combination editor is used to implement the port placement method in the layout described in any one of claims 1-5.
7. An electronic device, It is characterized in that It includes a memory and a processor, wherein the memory stores a program running on the processor, and the processor executes the steps of the port placement method in the layout described in any one of claims 1-5 when running the program.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the port placement method in the layout described in any one of claims 1-5 are implemented.
