CN111581684A - Object placing method based on layout design - Google Patents
Object placing method based on layout design Download PDFInfo
- Publication number
- CN111581684A CN111581684A CN202010396791.XA CN202010396791A CN111581684A CN 111581684 A CN111581684 A CN 111581684A CN 202010396791 A CN202010396791 A CN 202010396791A CN 111581684 A CN111581684 A CN 111581684A
- Authority
- CN
- China
- Prior art keywords
- coordinate
- origin
- point
- layout design
- relative position
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 15
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Document Processing Apparatus (AREA)
Abstract
An object placement method based on layout design comprises the following steps: 1) reading parameter information of an object to be placed recorded by the shear plate; 2) calculating the relative position of the central coordinate of the object to be placed and the origin of the coordinate; 3) and selecting a placement point, taking the placement point as a coordinate origin, and placing the object to be placed according to the relative position of the central coordinate of the object to be placed and the coordinate origin. The object placing method based on Layout design can quickly achieve the aim when the special relative position between the object and the Layout is required to be considered in the Layout design for placing.
Description
Technical Field
The invention relates to the technical field of EDA tool layout design, in particular to a placement method of an object in layout design.
Background
The Sudoku is one of the existing position methods for placing the object in the Layout of the Layout. If the position relation with surrounding objects needs to be considered when placing the objects, the Sudoku can meet the requirements in the situation only after other measurement means are used.
Fig. 3 is a schematic diagram of placing an object by using a nine-square grid in the prior art, as shown in fig. 3, if a nine-square grid placing mode is used, the distance between the upper right corner of an object a and the lower left corner of an object B needs to be 1 in the Y negative direction and 0.5 in the X left direction, a placing point needs to be found by using a measuring means first, and then a placing reference point of the object a (adjusted to the upper right corner of the object a, and then the placing reference point of the object is moved to a point needing to be placed (coinciding with the placing reference point) to be placed by using the nine-square grid.
Disclosure of Invention
In order to solve the defects in the prior art, the invention aims to provide an object placing method based on Layout design, which can quickly achieve the aim when a special relative position between the object and the Layout is required to be considered in Layout design for placing.
In order to achieve the above object, the object placing method based on layout design provided by the invention comprises the following steps:
1) reading parameter information of an object to be placed recorded by the shear plate;
2) calculating the relative position of the central coordinate of the object to be placed and the origin of the coordinate;
3) and selecting a placement point, taking the placement point as a coordinate origin, and placing the object to be placed according to the relative position of the central coordinate of the object to be placed and the coordinate origin.
Further, the parameter information includes type information, coordinate point information, and hierarchy information of the object to be placed.
Further, the step 2) further comprises,
obtaining the central coordinate value x of the object to be placedObjectAnd yObject;
Obtaining the coordinate value x of the origin of the coordinate system where the object to be placed is positionedOrigin pointAnd yOrigin point;
The central coordinate value xObjectAnd yObjectAnd the origin coordinate value xOrigin pointAnd yOrigin pointStoring the data into an array;
further, the step 3) further comprises comparing the central coordinate values x respectivelyObjectAnd yObjectAnd determining the placing direction of the placed object according to the size of the coordinate origin.
To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed performs the steps of the layout design based object placement method as described above.
In order to achieve the above object, the present invention further provides an object placing apparatus based on layout design, including a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the steps of the object placing method based on layout design as described above when running the computer program.
The object placing method based on the layout design has the following beneficial effects:
1) when the device is placed in the Layout of the.
2) The purpose can be achieved without using other measuring means to prepare.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of an object placement method based on layout design according to the present invention;
FIG. 2 is a schematic view of an object placed in a relative positional relationship according to the present invention;
fig. 3 is a schematic diagram of placing an object by using a nine-square grid in the prior art.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Fig. 1 is a flowchart of an object placement method based on layout design according to the present invention, and the object placement method based on layout design according to the present invention will be described in detail with reference to fig. 1.
First, in step 101, a put command is initiated. In this step, a placing command containing this function is started, ensuring that the function can be used normally when an object is placed.
In step 102, coordinate information of the object to be placed recorded in the shear plate is read. In this step, when a placing command is initiated, the command functions to read coordinate information of an object to be placed in the clipboard.
In step 103, it is determined whether the function option of calculating relative position is turned on, if yes, step 104 is performed, otherwise step 105 is skipped. In the step, after the shape display of the actual object is started, a stage of selecting a placing mode is entered, and whether a corresponding switch is started or not is read to determine whether an algorithm for keeping a relative position or an algorithm for using a squared figure is used.
In step 104, the positional relationship between the placement point and the object to be placed is determined. In this step, a relative position preserving algorithm is used.
Preferably, the parameter information of the object to be placed in the clipboard is searched through the query function. In this step, the algorithm for maintaining the relative position searches for various types of parameter information of the object to be placed in the clipboard through the query function, such as type information of the object, coordinate point information of the object, object level information, and the like.
Preferably, a point function is used for obtaining coordinate point information of the object by taking out the query function, and a value x of the central coordinate of the object to be placed is obtainedObjectAnd yObjectReading the coordinate value x of the origin in the coordinate system of the object to be placedOrigin pointAnd yOrigin pointAnd storing the data into an array, and calculating the relative position of the object to be placed and the original point in the coordinate system by using a distance calculation formula after obtaining the data of the required point:
preferably, after the distance is obtained, the coordinate values of the object to be placed and the origin are compared respectively so as to determine the direction of the origin relative to the object to be placed, then the object obtained by query is placed in the object layout during placement, then the placement reference point is adjusted to replace the coordinate origin of the coordinate system where the object to be placed is located, and the adjusted placement reference point and the object to be placed still keep the relative position and distance obtained through calculation. In this step, the actual effect is equivalent to taking out the actual position relationship between the object and the origin and performing the moving operation, and the placement reference point coincides with the origin of the coordinate system where the object to be placed is located (at this time, the position relationship of the placement reference point of the object is equal to the position relationship between the origin and the object in the coordinate system where the object is located).
Fig. 2 is a schematic diagram of placing an object by applying a relative position relationship according to the present invention, as shown in fig. 2, the present invention places an object by applying a relative position relationship, and if the above condition is required to be satisfied, we only need to ensure that the relative position distance from the center point of the a object to be placed to the coordinate origin of the coordinate system of the a object satisfies the requirement (when a special relative position between the a object and the object is required to be considered during placement in a general Layout, an object meeting the condition with the origin is generally made).
After the function is started, various kinds of parameter information of the A object are obtained through a query function, then a center coordinate point of the A and an origin coordinate of a coordinate system where the A object is located are taken out through a point function, an actual distance between the A object and the origin coordinate is calculated through a distance formula, the A object is placed into the actual object, a placement reference point of the A object is adjusted to be overlapped with the origin coordinate of the coordinate system where the A object is located and replace the origin coordinate, the placement reference point keeps a relative position relation with the A object, the relative position relation between the A object and the placement reference point is called in a layout where the B object is located, and finally the relative position relation condition between the A object and the B object can be met by directly moving the placement reference point to a lower left corner point (a point needing to be placed) of the B object through a mouse, and the.
In step 105, a placement point is set on the object Bbox according to the squared figure. In this step, a Sudoku algorithm is used to adjust an object placement reference point within the object Bbox. As shown in fig. 3, by using the placing manner of the nine-square grid in the prior art, the distance between the upper right corner of the object a and the lower left corner of the object B needs to be 1 in the negative Y direction and 0.5 in the left X direction, a placing point needs to be found by using a measuring means, and then the placing reference point of the object a (adjusted to the upper right corner of the object a, and then the placing reference point of the object is moved to the point to be placed (coinciding with the placing reference point) to be placed by using the nine-square grid, which is complicated in process.
At step 106, the placement point is moved to the desired placement point for placement and ends.
The invention provides an object placing method based on layout design, which aims to solve the problem that when an object is placed by using a Sudoku method, a short plate which is complicated in process of considering the relative position relation of surrounding objects is needed, when a corresponding function is started, the object to be placed can meet the relative position relation with the rest object, the position coordinates of the object are detected firstly, and then the relative position relation with the original point is calculated after coordinate points of the object are obtained. Therefore, the relative position relationship between the actual object and the placing reference point when the function is started is determined (the placing reference point of the object is coincident with the original point of the object relative position after the function is started), and the purpose can be quickly achieved by using the function under the condition that the special relative position between the actual object and the object needs to be considered when the actual object is placed in the Layout of.
To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed performs the steps of the layout design based object placement method as described above.
In order to achieve the above object, the present invention further provides an object placing apparatus based on layout design, including a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the steps of the object placing method based on layout design as described above when running the computer program.
Those of ordinary skill in the art will understand that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (6)
1. An object placement method based on layout design is characterized by comprising the following steps:
1) reading parameter information of an object to be placed recorded by the shear plate;
2) calculating the relative position of the central coordinate of the object to be placed and the origin of the coordinate;
3) and selecting a placement point, taking the placement point as a coordinate origin, and placing the object to be placed according to the relative position of the central coordinate of the object to be placed and the coordinate origin.
2. The layout design-based object placement method according to claim 1, wherein the parameter information includes type information, coordinate point information, and hierarchy information of the object to be placed.
3. The layout-design-based object placement method according to claim 1, wherein said step 2) further comprises,
obtaining the central coordinate value x of the object to be placedObjectAnd yObject;
Obtaining the coordinate value x of the origin of the coordinate system where the object to be placed is positionedOrigin pointAnd yOrigin point;
The central coordinate value xObjectAnd yObjectAnd the origin coordinate value xOrigin pointAnd yOrigin pointStoring the data into an array;
4. the layout design-based object placement method according to claim 1, wherein the step 3) further comprises comparing the central coordinate values x respectivelyObjectAnd yObjectAnd determining the placing direction of the object to be placed according to the size of the coordinate origin.
5. A computer-readable storage medium, on which a computer program is stored, which computer program is operative to perform the steps of the layout-design-based object placement method of any one of claims 1 to 4.
6. An object placement device based on layout design, comprising a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor executes the steps of the object placement method based on layout design according to any one of claims 1 to 4 when running the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010396791.XA CN111581684A (en) | 2020-05-12 | 2020-05-12 | Object placing method based on layout design |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010396791.XA CN111581684A (en) | 2020-05-12 | 2020-05-12 | Object placing method based on layout design |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111581684A true CN111581684A (en) | 2020-08-25 |
Family
ID=72126512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010396791.XA Pending CN111581684A (en) | 2020-05-12 | 2020-05-12 | Object placing method based on layout design |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111581684A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1924748A (en) * | 2005-08-31 | 2007-03-07 | 索尼株式会社 | Image pickup apparatus and method for controlling the same |
US20120314229A1 (en) * | 2011-06-08 | 2012-12-13 | Xerox Corporation | Frame-based coordinate space transformations of graphical image data in an image processing system |
-
2020
- 2020-05-12 CN CN202010396791.XA patent/CN111581684A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1924748A (en) * | 2005-08-31 | 2007-03-07 | 索尼株式会社 | Image pickup apparatus and method for controlling the same |
JP2007065251A (en) * | 2005-08-31 | 2007-03-15 | Sony Corp | Imaging apparatus and control method for the same |
US20070092239A1 (en) * | 2005-08-31 | 2007-04-26 | Sony Corporation | Image pickup apparatus and method for controlling the same |
US20120314229A1 (en) * | 2011-06-08 | 2012-12-13 | Xerox Corporation | Frame-based coordinate space transformations of graphical image data in an image processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12220738B2 (en) | Systems and methods for compensating for spring back of structures formed through incremental sheet forming | |
CN111814905A (en) | Target detection method, target detection device, computer equipment and storage medium | |
CN115170580A (en) | Plate processing control method and device, computer equipment and storage medium | |
CN102567565A (en) | Cable parameter processing method and system utilizing same | |
US8645902B1 (en) | Methods, systems, and computer program products for implementing interactive coloring of physical design components in a physical electronic design with multiple-patterning techniques awareness | |
CN118887429A (en) | A fast matching method for layout pattern recognition using spatial index quadtree | |
CN114417443B (en) | Clothing design cutting method, system and storage medium | |
JP4230980B2 (en) | Pattern matching method and program | |
CN114444185B (en) | In-situ marking recognition method, device and electronic equipment | |
CN111581684A (en) | Object placing method based on layout design | |
CN115049371A (en) | Construction drawing pattern-die linkage examination marking method, system, device and storage medium | |
CN110866373B (en) | Method and device for quickly matching layout units | |
CN107783732A (en) | A kind of data read-write method, system, equipment and computer-readable storage medium | |
KR101977104B1 (en) | Spreadsheet driving apparatus for performing automatic function calculation based on cell range selection and operating method thereof | |
CN115601272B (en) | Point cloud data processing method, device and equipment | |
US9015645B1 (en) | Hierarchical electromigration analysis using intelligent connectivity | |
CN111080664B (en) | Data processing method and device, computer storage medium and computer | |
US8924773B1 (en) | Reducing file system data unavailability window by adapting hierarchical recovery framework | |
CN113253675B (en) | Two-dimensional-oriented three-axis tool location point operation method and system | |
CN116153224B (en) | Gray scale compensation method of pixel unit | |
CN105956239A (en) | Automatic alignment method and system of components in circuit design | |
CN118629067B (en) | Fault-tolerant processing method, system, storage medium and equipment for CAD geometric line segment | |
KR20250012146A (en) | Method and device for determining defects in scanning electron microscope images | |
CN116644703B (en) | Bitmap file generation method and device | |
CN119142827B (en) | Stacking method for panel furniture processing production line |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 610200 Chengdu City, Sichuan Province, Chengdu City, the Galactic Road, No. 596 scientific research complex 13 floor Applicant after: Chengdu Huada Jiutian Technology Co.,Ltd. Address before: 610200 Chengdu City, Sichuan Province, Chengdu City, the Galactic Road, No. 596 scientific research complex 13 floor Applicant before: CHENGDU JIUXIN MICRO TECHNOLOGY Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200825 |