Reuse method and device of schematic module, equipment and medium
By determining the index information of the schematic module from the index library, linking the component library, determining and drawing the target components, the accuracy problem caused by component updates in the schematic module is solved, and the correctness of the multiplexed module is ensured.
Patent Information
- Application Number
- CN202310571133.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2024-11-22
AI Technical Summary
In the traditional art, in schematic module reuse, component updates cannot guarantee the accuracy of the reuse, resulting in errors in the borrowed module, making it difficult to ensure the accuracy of the schematic module.
By determining the index information of the target schematic module from the index library of the candidate schematic module, linking the component library, determining the target component from the component library based on the target module element information, and drawing the target principle based on the component and module element information. Diagram module ensures the accuracy of components.
The accurate determination of the target schematic module is achieved, the inaccuracy problem of multiplexed modules caused by component updates is solved, and the correctness of components in the schematic module is ensured.
Smart Images

Figure CN119005100A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit design in the communication field, and in particular to a multiplexing method, device, equipment and medium for a schematic module. Background Art
[0002] As the requirements for electronic product functions, performance and design cycles become increasingly higher, the design requirements for schematic design are also becoming higher and higher.
[0003] Currently, for schematic module reuse in the industry, most companies reference each other in schematic projects and copy and borrow modules. Some large companies may have their own module libraries. For example, they copy the required schematic modules from another schematic project and copy them to their own schematic project, or save mature circuit modules to the Common Building Block (CBB) library, which can be called out from the CBB library when needed, and only the input and output signals need to be considered.
[0004] However, if the required schematic modules are copied from the schematic project, on the one hand, it will be difficult to find the schematic modules, and on the other hand, it will be difficult to standardize the circuit, which will cause errors in the borrowed modules; if the schematics are saved in modules, although the problem of circuit standardization can be avoided, there is no way to guarantee that the components in the schematic modules are correct; therefore, it is very important to ensure the accuracy of the schematic modules. Summary of the invention
[0005] The present invention provides a schematic module reuse method, device, equipment and medium to solve the problem that the correctness of components in the reused schematic module cannot be guaranteed because the components in the schematic module are updated.
[0006] According to one aspect of the present invention, a method for reusing a schematic module is provided, the method comprising:
[0007] Determine the index information of the target schematic module from the index library of the candidate schematic modules, and determine the corresponding target module element information according to the index information of the target schematic module; wherein the index information is linked to the component library;
[0008] Based on the index link, determining the target component from the component library according to the component element information included in the target module element information;
[0009] The target schematic module is drawn according to the target components and other element information included in the target module element information.
[0010] According to another aspect of the present invention, a schematic module multiplexing device is provided, the device comprising:
[0011] An information determination module, used to determine the index information of the target schematic module from the index library of the candidate schematic modules, and determine the corresponding target module element information according to the index information of the target schematic module; wherein the index information is linked to the component library;
[0012] A component determination module, configured to determine a target component from the component library based on an index link and according to component element information included in the target module element information;
[0013] A drawing module is used to draw the target schematic module according to the target components and other element information included in the target module element information.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the schematic module reuse method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the schematic module reuse method described in any embodiment of the present invention when executed by a processor.
[0019] The technical solution of the embodiment of the present invention determines the index information of the target schematic module from the index library of the candidate schematic module, and determines the corresponding target module element information according to the index information of the target schematic module; then based on the index link, the target component is determined from the component library according to the component element information included in the target module element information; finally, the target schematic module is drawn according to the target component and other element information included in the target module element information. The present application is based on the index link related to the index information link component library, accurately determines the target component from the component library through the component element information included in the target module element information, and then draws the target schematic module according to the target component and other element information included in the target module element information, thereby achieving accurate determination of the target schematic module and solving the problem that the correctness of the components in the reused schematic module cannot be guaranteed due to the update of the components in the schematic module.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a schematic module reuse method provided according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of a schematic module reuse method provided according to an embodiment of the present invention;
[0024] Figure 3 is a structural schematic diagram of a multiplexing device of a schematic module provided according to an embodiment of the present invention;
[0025] Figure 4 It is a structural schematic diagram of an electronic device for implementing the multiplexing method of the schematic module of an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "candidate" and "target" and the like in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 The flowchart of a schematic module reuse method provided by an embodiment of the present invention is applicable to the case of reusing schematic modules. The method can be executed by a schematic module reuse device. The schematic module reuse device can be implemented in the form of hardware and / or software. The schematic module reuse device can be configured in an electronic device having the schematic module reuse method. Figure 1 As shown, the method includes:
[0030] S110, determining index information of a target schematic module from an index library of candidate schematic modules, and determining corresponding target module element information according to the index information of the target schematic module; wherein the index information is linked to a component library.
[0031] Among them, the candidate schematic modules are some mature schematic modules used in the circuit diagram design process, that is, schematic modules that can be used directly. The index library can be a collection of index information containing all candidate schematic modules, that is, one index information corresponds to one candidate schematic module. For example, the index information can be a symbol or a code, such as the code 00000001, which corresponds to a candidate schematic module. The index information can be a collection of guidance information related to the content in the schematic module, such as components in the corresponding candidate schematic module, connection relationships between components, identification information, etc., so as to facilitate the determination of the corresponding module element information according to the index information. The target module element information can be some information related to components, such as the inherent properties of components, component marking information and other information.
[0032] Specifically, the index information of the target schematic module is found from the index information representing the candidate schematic module in the index library according to the attributes of the target schematic module. For example, the attribute description information of the candidate schematic module is filtered according to at least one target attribute description information to obtain the index information of the target schematic module, and then the index information is analyzed to determine the corresponding target module element information.
[0033] S120 . Determine a target component from the component library based on the index link and according to the component element information included in the target module element information.
[0034] Among them, the index link can be a link between the index information and the component library, that is, the components are not directly placed in the schematic module, but are found in the corresponding component library through the index link, and the components are called from the component library to ensure the accuracy of the components, that is, the component library containing many components can be seen by opening the index link. The component element information at least includes component identification information, and the component identification information can be information used to indicate the component, for example, coding information for the component according to the component.
[0035] Specifically, the index information links the component library. When the index link is opened, the target component corresponding to the component element information is found from the component library through the component element information.
[0036] Optionally, the inherent attribute information of the target component is determined from the component library according to the component identification information, so that the target component obtained subsequently is more accurate.
[0037] The inherent attribute information includes at least the symbol information, network information and annotation information of the target component. For example, there is a resistor R1 in the module, and the R1 code, that is, the index information, is extracted. The component library is accessed according to the code, and the inherent attribute information of R1 is extracted from the library.
[0038] Specifically, symbol information: R1's coordinates are (x10, y10), R1 contains multiple inherent attributes, "R1" is a bit number, one of the attributes, the size is "Songti 10 font", the bit number coordinates are (x11, y11), and the color is green; network information: R1 has two pins, A1 and B1, A1 connects to the network "VDD", the starting point is (x20, y20), and the end point is (x21, y21); B1 connects to the network "GND", the starting point is (x22, y22), and the end point is (x23, y23), the network connection width is 1, and the color is red. Annotation information: R1 has text annotations, the size is "Songti 10 font", the bit number coordinates are (x30, y30), and the color is yellow.
[0039] Optionally, before determining the target component from the component library based on the index link and according to the component element information included in the target module element information, the method further includes:
[0040] In response to a component library update instruction, the components in the component library are updated according to the updated component information in the component library update instruction, that is, the accuracy of the components is ensured by updating the component library in real time, that is, it is ensured that based on the index link, the updated target components are determined from the updated component library according to the component element information included in the target module element information, so as to avoid the situation where the previously discontinued components lead to incorrectly called components, thereby causing errors in the schematic module composed of the components. Furthermore, the target components are called from the component library to form a target schematic module, so as to avoid the situation where the target schematic module cannot be used due to the presence of unusable components in the schematic module due to the direct call of the schematic module.
[0041] This solution ensures the accuracy of components in the component library by updating the component library, and also avoids the inaccuracy of the schematic module caused by inaccurate components.
[0042] S130. Draw the target schematic module according to the target components and other element information included in the target module element information.
[0043] Among them, other element information may be information related to the position, direction, size, etc. of components.
[0044] Specifically, after obtaining the target module element information, other element information included in the target module element information is analyzed to obtain the actual position of the target schematic module in the schematic diagram, thereby achieving accurate drawing of the target schematic module.
[0045] The technical solution of the embodiment of the present invention determines the index information of the target schematic module from the index library of the candidate schematic module, and determines the corresponding target module element information according to the index information of the target schematic module; then based on the index link, the target component is determined from the component library according to the component element information included in the target module element information; finally, the target schematic module is drawn according to the target component and other element information included in the target module element information. The present application is based on the index link related to the index information link component library, accurately determines the target component from the component library through the component element information included in the target module element information, and then draws the target schematic module according to the target component and other element information included in the target module element information, thereby achieving accurate determination of the target schematic module and solving the problem that the correctness of the components in the reused schematic module cannot be guaranteed due to the update of the components in the schematic module.
[0046] Embodiment 2
[0047] Figure 2This is a flowchart of a schematic module reuse method provided in an embodiment of the present invention. This embodiment further describes S130 in the above embodiment in detail. Figure 2 As shown, the method includes:
[0048] S210: Determine index information of a target schematic module from an index library of candidate schematic modules, and determine corresponding target module element information according to the index information of the target schematic module.
[0049] S220. The component element information includes at least component identification information. A target component is determined from a component library according to the component element information included in the target module element information.
[0050] S230. Other element information at least includes component coordinate information. Component canvas coordinate information is determined according to the component coordinate information and canvas information.
[0051] The canvas information may be the size information of the canvas, and the component canvas coordinate information refers to the coordinate information of the component in the canvas.
[0052] Specifically, the component coordinate information is a relative coordinate, so it is necessary to convert the component coordinate information into component canvas coordinate information according to the component coordinate information and canvas information, so as to facilitate displaying the component on the canvas and achieve a preview of the component.
[0053] For example, extract the minimum coordinates (minx, miny) and the maximum coordinates (maxx, maxy) from the coordinate information of the component, and at the same time, obtain the size of the canvas = (maxx-minx+m, maxy-miny+m), and then determine that the coordinates of a certain component are (x1, y1), then the conversion formula of the canvas coordinates is as follows:
[0054] X=x1-minx+m / 2,Y=y1-miny+m / 2
[0055] Among them, m is determined according to the actual situation of the canvas and is not specifically limited.
[0056] S240 , drawing a target schematic module according to the target component and the corresponding component canvas coordinate information.
[0057] Specifically, the component canvas coordinate information of each target component in the preview canvas is determined, so that the target component is called to the corresponding position of the canvas, and the corresponding connection relationship is drawn, so as to accurately draw the target schematic module.
[0058] Optionally, after calling the target component to the corresponding position in the canvas, the direction of the target component may be incorrect. Therefore, the target component needs to be rotated to make it accurate. The specific process is as follows:
[0059] Determine component rotation angle information and component rotation point information according to component direction information; determine component rotation coordinate information corresponding to component canvas coordinate information according to component rotation angle information and component rotation point information; draw the target schematic module according to the target component and the corresponding component rotation coordinate information.
[0060] The component rotation angle information may be the rotation angle of the component, such as 0°, 90°, 180°, and 270°. The component rotation point information may be several rotation points set when rotating the component, such as upper left, middle left, lower left, upper center, middle center, lower center, upper right, middle right, and lower right.
[0061] For example, the calculation method of coordinate conversion is different according to different combinations. Take the file text as an example, assuming that the coordinates of the lower left corner are (x0, y0), the length of the word is textlength, and the height of the word is textHeight. Then:
[0062] 1) R0 / upper left: x=x0, y=y0-textHeight;
[0063] 2) R0 / middle left: x=x0, y=y0-textHeight / 2;
[0064] 3) R0 / lower left: x=x0, y=y0;
[0065] 4) R0 / upper center: x=x0-textlength / 2, y=y0-textHeight;
[0066] 5) R0 / middle center: x=x0-textlength / 2, y=y0-textHeight / 2;
[0067] 6) R0 / lower center: x=x0-textlength / 2, y=y0;
[0068] 7)R0 / upper right:x=x0-textlength,y=y0-textHeight;
[0069] 8)R0 / middle right:x=x0-textlength,y=y0-textHeight / 2;
[0070] 9)R0 / lower right:x=x0-textlength,y=y0;
[0071] 10)R90 / upper left:x=x0+textHeight,y=y0;
[0072] 11)R90 / middle left:x=x0+textHeight / 2,y=y0;
[0073] 12)R90 / lower left:x=x0,y=y0;
[0074] 13)R90 / upper center:x=x0+textHeight,y=y0-textlength / 2;
[0075] 14)R90 / middle center:x=x0+textHeight / 2,y=y0-textlength / 2;
[0076] 15)R90 / lower center:x=x0,y=y0-textlength / 2;
[0077] 16)R90 / upper right:x=x0+textHeight,y=y0-textlength;
[0078] 17)R90 / middle right:x=x0+textHeight / 2,y=y0-textlength;
[0079] 18)R90 / lower right:x=x0,y=y0-textlength;
[0080] 19)R180 / upper left:x=x0-textlength,y=y0;
[0081] 20)R180 / middle left:x=x0-textlength,y=y0-textHeight / 2;
[0082] 21)R180 / lower left:x=x0-textlength,y=y0-textHeight;
[0083] 22)R180 / upper center:x=x0-textlength / 2,y=y0;
[0084] 23)R180 / middle center:x=x0-textlength / 2,y=y0-textHeight / 2;
[0085] 24)R180 / lower center:x=x0-textlength / 2,y=y0-textHeight;
[0086] 25)R180 / upper right:x=x0,y=y0;
[0087] 26)R180 / middle right:x=x0,y=y0-textHeight / 2;
[0088] 27)R180 / lower right:x=x0,y=y0-textHeight;
[0089] 28)R270 / upper left:x=x0-textHeight,y=y0-textlength;
[0090] 29)R270 / middle left:x=x0-textHeight / 2,y=y0-textlength;
[0091] 30)R270 / lower left:x=x0,y=y0-textlength;
[0092] 31)R270 / upper center:x=x0-textHeight,y=y0-textlength / 2;
[0093] 32)R270 / middle center:x=x0-textHeight / 2,y=y0-textlength / 2;
[0094] 33)R270 / lower center:x=x0,y=y0-textlength / 2;
[0095] 34) R270 / upper right: x=x0-textHeight, y=y0;
[0096] 35) R270 / middle right: x=x0-textHeight / 2, y=y0;
[0097] 36) R0 / lower right: x=x0, y=y0;
[0098] It should be noted that R0, R90, R180 and R270 represent rotations of 0°, 90°, 180° and 270° respectively, R0 and R180 are from left to right, and R90 and R270 are from bottom to top. Based on the above conversion relationship, the component rotation coordinate information corresponding to the component canvas coordinate information is determined, so as to draw the target schematic module according to the target component and the corresponding component rotation coordinate information.
[0099] In this technical solution, after the target component is called to the corresponding position in the canvas, it is found that the direction of the target component is incorrect, and the component rotation angle information and the component rotation point information are promptly determined through the component direction information, so as to accurately determine the component rotation coordinate information corresponding to the component canvas coordinate information according to the component rotation angle information and the component rotation point information, and finally accurately draw the target schematic module according to the target component and the corresponding component rotation coordinate information, thereby ensuring the accuracy of the target component position in the target schematic module, thereby also ensuring the accuracy of the target schematic module, thereby ensuring a good preview effect.
[0100] Optionally, drawing a target schematic module according to target components and corresponding component canvas coordinate information includes:
[0101] Determine the coordinate information of the drawing point;
[0102] Determine component drawing coordinate information according to the drawing point coordinate information and the component canvas coordinate information;
[0103] The target schematic module is drawn according to the target component and the corresponding component drawing coordinate information.
[0104] Specifically, after previewing, the accuracy of the target schematic module is determined, and the target schematic module needs to be called. In order to make the target schematic module display well in the schematic diagram, it is necessary to ensure that the coordinates of the target schematic module are accurate when dragging during the calling process.
[0105] Therefore, it is necessary to first determine the drawing point coordinate information, and then determine the component drawing coordinate information based on the drawing point coordinate information and the component canvas coordinate information, and finally draw the target schematic module based on the target component and the corresponding component drawing coordinate information to achieve accurate calling of the target schematic module. For example, the drawing point coordinate information is the minimum coordinate of the lower left corner (x0, y0), and the component canvas coordinate information is (x1 y1), then the component drawing coordinate information is (X, Y), where X = x0 + x1, Y = y0 + y1.
[0106] This technical solution accurately determines the component drawing coordinate information based on the determined drawing point coordinate information and component canvas coordinate information, thereby accurately drawing the target schematic module based on the target component and the corresponding component drawing coordinate information, that is, accurately implementing the call to the target schematic module.
[0107] The technical solution of the embodiment of the present invention is based on the index link related to the index information linking the component library. The target component is accurately determined from the component library through the component element information included in the target module element information, and then the component canvas coordinate information is determined according to the component coordinate information and the canvas information, thereby ensuring that an accurate target schematic module is drawn according to the target component and the corresponding component canvas coordinate information, avoiding the determination of the target schematic module due to inaccurate coordinates of the target component in the canvas, realizing accurate determination of the target schematic module, and solving the problem that the correctness of the components in the reused schematic module cannot be guaranteed due to the update of the components in the schematic module.
[0108] Embodiment 3
[0109] Figure 3 The schematic diagram of the structure of a multiplexing device of a schematic module provided by an embodiment of the present invention. Figure 3 As shown, the device comprises:
[0110] The information determination module 310 is used to determine the index information of the target schematic module from the index library of the candidate schematic modules, and determine the corresponding target module element information according to the index information of the target schematic module; wherein the index information is linked to the component library;
[0111] A component determination module 320, configured to determine a target component from the component library based on the index link and the component element information included in the target module element information;
[0112] The drawing module 330 is used to draw the target schematic module according to the target components and other element information included in the target module element information.
[0113] Optionally, the component determination module includes an updating unit, which is specifically used to:
[0114] In response to a component library update instruction, updating components in the component library according to update component information in the component library update instruction;
[0115] Correspondingly, the component determination module includes a first component determination unit, which is specifically used to:
[0116] Based on the index link, an updated target component is determined from the updated component library according to the component element information included in the target module element information.
[0117] Optionally, the component element information includes at least component identification information;
[0118] Correspondingly, the component determination module includes a second component determination unit, which is specifically used to:
[0119] The inherent attribute information of the target component is determined from the component library according to the component identification information; wherein the inherent attribute information at least includes the symbol information, network information and marking information of the target component.
[0120] Optionally, the information determination module includes an index information determination unit, which is specifically used to:
[0121] The attribute description information of the candidate schematic modules is screened according to at least one target attribute description information to obtain index information of the target schematic module.
[0122] Optionally, the other element information includes at least component coordinate information;
[0123] Correspondingly, the drawing module includes:
[0124] A coordinate information determining unit, used to determine component canvas coordinate information according to the component coordinate information and canvas information;
[0125] The first drawing unit is used to draw the target schematic module according to the target component and the corresponding component canvas coordinate information.
[0126] Optionally, the other element information includes at least component direction information;
[0127] Accordingly, the first drawing unit is specifically used for:
[0128] Determine component rotation angle information and component rotation point information according to the component direction information;
[0129] Determine component rotation coordinate information corresponding to the component canvas coordinate information according to the component rotation angle information and the component rotation point information;
[0130] The target schematic module is drawn according to the target component and the corresponding component rotation coordinate information.
[0131] Optionally, the first drawing unit further includes a second drawing unit, which is specifically configured to:
[0132] Determine the coordinate information of the drawing point;
[0133] Determine component drawing coordinate information according to the drawing point coordinate information and the component canvas coordinate information;
[0134] The target schematic module is drawn according to the target component and the corresponding component drawing coordinate information.
[0135] The schematic module multiplexing device provided in the embodiment of the present invention can execute the schematic module multiplexing method provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0136] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations and do not violate public order and good morals.
[0137] Embodiment 4
[0138] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0139] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0140] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0141] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0142] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the multiplexing method of the schematic module.
[0143] In some embodiments, the multiplexing method of the schematic module can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the multiplexing method of the schematic module described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the multiplexing method of the schematic module in any other appropriate manner (for example, by means of firmware).
[0144] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific reference products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0145] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0146] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0147] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0148] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0149] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0150] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0151] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for reusing a schematic module. It is characterized in that The method comprises: Determine the index information of the target schematic module from the index library of the candidate schematic modules, and determine the corresponding target module element information according to the index information of the target schematic module; wherein the index information is linked to the component library; Based on the index link, determining the target component from the component library according to the component element information included in the target module element information; The target schematic module is drawn according to the target components and other element information included in the target module element information.
2. The method according to claim 1, It is characterized in that Before determining the target component from the component library based on the index link and according to the component element information included in the target module element information, the method further includes: In response to a component library update instruction, updating components in the component library according to update component information in the component library update instruction; Correspondingly, based on the index link, determining the target component from the component library according to the component element information included in the target module element information includes: Based on the index link, an updated target component is determined from the updated component library according to the component element information included in the target module element information.
3. The method according to claim 1, It is characterized in that The component element information at least includes component identification information; Correspondingly, determining a target component from the component library according to the component element information included in the target module element information includes: The inherent attribute information of the target component is determined from the component library according to the component identification information; wherein the inherent attribute information at least includes the symbol information, network information and marking information of the target component.
4. The method according to claim 1, It is characterized in that Determine the index information of the target schematic module from the index library of the candidate schematic module, including: The attribute description information of the candidate schematic modules is screened according to at least one target attribute description information to obtain index information of the target schematic module.
5. The method according to claim 1, It is characterized in that The other element information at least includes component coordinate information; Accordingly, drawing the target schematic module according to the target components and other element information included in the target module element information includes: Determine component canvas coordinate information according to the component coordinate information and canvas information; The target schematic module is drawn according to the target component and the corresponding component canvas coordinate information.
6. The method according to claim 5, It is characterized in that The other element information at least includes component direction information; Correspondingly, drawing the target schematic module according to the target component and the corresponding component canvas coordinate information includes: Determine component rotation angle information and component rotation point information according to the component direction information; Determine component rotation coordinate information corresponding to the component canvas coordinate information according to the component rotation angle information and the component rotation point information; The target schematic module is drawn according to the target component and the corresponding component rotation coordinate information.
7. The method according to claim 5 or 6, It is characterized in that Drawing the target schematic module according to the target component and the corresponding component canvas coordinate information includes: Determine the coordinate information of the drawing point; Determine component drawing coordinate information according to the drawing point coordinate information and the component canvas coordinate information; The target schematic module is drawn according to the target component and the corresponding component drawing coordinate information.
8. A multiplexing device for schematic diagram modules, It is characterized in that include: An information determination module, used to determine the index information of the target schematic module from the index library of the candidate schematic modules, and determine the corresponding target module element information according to the index information of the target schematic module; wherein the index information is linked to the component library; A component determination module, configured to determine a target component from the component library based on an index link and according to component element information included in the target module element information; A drawing module is used to draw the target schematic module according to the target components and other element information included in the target module element information.
9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the schematic module reuse method described in any one of claims 1-7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the schematic module reuse method described in any one of claims 1-7 when executed.
