Device and line network moving method, device, equipment and storage medium
By acquiring and analyzing the port information and center point information of the device, determining the network range and moving the leads in the network, the problem that devices and networks cannot move simultaneously in the prior art are solved, and precise synchronous movement of devices and networks is achieved.
Patent Information
- Application Number
- CN202110971656.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-23
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2041-08-23
AI Technical Summary
In the prior art, when moving the device, the wire network cannot be moved at the same time, resulting in errors that occur in the mobile device.
By obtaining the port information of the device to be moved displayed in the preset graphic drawing window, determining the port center point information, and determining the network range based on the port information and center point information, all leads connected to the port of the device to be moved within the network range, so as to realize the simultaneous movement of the device and the network.
The simultaneous movement of devices and wire networks is achieved, and errors caused by the inability to move simultaneously in the prior art are avoided, thereby improving the accuracy and efficiency of movement.
Smart Images

Figure CN113849877B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of EDA design technology, and in particular to a device and line network moving method, device, equipment and storage medium. Background Art
[0002] During circuit analysis, completely scattered devices and wire nets need to be organized into circuits that are easy to identify and read. The circuit contains devices, each of which has a varying number of ports. The number of wire nets derived from the different ports also varies. When moving devices, the current method provided by Cadence only allows the device to be moved when the device is selected, and the wire net cannot be moved at the same time. When the devices are large and dense, each device needs to be selected and the wire net selected at the same time, which is extremely inconvenient for moving devices and prone to errors.
[0003] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of the present invention is to provide a method, device, equipment and storage medium for moving devices and wire networks, aiming to solve the technical problem in the prior art that when a device is selected, only the device can be moved, and the wire network cannot be moved at the same time, which easily leads to errors when moving the device.
[0005] To achieve the above-mentioned object, the present invention provides a device and a wire mesh moving method, the device and wire mesh moving method comprising:
[0006] Obtain the port information of the device to be moved displayed in the preset graphic drawing window;
[0007] Determine the port center point information of the device to be moved according to the port information;
[0008] Determine the network range according to the port information and the port center point information;
[0009] All leads connected to the ports of the device to be moved within the wire network range are acquired, and the device to be moved and all the leads are moved.
[0010] Optionally, the step of determining the port center point information of the device to be moved according to the port information specifically includes:
[0011] Determine the number of ports of the device to be moved in each direction according to the port information;
[0012] When the number of the port is one, using the port information as the port center point information of the device to be moved;
[0013] When there are multiple ports, the port center point information of the device to be moved is determined according to the port information and the number of ports.
[0014] Optionally, when there are multiple ports, the step of determining the port center point information of the device to be moved according to the port information and the number of ports specifically includes:
[0015] When there are multiple ports, determining whether the multiple ports are evenly distributed;
[0016] When the multiple ports are evenly distributed, obtaining the center positions of the multiple ports, and using the position information of the center positions as the port center point information of the device to be moved;
[0017] When the multiple ports are not evenly distributed, information of each port is used as port center point information of the device to be moved.
[0018] Optionally, the step of determining the network range according to the port information and the port center point information specifically includes:
[0019] Determine the length of the line network according to the port information;
[0020] Determine the wire mesh radius according to the number of ports and the wire mesh length;
[0021] The wire network range is determined according to the port center point information and the wire network radius.
[0022] Optionally, the step of determining the line network length according to the port information specifically includes:
[0023] Acquire a set of leads connected to all ports of the device to be moved according to the port information;
[0024] Determining a set of lead lengths of all leads in the lead set, and selecting a longest target lead length from the set of lead lengths;
[0025] The wire mesh length is determined according to the target wire length.
[0026] Optionally, the step of determining the wire mesh radius according to the number of ports and the wire mesh length specifically includes:
[0027] When the plurality of ports are evenly distributed, determining whether the number of the ports is an odd number;
[0028] When the number of ports is an odd number, the target number of ports is calculated using a first preset formula, wherein the first preset formula is:
[0029]
[0030] Where N is the number of ports and n is the number of target ports;
[0031] When the number of ports is an even number, the target number of ports is calculated using a second preset formula, wherein the second preset formula is:
[0032]
[0033] Where N is the number of ports and n is the number of target ports;
[0034] The wire mesh radius is determined according to the target port quantity and the wire mesh length.
[0035] Optionally, before the step of obtaining the port information of the device to be moved displayed in the preset graphic drawing window, the method further includes:
[0036] The device in the selected state in the graphic drawing window is used as the device to be moved;
[0037] Acquiring boundary position information of the device to be moved, and determining a display frame of the device to be moved according to the boundary position information;
[0038] The intersection of the device to be moved and the display frame is used as the port of the device to be moved.
[0039] In addition, to achieve the above-mentioned purpose, the present invention further provides a device and a wire mesh moving device, the device and the wire mesh moving device comprising:
[0040] An information acquisition module, used to acquire port information of the device to be moved displayed in a preset graphic drawing window;
[0041] An information determination module, configured to determine the port center point information of the device to be moved according to the port information;
[0042] A range determination module, configured to determine a line network range based on the port information and the port center point information;
[0043] The device and wire network moving module is used to obtain all leads connected to the ports of the device to be moved within the wire network range, and move the device to be moved and all the leads.
[0044] In addition, to achieve the above-mentioned objectives, the present invention also proposes a device and wire network mobile device, which includes: a memory, a processor, and a device and wire network moving program stored on the memory and runnable on the processor, and the device and wire network moving program is configured to implement the steps of the device and wire network moving method described above.
[0045] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a device and line network movement program is stored. When the device and line network movement program is executed by a processor, the steps of the device and line network movement method described above are implemented.
[0046] The present invention obtains the port information of the device to be moved displayed in a preset graphic drawing window, then determines the port center point information of the device to be moved based on the port information, then determines the wire mesh range based on the port information and the port center point information, then obtains all the leads connected to the port of the device to be moved within the wire mesh range, and moves the device to be moved and all the leads. The present invention determines the wire mesh range based on the port information and the port center point information, then obtains all the leads within the wire mesh range, and can accurately obtain all the leads connected to the port, and then move the device to be moved and all the leads simultaneously. Compared with the prior art, which requires the device and the wire mesh to be selected at the same time before moving, the above method of the present invention selects the device and the wire mesh at the same time when the device is selected, so that the device and the wire mesh can be moved simultaneously. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a structural diagram of the components of the hardware operating environment and the network mobile equipment involved in the embodiment of the present invention;
[0048] Figure 2 This is a flow chart of a first embodiment of a device and a wire mesh moving method according to the present invention;
[0049] Figure 3 Schematic diagram of the device port to be moved in the device and wire network moving method of the present invention;
[0050] Figure 4 Schematic diagram of the flow of the second embodiment of the device and wire mesh moving method of the present invention;
[0051] Figure 5 This is a flow chart of a third embodiment of a device and a wire mesh moving method according to the present invention;
[0052] Figure 6 Schematic diagram of the wire mesh range of the device and wire mesh moving method of the present invention;
[0053] Figure 7 This is a structural block diagram of the first embodiment of the device and wire mesh moving device of the present invention.
[0054] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0056] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of devices and network mobile equipment in the hardware operating environment involved in the embodiment of the present invention.
[0057] like Figure 1 As shown, the device and the wired network mobile device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0058] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the device and the wire network mobile device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0059] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a device and network moving program.
[0060] exist Figure 1 In the device and wire network mobile device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the device and wire network mobile device of the present invention can be set in the device and wire network mobile device, and the device and wire network mobile device calls the device and wire network movement program stored in the memory 1005 through the processor 1001, and executes the device and wire network movement method provided by the embodiment of the present invention.
[0061] The embodiment of the present invention provides a device and a wire network moving method, referring to Figure 2 , Figure 2Schematic diagram of the flow chart of the first embodiment of the device and wire mesh moving method of the present invention.
[0062] In this embodiment, the device and wire network moving method includes the following steps:
[0063] Step S10: obtaining the port information of the device to be moved displayed in the preset graphic drawing window;
[0064] It should be noted that the execution subject of this embodiment can be the above-mentioned devices and wired network mobile devices with network communication and program running functions, or other devices that can achieve the same or similar functions. This embodiment does not impose specific restrictions on this.
[0065] It should be understood that the preset graphics drawing window refers to the window for graphics drawing and device simulation in the Cadence Virtuoso software. The Cadence Virtuoso drawing window is based on the Cadence Virtuoso unified customization / simulation process to support designs that must develop optimal performance at the transistor level, including analog and radio frequency (RF) circuits, high-performance digital modules, and standard cell libraries used to build digital integrated circuits (ICs).
[0066] It is understandable that the port information refers to the coordinate information and direction information corresponding to all ports on the device to be moved. The direction information refers to the direction of the port of the device to be moved relative to the device to be moved, for example: top, bottom, left, and right.
[0067] Furthermore, in order to determine the port of the device to be moved, the method before step S10 further includes: selecting the device in the graphic drawing window as the device to be moved; obtaining boundary position information of the device to be moved, and determining a display frame of the device to be moved according to the boundary position information;
[0068] The intersection of the device to be moved and the display frame is used as the port of the device to be moved.
[0069] In a specific implementation, the designer can select the device to be moved. In this embodiment, the above device is used as the device to be moved. The device can be selected by a mouse or a keyboard. This embodiment does not impose any specific restrictions on this.
[0070] It should be understood that the boundary position information refers to the positions of all pins of the device to be processed, and the display frame of the device to be moved refers to the frame surrounding all pins. By connecting all pins, a display frame can be obtained, and then the intersection of the device to be moved and the display frame is the port of the device to be moved.
[0071] Further, refer to Figure 3 , Figure 3 This is a schematic diagram of the device port to be moved in the device and wire network moving method of the present invention.
[0072] like Figure 3 As shown, the device in the middle is the device to be moved, the quadrilateral is the display frame of the device to be moved, and the small quadrilateral is the port of the device to be moved.
[0073] Step S20: determining the port center point information of the device to be moved according to the port information;
[0074] It should be noted that the port center point information refers to the coordinate information and direction information corresponding to the port center point on the device to be moved. As long as there is a port in a certain direction, there is a port center point in that direction.
[0075] Step S30: determining a line network range according to the port information and the port center point information;
[0076] It is understandable that the wire net range refers to the range where the leads corresponding to all ports of the device to be moved are located, that is, the wire net range includes all the leads of the device to be moved.
[0077] Step S40: Acquire all leads connected to the ports of the device to be moved within the wire network range, and move the device to be moved and all the leads.
[0078] In a specific implementation, after obtaining the network range, all leads within the network range connected to the ports of the device to be moved can be obtained. After obtaining all leads, when the device to be moved is selected, the device and the network can be moved simultaneously.
[0079] In this embodiment, the present invention obtains the port information of the device to be moved displayed in a preset graphic drawing window, and then determines the port center point information of the device to be moved based on the port information, and then determines the wire network range based on the port information and the port center point information, and then obtains all the leads connected to the port of the device to be moved within the wire network range, and moves the device to be moved and all the leads. The present invention determines the wire network range based on the port information and the port center point information, and then obtains all the leads within the wire network range, which can accurately obtain all the leads connected to the port, and then move the device to be moved and all the leads at the same time. Compared with the prior art, which requires the device and the wire network to be selected at the same time before moving, the above method of the present invention selects the device and the wire network at the same time when the device is selected, so that the device and the wire network can be moved at the same time.
[0080] refer to Figure 4 , Figure 4 2 is a flow chart of a second embodiment of a device and a wire mesh moving method according to the present invention.
[0081] Based on the above first embodiment, in this embodiment, step S20 includes:
[0082] Step S201: determining the number of ports of the device to be moved in each direction according to the port information;
[0083] It should be noted that the number of ports refers to the number of ports, for example: Figure 3 It can be seen that the number of ports on the left side of the device to be moved is 3, the number of ports on the upper side of the device to be moved is 1, the number of ports on the lower side of the device to be moved is 1, and the number of ports on the right side of the device to be moved is 1. The number of ports for other devices to be processed is obtained in the same way.
[0084] Step S202: When the number of the port is one, use the port information as the port center point information of the device to be moved;
[0085] In a specific implementation, when the number of ports is one, it means that there is only one port in that direction, for example Figure 3 The upper, lower and right sides of the port are represented by the port center point information in this direction.
[0086] Step S203: when there are multiple ports, determine the port center point information of the device to be moved according to the port information and the number of ports.
[0087] Furthermore, in order to accurately determine the port center point information, the step S203 includes: when the number of the ports is multiple, determining whether the multiple ports are evenly distributed; when the multiple ports are evenly distributed, obtaining the center positions of the multiple ports, and using the position information of the center positions as the port center point information of the device to be moved; when the multiple ports are not evenly distributed, using each port information as the port center point information of the device to be moved.
[0088] It is understandable that when the device to be processed has multiple ports, it is necessary to first determine whether the multiple ports are evenly distributed. Figure 3 The multiple ports on the left side of the device to be moved are obviously evenly distributed, so the center position can be obtained, and the center of all ports is the center position.
[0089] In a specific implementation, if multiple ports are not evenly distributed, each port needs to be used as a port center point.
[0090] This embodiment determines the port center point information of the device to be moved by judging whether multiple ports are evenly distributed. When the distribution is even, the center points of all ports are directly obtained. When the distribution is uneven, multiple center points are obtained, which can make the port center point information more accurate.
[0091] This embodiment determines the number of ports of the device to be moved in each direction based on the port information. If the number of ports is one, the port information is used as the port center point information of the device to be moved. If the number of ports is multiple, the port center point information of the device to be moved is determined based on the port information and the number of ports. This embodiment accurately obtains the port center point information by determining whether the number of ports is one or multiple. If there is only one port, the port is used as the port center point. If there are multiple ports, a detailed analysis is performed based on the distribution of the multiple ports. This allows for precise determination of the network range.
[0092] refer to Figure 5 , Figure 5 1 is a flow chart of a third embodiment of a device and a wire mesh moving method according to the present invention.
[0093] Based on the above embodiments, in this embodiment, step S30 includes:
[0094] Step S301: determining the line network length according to the port information;
[0095] Furthermore, in order to determine the wire network length, the step S301 includes: obtaining a set of leads connected to all ports of the device to be moved based on the port information; determining a set of lead lengths of all leads in the lead set, and selecting the longest target lead length from the lead length set; and determining the wire network length based on the target lead length.
[0096] It is understandable that each port may be connected to a wire, and each wire may have a different wire length. Therefore, in order to make the result more comprehensive, it is necessary to select the longest target wire length.
[0097] In a specific implementation, the target lead length may be equal to the wire mesh length or may be less than the wire mesh length, and this embodiment does not impose any specific limitation on this.
[0098] This embodiment selects the longest target lead length and then determines the wire mesh length based on the target lead length, which can make the wire mesh length result more accurate, thereby accurately determining the wire mesh range.
[0099] Step S302: determining a wire mesh radius according to the number of ports and the wire mesh length;
[0100] It is understood that, in this embodiment, the wire mesh radius is the sum of the number of ports and the wire mesh length. For example: Figure 3 In the example, if the mesh length is set to 2 and the number of ports on the upper side of the device to be processed is 1, the mesh radius is 1+2=3; if the number of ports on the lower side of the device to be processed is 1, the mesh radius is 1+2=3; if the number of ports on the right side of the device to be processed is 1, the mesh radius is 1+2=3.
[0101] Furthermore, in order to determine the network radius when there are multiple ports, step S302 includes: when multiple ports are evenly distributed, determining whether the number of ports is an odd number; if the number of ports is an odd number, calculating the target number of ports using a first preset formula, wherein the first preset formula is:
[0102]
[0103] Where N is the number of ports and n is the number of target ports;
[0104] In a specific implementation, when the number of ports is an odd number, the target number of ports needs to be calculated using a first preset formula. For example, when the number of ports is 7, the target number of ports is 4.
[0105] When the number of ports is an even number, the target number of ports is calculated using a second preset formula, wherein the second preset formula is:
[0106]
[0107] Where N is the number of ports and n is the number of target ports;
[0108] Understandably, combined Figure 3 It can be seen that the number of ports on the left side of the device to be processed is 6, so the number of ports is an even number. Therefore, the target number of ports can be calculated as 3 using the second preset formula.
[0109] This embodiment determines whether the number of ports is an odd number or an even number, and then calculates the target number of ports using different preset formulas so that the target number of ports is an integer, thereby accurately determining the range of the line network.
[0110] The wire mesh radius is determined according to the target port quantity and the wire mesh length.
[0111] It should be understood that, in this embodiment, when there are multiple ports, the wire mesh radius is also the sum of the wire mesh radius and the number of target ports. Figure 3 In the example, set the network length to 2 and the number of target ports to 3+2=5.
[0112] Step S303: Determine the wire network range according to the port center point information and the wire network radius.
[0113] It is understood that the wire net range includes the leads of all ports.
[0114] In the specific implementation, the wire mesh range is a circle with the port center point as the center and the wire mesh radius as the radius. Figure 6 , Figure 6Schematic diagram of the network range of the device and network moving method of the present invention, as shown in FIG. Figure 6 As shown, each circle represents the wire mesh range in each direction. Since the wire mesh radius on the upper side, lower side and right side of the device to be processed is the same, the size of the circle is also the same.
[0115] In a specific implementation, after obtaining the network range, all leads within the network range connected to the ports of the device to be moved can be obtained. After obtaining all leads, when the device to be moved is selected, the device and the network can be moved simultaneously.
[0116] This embodiment determines the mesh length based on port information, then determines the mesh radius based on the number of ports and the mesh length, and finally determines the mesh range based on the port center point information and the mesh radius. This embodiment determines the mesh radius based on the number of ports and the mesh length, enabling more accurate mesh radius determination when there are multiple ports, thereby accurately determining the mesh range. All leads within the mesh range are then obtained, accurately identifying all leads connected to the ports, and then simultaneously moving the device to be moved and all leads.
[0117] In addition, an embodiment of the present invention further provides a storage medium storing a device and line network movement program. When the device and line network movement program is executed by a processor, the steps of the device and line network movement method described above are implemented.
[0118] Reference Figure 7 , Figure 7 This is a structural block diagram of the first embodiment of the device and wire mesh moving device of the present invention.
[0119] like Figure 7 As shown, the device and wire mesh moving device proposed in the embodiment of the present invention include:
[0120] An information acquisition module 701 is used to acquire port information of the device to be moved displayed in a preset graphic drawing window;
[0121] An information determination module 702 is configured to determine the port center point information of the device to be moved based on the port information;
[0122] A range determination module 703 is configured to determine a line network range based on the port information and the port center point information;
[0123] The device and wire net moving module 704 is configured to obtain all wires connected to the ports of the device to be moved within the wire net range, and move the device to be moved and all the wires.
[0124] In this embodiment, the present invention obtains the port information of the device to be moved displayed in a preset graphic drawing window, and then determines the port center point information of the device to be moved based on the port information, and then determines the wire network range based on the port information and the port center point information, and then obtains all the leads connected to the port of the device to be moved within the wire network range, and moves the device to be moved and all the leads. The present invention determines the wire network range based on the port information and the port center point information, and then obtains all the leads within the wire network range, which can accurately obtain all the leads connected to the port, and then move the device to be moved and all the leads at the same time. Compared with the prior art, which requires the device and the wire network to be selected at the same time before moving, the above method of the present invention selects the device and the wire network at the same time when the device is selected, so that the device and the wire network can be moved at the same time.
[0125] Based on the first embodiment of the device and the wire mesh moving device of the present invention, a second embodiment of the device and the wire mesh moving device of the present invention is proposed.
[0126] In this embodiment, the information determination module 702 is also used to determine the number of ports of the device to be moved in each direction based on the port information; when the number of ports is one, the port information is used as the port center point information of the device to be moved; when the number of ports is multiple, the port center point information of the device to be moved is determined based on the port information and the number of ports.
[0127] Furthermore, the information determination module 702 is also used to determine whether the multiple ports are evenly distributed when the number of the ports is multiple; when the multiple ports are evenly distributed, obtain the center positions of the multiple ports, and use the position information of the center positions as the port center point information of the device to be moved; when the multiple ports are not evenly distributed, use the information of each port as the port center point information of the device to be moved.
[0128] Furthermore, the range determination module 703 is further configured to determine the length of the wire mesh according to the port information; determine the wire mesh radius according to the number of ports and the wire mesh length; and determine the wire mesh range according to the port center point information and the wire mesh radius.
[0129] Furthermore, the range determination module 703 is also used to obtain a set of leads connected to all ports of the device to be moved based on the port information; determine a set of lead lengths of all leads in the lead set, and select the longest target lead length from the lead length set; and determine the wire network length based on the target lead length.
[0130] Furthermore, the range determination module 703 is further configured to determine whether the number of ports is an odd number when the multiple ports are evenly distributed;
[0131] When the number of ports is an odd number, the target number of ports is calculated using a first preset formula, wherein the first preset formula is: Wherein, N is the number of ports, and n is the target number of ports. When the number of ports is an even number, the target number of ports is calculated using a second preset formula, where the second preset formula is: Wherein, N is the number of ports, and n is the target number of ports; the wire mesh radius is determined according to the target number of ports and the wire mesh length.
[0132] Furthermore, the device and wire mesh moving apparatus also includes: a port acquisition module 705, which is used to use the device in the selected state in the graphics drawing window as the device to be moved; obtain the boundary position information of the device to be moved, and determine the display frame of the device to be moved based on the boundary position information; and use the intersection of the device to be moved and the display frame as the port of the device to be moved.
[0133] Other embodiments or specific implementations of the device and wire mesh moving device of the present invention can refer to the above-mentioned method embodiments and will not be repeated here.
[0134] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0135] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0136] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0137] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A device and a wire network moving method, characterized in that: The device and line network moving method include: Obtain the port information of the device to be moved displayed in the preset graphic drawing window; Determine the port center point information of the device to be moved according to the port information; Determine the network range according to the port information and the port center point information; Acquire all leads connected to the ports of the device to be moved within the wire network range, and move the device to be moved and all the leads; The step of determining the line network range according to the port information and the port center point information specifically includes: Acquire a set of leads connected to all ports of the device to be moved according to the port information; Determining a set of lead lengths of all leads in the lead set, and selecting a longest target lead length from the set of lead lengths; determining a wire mesh length according to the target lead length; Determine the wire mesh radius according to the number of ports and the wire mesh length; The wire mesh range is determined according to the port center point information and the wire mesh radius, where the wire mesh range is a circle with the port center point information as the center and the wire mesh radius as the radius.
2. The device and wire network moving method according to claim 1, wherein: The step of determining the port center point information of the device to be moved according to the port information specifically includes: Determine the number of ports of the device to be moved in each direction according to the port information; When the number of the port is one, using the port information as the port center point information of the device to be moved; When there are multiple ports, the port center point information of the device to be moved is determined according to the port information and the number of ports.
3. The device and wire network moving method according to claim 2, wherein: When there are multiple ports, the step of determining the port center point information of the device to be moved according to the port information and the number of ports specifically includes: When there are multiple ports, determining whether the multiple ports are evenly distributed; When the multiple ports are evenly distributed, obtaining the center positions of the multiple ports, and using the position information of the center positions as the port center point information of the device to be moved; When the multiple ports are not evenly distributed, information of each port is used as port center point information of the device to be moved.
4. The device and wire network moving method according to claim 1, wherein: The step of determining the wire mesh radius according to the number of ports and the wire mesh length specifically includes: When the plurality of ports are evenly distributed, determining whether the number of ports is an odd number; When the number of ports is an odd number, the target number of ports is calculated using a first preset formula, wherein the first preset formula is: Where N is the number of ports and n is the number of target ports; When the number of ports is an even number, the target number of ports is calculated using a second preset formula, wherein the second preset formula is: Where N is the number of ports and n is the number of target ports; The wire mesh radius is determined according to the target port quantity and the wire mesh length.
5. The device and wire network moving method according to claim 1, wherein: Before the step of obtaining the port information of the device to be moved displayed in the preset graphic drawing window, the method further includes: The device in the selected state in the graphic drawing window is used as the device to be moved; Acquiring boundary position information of the device to be moved, and determining a display frame of the device to be moved according to the boundary position information; The intersection of the device to be moved and the display frame is used as the port of the device to be moved.
6. A device and a wire mesh moving device, characterized in that: The device and the wire mesh moving device include: An information acquisition module, used to acquire port information of the device to be moved displayed in a preset graphic drawing window; An information determination module, configured to determine the port center point information of the device to be moved according to the port information; A range determination module, configured to determine a line network range based on the port information and the port center point information; A device and wire network moving module, configured to obtain all wires connected to the ports of the device to be moved within the wire network range, and to move the device to be moved and all the wires; The range determination module is further used to obtain a set of leads connected to all ports of the device to be moved based on the port information; determine a set of lead lengths of all leads in the lead set, and select the longest target lead length from the lead length set; determine a wire mesh length based on the target lead length; determine a wire mesh radius based on the number of ports and the wire mesh length; and determine a wire mesh range based on the port center point information and the wire mesh radius, wherein the wire mesh range is a circle with the port center point information as the center and the wire mesh radius as the radius.
7. A device and a network mobile device, characterized in that: The device and wire network moving device includes: a memory, a processor, and a device and wire network moving program stored in the memory and executable on the processor, wherein the device and wire network moving program is configured to implement the steps of the device and wire network moving method as described in any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium stores a device and wire network movement program, and when the device and wire network movement program is executed by the processor, the steps of the device and wire network movement method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method for wiring between two sets of ports in layout
CN106611086A
Method and apparatus for device pinout mapping
US7924826B1