Module circuit schematic diagram verification method and device, electronic equipment and storage medium
By using the application programming interface in the checksum storage of the module circuit schematic, only authorizing users to perform checksum storage, the problems of low manual verification efficiency and insufficient data security are solved, and efficient and safe module circuits are realized Schematic checksum storage.
Patent Information
- Application Number
- CN202411239477.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the verification of module circuit schematic diagrams depends on manual operation, resulting in high time cost, low accuracy, slow speed, and easy to be lost or leaked on local disks, and any user can call them, resulting in insufficient data security.
The call request of the module circuit schematic is sent to the server through the application programming interface, and only the user is authorized to call and edit, and automatically check and store it to the server, avoiding manual checksum local storage.
Improves the verification accuracy and speed of the module circuit schematic diagram, shortens the design cycle, enhances data security, and avoids data loss or leakage due to disk corruption.
Smart Images

Figure CN119089859A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic design automation, and in particular to a verification method, device, electronic equipment and storage medium for a module circuit schematic. Background Art
[0002] Currently, after a user uses an electronic design automation (EDA) tool to call a locally stored module circuit schematic and edits the module circuit schematic to obtain the latest version of the module circuit schematic, manual verification is mainly used to determine whether the latest version of the module circuit schematic has any problems; if the latest version of the module circuit schematic has no problems, the user manually stores the latest version of the module circuit schematic to a local disk.
[0003] However, manual verification of module circuit schematics consumes a large amount of time and is prone to errors, with low checking accuracy and slow checking speed, which prolongs the design cycle of the module circuit schematics and reduces the design efficiency of the module circuit schematics of engineers. In addition, the module circuit schematics are stored in the local disk, which may cause the module circuit schematics to be lost or leaked due to disk damage, and any user can call the locally stored module circuit schematics, which may also cause the module circuit schematics to be lost or leaked. Summary of the invention
[0004] The present invention provides a module circuit schematic diagram verification method, device, electronic device and storage medium, which can automatically perform module circuit schematic diagram verification on the module circuit schematic diagram to obtain an accurate verification result, without the need for a user to manually verify the module circuit schematic diagram, thereby reducing the time cost consumed by manually verifying the module circuit schematic diagram, improving the verification accuracy and verification speed of the module circuit schematic diagram, thereby shortening the design cycle of the module circuit schematic diagram and improving the design efficiency of the user's module circuit schematic diagram; and automatically saving the module circuit schematic diagram to a schematic diagram storage area of a server, without the need for a user to manually store the module circuit schematic diagram, avoiding the problem of module circuit schematic diagram loss or module circuit schematic diagram leakage due to disk damage, better ensuring the data security of the module circuit schematic diagram, and increasing the data security of the module circuit schematic diagram.
[0005] According to a first aspect of the present invention, a method for verifying a module circuit schematic diagram is provided, the method comprising:
[0006] Get the call request of the module circuit schematic diagram;
[0007] The calling request is sent to the server through an application programming interface, so that when the server determines that the user has the calling authority according to the calling request, the server allows the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain the target module circuit schematic diagram;
[0008] Performing module circuit schematic verification on the target module circuit schematic to obtain a verification result;
[0009] When the verification result is that the verification is passed, the target module circuit schematic diagram is sent to the server through the application programming interface, so that the server stores the target module circuit schematic diagram in a schematic storage area.
[0010] According to a second aspect of the present invention, a device for verifying a module circuit schematic diagram is provided, the device comprising:
[0011] A request acquisition module is used to obtain a call request for a module circuit schematic diagram;
[0012] A request sending module, used for sending the call request to the server through an application programming interface, so that when the server determines that the user has the call authority according to the call request, the server allows the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain the target module circuit schematic diagram;
[0013] A schematic diagram verification module, used for performing a module circuit schematic diagram verification on the target module circuit schematic diagram to obtain a verification result;
[0014] The schematic diagram saving module is used to send the target module circuit schematic diagram to the server through the application programming interface when the verification result is verification passed, so that the server stores the target module circuit schematic diagram in the schematic diagram storage area.
[0015] According to a third aspect of the present invention, there is provided an electronic device, comprising a processor and a memory.
[0016] The memory is used to store codes and related data;
[0017] The processor is used to execute the code in the memory to implement the verification method of the module circuit schematic diagram as described in any one of the embodiments of the present invention.
[0018] According to a fourth aspect of the present invention, there is provided a storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for verifying a module circuit schematic diagram as described in any one of the embodiments of the present invention.
[0019] In an embodiment of the present invention, a call request for a module circuit schematic diagram of a user is obtained, and the call request is sent to a server through an application programming interface, so that when the server determines that the user has the call authority according to the call request, the user is allowed to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain a target module circuit schematic diagram, which is equivalent to only users with the call authority being able to call the module circuit schematic diagram for schematic design, thereby solving the problem that any user can call the locally stored module circuit schematic diagram, resulting in the loss of the module circuit schematic diagram or the leakage of the module circuit schematic diagram, and then the module circuit schematic diagram is verified on the target module circuit schematic diagram to obtain a verification result, that is, the module circuit schematic diagram can be automatically verified on the module circuit schematic diagram to obtain an accurate verification result, without the need for the user to manually verify the module circuit schematic diagram. The invention discloses a method for realizing a method for realizing a user-friendly circuit diagram and a schematic diagram of a module circuit, which reduces the time cost consumed by manually verifying the module circuit schematic diagram, improves the verification accuracy and verification speed of the module circuit schematic diagram, thereby shortening the design cycle of the module circuit schematic diagram and improving the design efficiency of the user's module circuit schematic diagram; and when the verification result is that the verification is passed, the target module circuit schematic diagram is sent to the server through the application programming interface, so that the server stores the target module circuit schematic diagram in the schematic diagram storage area, that is, the module circuit schematic diagram can be automatically saved to the schematic diagram storage area of the server, without the need for the user to manually store the module circuit schematic diagram, thereby avoiding the problem of module circuit schematic diagram loss or module circuit schematic diagram leakage due to disk damage, thereby better ensuring the data security of the module circuit schematic diagram and increasing the data security of the module circuit schematic diagram. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 paying creative work.
[0021] Figure 1 It is a flow chart of a method for verifying a module circuit schematic diagram provided by an embodiment of the present invention;
[0022] Figure 2 is another flow chart of a method for verifying a module circuit schematic diagram provided by an embodiment of the present invention;
[0023] Figure 3 It is a structural schematic diagram of a verification device for a module circuit schematic diagram provided by an embodiment of the present invention;
[0024] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0026] The terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0027] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0028] Figure 1 The present invention provides a flow chart of a method for verifying a module circuit schematic diagram. The method can be executed by a verification device for a module circuit schematic diagram. The device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated into an electronic device, such as a computer, a server, etc. The following embodiments will be described by taking the device integrated into an electronic device as an example. Figure 1 , the method may specifically include the following steps:
[0029] Step 101, obtaining a call request for a module circuit schematic.
[0030] The module circuit schematic diagram may be understood as a circuit diagram representing the working principle of the module circuit; the user may be an engineer who designs the module circuit schematic diagram.
[0031] In an optional implementation, after the user opens the electronic design automation tool, the user may select a module circuit schematic in the module circuit schematic name display interface to trigger an operation of generating a call request for the module circuit schematic.
[0032] Step 102, sending the call request to the server through the application programming interface, so that when the server determines that the user has the call authority according to the call request, the server allows the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain the target module circuit schematic diagram.
[0033] The calling request may include a user identifier.
[0034] In an optional implementation, a call request may be sent to a server through an application programming interface; the server may query preset permission information according to the user identifier to obtain a query result, and when the query result includes a call permission, the server may determine that the user has the call permission, and allow the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain a target module circuit schematic diagram. The preset permission information may include permission information corresponding to each user identifier, and the permission information may include a call permission, a save permission, a view permission, an edit permission, etc.
[0035] For example, the user identification of user 1 is: S, and the corresponding permission information of user 1 is: calling permission, saving permission, viewing permission; the calling request can be sent to the server through the application programming interface; the server can query the preset permission information according to the user identification (S) to obtain the query result (calling permission, saving permission, viewing permission). When the query result includes calling permission, the server can determine that the user has calling permission, and allow the user to call the module circuit schematic and edit the module circuit schematic to obtain the target module circuit schematic.
[0036] Step 103, performing module circuit schematic verification on the target module circuit schematic to obtain a verification result.
[0037] In an optional implementation, current schematic information is extracted from the target module circuit schematic, standard schematic information is obtained, and the verification result of the target module circuit schematic is determined based on the current schematic information and the standard schematic information. The standard schematic information can be understood as the standard component information and standard component connection information in the preset module circuit schematic; the current schematic information can be understood as the current component information and current component connection information in the module circuit schematic, and the current component connection information can include component identification and network identification.
[0038] Specifically, the current schematic information is extracted from the target module circuit schematic, the standard schematic information is obtained, and it is determined whether the standard schematic information is the same as the current schematic information; when it is determined that the standard schematic information is the same as the current schematic information, the verification result is determined to be passed; when it is determined that the standard schematic information is not the same as the current schematic information, the verification result is determined to be failed.
[0039] Further, the current schematic information includes current component information and current component connection information, and the standard schematic information includes standard component information and standard component connection information. It can be determined whether the current component information is the same as the standard component information, and whether the current component connection information is the same as the standard component connection information; when it is determined that the current component information is the same as the standard component information and the current component connection information is the same as the standard component connection information, it is determined that the current schematic information is the same as the standard schematic information; when it is determined that the current component information is not the same as the standard component information or the current component connection information is not the same as the standard component connection information, it is determined that the current schematic information is not the same as the standard schematic information, which can improve the accuracy and speed of determining whether the current schematic information is the same as the standard schematic information, thereby improving the accuracy and speed of determining the verification result, without the need for the user to manually perform module circuit schematic verification on the module circuit schematic to obtain the verification result, thereby improving the verification accuracy and speed of the module circuit schematic.
[0040] Furthermore, character matching can be performed on the current component information and the standard component information to obtain a first matching result. If the first matching result is a successful match, it can be determined that the current component information is the same as the standard component information. If the first matching result is a matching failure, it can be determined that the current component information is different from the standard component information. Then, character matching can be performed on the current component connection information and the standard component connection information to obtain a second matching result. If the second matching result is a successful match, it can be determined that the current component connection information is the same as the standard component connection information. If the second matching result is a matching failure, it can be determined that the current component connection information is different from the standard component connection information, and it can be determined whether the current component connection information is the same as the standard component connection information.
[0041] For example, the standard schematic information of the module circuit schematic P is: standard component information (component 1, component 2) and standard component connection information ((a-component 1-b), (a-component 2-c)), wherein (a-component 1-b) can be understood as component 1 being connected to network a and network b respectively, and (a-component 2-c) can be understood as component 2 being connected to network a and network c respectively; the current schematic information of the module circuit schematic P is: standard component information (component 1, component 2) and standard component connection information ((a-component 1-b), (a-component 2-c)). A first matching result is obtained by character matching the current component information and the standard component information, and a matching success is obtained. Then, a second matching result is obtained by character matching the current component connection information and the standard component connection information, and it can be determined that the current component information and the standard component connection information are the same, and the current component connection information and the standard component connection information are the same, and further, it can be determined that the standard schematic information and the current schematic information are the same, that is, the verification result is verification passed.
[0042] As another example, the standard schematic information of the module circuit schematic diagram P is: standard component information (component 1, component 2) and standard component connection information ((a-component 1-b), (a-component 2-c)); the current schematic information of the module circuit schematic diagram P is: current component information (component 1, component 2) and current component connection information ((a-component 1-b), (a-component 2-d)). Character matching is performed on the current component information and the standard component information to obtain a first matching result of successful matching, and then character matching is performed on the current component connection information and the standard component connection information to obtain a second matching result of failed matching. It can be determined that the current component information and the standard component information are the same, but the current component connection information and the standard component connection information are different, and then it can be determined that the standard schematic information and the current schematic information are different, that is, the verification result is verification failure.
[0043] Step 104 , when the verification result is that the verification is passed, the circuit schematic diagram of the target module is sent to the server through the application programming interface, so that the server stores the circuit schematic diagram of the target module in the schematic storage area.
[0044] In an embodiment of the present invention, a call request for a module circuit schematic diagram of a user is obtained, and the call request is sent to a server through an application programming interface, so that when the server determines that the user has the call authority according to the call request, the server allows the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain a target module circuit schematic diagram, which is equivalent to only users with the call authority being able to call the module circuit schematic diagram for schematic design, thereby solving the problem that any user can call the locally stored module circuit schematic diagram, resulting in the loss of the module circuit schematic diagram or the leakage of the module circuit schematic diagram, and then the module circuit schematic diagram is verified on the target module circuit schematic diagram to obtain a verification result, that is, the module circuit schematic diagram can be automatically verified on the module circuit schematic diagram to obtain an accurate verification result, without the need for the user to manually verify the module circuit schematic diagram, thereby reducing the time and cost consumed by manually verifying the module circuit schematic diagram. This improves the verification accuracy and verification speed of the module circuit schematic, thereby shortening the design cycle of the module circuit schematic and improving the design efficiency of the user's module circuit schematic; and when the verification result is that the verification is passed, a save request for the target module circuit schematic is generated, and the save request is sent to the server through the application programming interface, so that when the server determines that the user has the saving authority according to the save request, the target module circuit schematic is stored in the schematic storage area, that is, when it is determined that the user has the saving authority of the target module circuit schematic, the module circuit schematic can be automatically saved to the schematic storage area of the server, without the user manually storing the module circuit schematic, avoiding the problem of module circuit schematic loss or module circuit schematic leakage due to disk damage, better ensuring the data security of the module circuit schematic, and increasing the data security of the module circuit schematic.
[0045] In some embodiments, after determining that the verification result is verification failure, a schematic verification report may be generated according to the standard schematic information and the current schematic information, and the schematic verification report may be stored in a report storage area.
[0046] In an optional implementation, a schematic verification report can be obtained by integrating standard schematic information and current schematic information into a document, and the schematic verification report can be stored in a report storage area, so that users can determine design errors that occur during module circuit schematic design based on standard schematic information and current schematic information, thereby improving the accuracy of user module circuit schematic design.
[0047] In some embodiments, before sending the target module circuit schematic to the server through the application programming interface so that the server stores the target module circuit schematic in the schematic storage area, the target module circuit schematic diagram's image file identifier, the submodule circuit identifier of the submodule circuit included in the target module circuit schematic diagram, and the component identifier in the target module circuit schematic diagram can also be obtained; record information is generated according to the image file identifier, the submodule circuit identifier, and the component identifier, and the record information is sent to the server through the application programming interface so that the server saves the record information in the record information storage area. Among them, the image file identifier can be understood as the file name of the target module circuit schematic diagram.
[0048] For example, the target module circuit schematic diagram P includes component 1, component 2, and sub-module circuit r. The drawing file identifier (P) of the target module circuit schematic diagram, the sub-module circuit identifier (r) in the module circuit schematic diagram, and the component identifier (component 1, component 2) in the module circuit schematic diagram can be obtained; record information is generated according to the drawing file identifier, the sub-module circuit identifier, and the component identifier, and the record information is sent to the server through the application programming interface, so that the server saves the record information to the record information storage area, which can facilitate tracing the usage information of each component in the module circuit schematic diagram, and tracing the usage information of each module circuit in the module circuit schematic diagram.
[0049] In some embodiments, module circuit calling information may be generated according to the calling request, and the module circuit calling information may be stored in a calling information storage area.
[0050] Among them, the call request may include the call time, the user identifier of calling the target module circuit schematic and the drawing file identifier of the target module circuit schematic. The call information can be understood as the recorded usage information of the target module circuit schematic. The call information may include the call time, the user identifier and the drawing file identifier of the called target module circuit schematic.
[0051] Specifically, the calling time, the user identifier of the target module circuit schematic and the drawing file identifier of the target module circuit schematic in the calling request can be extracted, and the calling time, the user identifier of the target module circuit schematic and the drawing file identifier of the target module circuit schematic can be determined as the module circuit calling information, and then the module circuit calling information is stored in the calling information storage area, so that the user can trace the usage information of the module circuit schematic based on the calling information.
[0052] For example, the calling time T, the user identifier 1 for calling the target module circuit schematic, and the drawing file identifier P of the target module circuit schematic in the calling request can be extracted, and the calling time T, the user identifier 1 for calling the module circuit schematic, and the drawing file identifier P of the module circuit schematic can be determined as the module circuit calling information, and then the module circuit calling information is stored in the calling information storage area, so that the user can know from the module circuit calling information that user 1 called the module circuit schematic P at time T to perform schematic design.
[0053] The following further describes the verification method of the module circuit schematic diagram provided by the embodiment of the present invention. Figure 2 As shown, Figure 2 FIG. 4 is another flow chart of a method for verifying a module circuit schematic diagram provided by an embodiment of the present invention, which may specifically include the following steps:
[0054] Step 201, obtaining a call request for a module circuit schematic.
[0055] Step 202, sending the call request to the server through the application programming interface, so that when the server determines that the user has the call authority according to the call request, the server allows the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain the target module circuit schematic diagram.
[0056] Step 203, extracting current schematic diagram information from the target module circuit schematic diagram.
[0057] Step 204, obtaining standard schematic diagram information.
[0058] Step 205, determining the verification result of the circuit schematic of the target module based on the current schematic information and the standard schematic information.
[0059] Step 206, determine whether the verification result is passed; if so, execute step 207; if not, execute step 211.
[0060] Step 207, obtain the diagram file identifier of the target module circuit schematic, and determine based on the diagram file identifier whether a historical module circuit schematic with the same diagram file identifier is stored in the server, if so, execute step 208, if not, execute step 210.
[0061] In an optional implementation, a query request is generated according to the image file identifier of the target module circuit schematic; the query request is sent to the server through the application programming interface, so that the server performs a query on the image file identifier according to the query request to obtain a query result; the query result is obtained through the application programming interface, and when the query result is a successful query, it is determined that a historical module circuit schematic with the same image file identifier is stored in the server. The query request includes the image file identifier; the historical module circuit schematic can be understood as a module circuit schematic with the same image file identifier.
[0062] Specifically, a query request is sent to the server through an application programming interface, so that the server matches the drawing file identifier with the drawing file identifier of the historical module circuit schematic stored in the server to obtain a matching result. If the matching result is a successful match, it can be determined that the query result is a successful query, and it can be determined that a historical module circuit schematic with the same drawing file identifier as the target module circuit schematic is stored in the server; if the matching result is a failed match, it can be determined that the query result is a failed query, and it can be determined that the historical module circuit schematic with the same drawing file identifier as the target module circuit schematic is not stored in the server.
[0063] For example, the drawing file identifier of the target module circuit schematic P is P, and the drawing file identifiers of the historical module circuit schematics stored in the server include: P, X, Y; a query request is generated according to the drawing file identifier of the target module circuit schematic, and the query request is sent to the server through the application programming interface, so that the server matches the drawing file identifier (P) with the drawing file identifiers (P, X, Y) of the historical module circuit schematics stored in the server. If the drawing file identifier of the historical module circuit schematic contains the same identifier as the drawing file identifier of the target module circuit schematic, it can be determined that the matching result is successful, and it can be determined that the query result is successful, and it can be determined that the server stores a historical module circuit schematic with the same drawing file identifier as the target module circuit schematic.
[0064] In an embodiment of the present invention, a query request is generated according to the image file identifier of the target module circuit schematic diagram; a query request is sent to a server through an application programming interface so that the server performs an image file identifier query according to the query request to obtain a query result; the query result is obtained through the application programming interface, and when the query result is a successful query, a historical module circuit schematic diagram with the same image file identifier as the target module circuit schematic diagram is quickly determined to be stored in the server, so that when it is determined that the historical module circuit schematic diagram with the same image file identifier as the target module circuit schematic diagram is stored in the server, a deletion request is generated according to the image file identifier; a deletion request is sent to the server through the application programming interface so that the server deletes the historical module circuit schematic diagram according to the deletion request, and then the module circuit schematic diagram is sent to the server through the application programming interface, so as to avoid the situation where the server stores two module circuit schematic diagrams of the same version, resulting in a waste of server storage resources, and improving the storage resource utilization of the server. In addition, when it is determined that the server stores the historical module circuit schematic diagram with the same image file identifier as the target module circuit schematic diagram, the version update of the module circuit schematic diagram can be automatically completed, thereby increasing the convenience of the version update of the module circuit schematic diagram.
[0065] Step 208: Generate a deletion request according to the graph file identifier.
[0066] Step 209: Send a deletion request to the server through the application programming interface, so that the server deletes the historical module circuit schematic diagram according to the deletion request.
[0067] Step 210: Send the target module circuit schematic to the server through the application programming interface, so that the server stores the target module circuit schematic in the schematic storage area.
[0068] Step 211, generating a schematic verification report according to the standard schematic information and the current schematic information.
[0069] Step 212, storing the schematic verification report in a report storage area.
[0070] In an embodiment of the present invention, the module circuit schematic diagram can be automatically verified to obtain an accurate verification result, without the need for the user to manually verify the module circuit schematic diagram, thereby reducing the time cost consumed by manually verifying the module circuit schematic diagram, improving the verification accuracy and verification speed of the module circuit schematic diagram, and thus shortening the design cycle of the module circuit schematic diagram, and improving the design efficiency of the user's module circuit schematic diagram; and when the verification result is that the verification is passed, when the verification result is that the verification is passed, the target module circuit schematic diagram is sent to the server through the application programming interface, so that the server stores the target module circuit schematic diagram in the schematic storage area, that is, the module circuit schematic diagram can be automatically saved to the schematic storage area of the server, without the need for the user to manually store the module circuit schematic diagram, avoiding the problem of module circuit schematic diagram loss or module circuit schematic diagram leakage due to disk damage, better ensuring the data security of the module circuit schematic diagram, and increasing the data security of the module circuit schematic diagram.
[0071] In some embodiments, after determining that the verification result is a verification failure, the information in the current schematic information that is inconsistent with the standard schematic information can also be determined as the diagram difference information; based on the diagram difference information and the standard schematic information, the components to be replaced in the circuit schematic of the target module are determined, and the target components to replace the components to be replaced are determined in the standard schematic information; the components to be replaced in the circuit schematic of the target module are replaced with the target components. The target components can be understood as the components in the standard schematic information that the components to be replaced are about to replace.
[0072] In an optional implementation, character matching of the current component connection information can be performed according to a preset number of characters to obtain a matching result. When the matching result is a matching failure, the preset number of characters that failed to match in the current component connection information are determined as diagram distinguishing information; then the current component in the current component connection information is determined as the component to be replaced, and the standard component in the standard component connection information is determined as the target component. In this way, information in the current schematic information that is inconsistent with the standard schematic information can be replaced in batches, without the need for the user to manually adjust the current schematic information of the target module circuit schematic, thereby saving the modification time of the target module circuit schematic, and thereby improving the inspection speed and efficiency of the target module circuit schematic.
[0073] For example, the standard schematic information of the module circuit schematic P is: standard component information (component 1, component 2) and standard component connection information (a-component 1-b, (a-component 2-c)); the current schematic information of the module circuit schematic P is: current component information (component 1, component 2) and current component connection information ((a-component 1-b), (a-component 3-c)). The preset number can be determined based on the number of characters in the actual component connection information of each component connection information. For example, in this example, the number of characters in the component connection information of component 1 is 11, and the preset number can be 11, that is, 11 characters are matched each time, and the current component connection information and the standard component connection information are matched according to 11 characters. The first matched characters are: (a-component 1-b) and (a-component 1-b), and it can be determined that the matching result is a successful match. Then, it is determined that the next character to be matched is: (a-component 2-c), and it can be determined that the matching result is a failed match. The preset number of characters (a-component 3-c) that failed to match in the current component connection information are determined as image distinction information. The intermediate connecting component between network a and network c in the figure distinction information is component 3, and the intermediate connecting component between network a and network c in the standard component connection information is component 2. It can be determined that the component to be replaced in the target module circuit schematic is component 3 in the current component information, and the target component is component 2 in the standard component information. The component to be replaced (component 3) in the target module circuit schematic is replaced with the target component (component 2).
[0074] Figure 3 1 is a schematic diagram of a structure of a device for verifying a module circuit schematic diagram provided by an embodiment of the present invention. The device is suitable for executing a method for verifying a module circuit schematic diagram provided by an embodiment of the present invention. Figure 3 As shown, the device may specifically include:
[0075] A request acquisition module 301 is used to acquire a call request for a module circuit schematic diagram;
[0076] A request sending module 302 is used to send the call request to the server through an application programming interface, so that when the server determines that the user has the call authority according to the call request, the server allows the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain the target module circuit schematic diagram;
[0077] The schematic diagram verification module 303 is used to perform a module circuit schematic diagram verification on the target module circuit schematic diagram to obtain a verification result;
[0078] The schematic diagram saving module 304 is used to send the target module circuit schematic diagram to the server through the application programming interface when the verification result is verification passed, so that the server stores the target module circuit schematic diagram in the schematic diagram storage area.
[0079] Optionally, the schematic diagram verification module 303 is specifically used for:
[0080] Extracting current schematic diagram information from the target module circuit schematic diagram;
[0081] Get standard schematic information;
[0082] Based on the current schematic information and the standard schematic information, a verification result of the target module circuit schematic is determined.
[0083] Optionally, the schematic verification module 303 determines the verification result of the circuit schematic of the target module based on the current schematic information and the standard schematic information, including:
[0084] Determining whether the current schematic diagram information is the same as the standard schematic diagram information;
[0085] When it is determined that the standard schematic diagram information is the same as the current schematic diagram information, determining that the verification result is a verification pass;
[0086] When it is determined that the standard schematic diagram information is different from the current schematic diagram information, the verification result is determined to be verification failure.
[0087] Optionally, the current schematic information includes current component information and current component connection information, and the standard schematic information includes standard component information and standard component connection information. The schematic verification module 303 determines whether the current schematic information is the same as the standard schematic information, including:
[0088] Determining whether the current component information is the same as the standard component information, and determining whether the current component connection information is the same as the standard component connection information;
[0089] When it is determined that the current component information is the same as the standard component information and the current component connection information is the same as the standard component connection information, determining that the current schematic diagram information is the same as the standard schematic diagram information;
[0090] When it is determined that the current component information is different from the standard component information or the current component connection information is different from the standard component connection information, it is determined that the current schematic diagram information is different from the standard schematic diagram information.
[0091] Furthermore, the device also includes:
[0092] A report generation module, used for generating a schematic verification report according to the standard schematic information and the current schematic information;
[0093] The report storage module is used to store the schematic verification report in the report storage area.
[0094] Furthermore, the device also includes:
[0095] A difference information determination module, used for determining information in the current schematic diagram information that is inconsistent with the standard schematic diagram information as diagram difference information;
[0096] A device replacement module, used to determine the components to be replaced in the circuit schematic diagram of the target module according to the diagram distinction information and the standard schematic diagram information, and to determine the target components to replace the components to be replaced in the standard schematic diagram information;
[0097] The components to be replaced in the circuit schematic diagram of the target module are replaced with the target components.
[0098] Furthermore, the device also includes:
[0099] A first identification acquisition module, used to acquire a drawing file identification of the target module circuit schematic diagram, a submodule circuit identification of a submodule circuit included in the target module circuit schematic diagram, and a component identification in the target module circuit schematic diagram;
[0100] The record information storage module is used to generate record information according to the drawing file identifier, the submodule circuit identifier and the component identifier, and send the record information to the server through the application programming interface so that the server saves the record information to the record information storage area.
[0101] Furthermore, the device also includes:
[0102] A second identification acquisition module, used to acquire a diagram file identification of the target module circuit schematic diagram, and determine whether a historical module circuit schematic diagram identical to the diagram file identification is stored in the server based on the diagram file identification;
[0103] A request generating module, configured to generate a deletion request according to the diagram file identifier when it is determined that a historical module circuit schematic diagram identical to the diagram file identifier is stored in the server;
[0104] The diagram deletion module is used to send the deletion request to the server through the application programming interface, so that the server deletes the historical module circuit schematic diagram according to the deletion request.
[0105] Furthermore, the device also includes:
[0106] A calling information generating module, used for generating module circuit calling information according to the calling request;
[0107] The calling information storage module is used to store the module circuit calling information in the calling information storage area.
[0108] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0109] The module circuit schematic verification device provided in the embodiment of the present invention can obtain the user's module circuit schematic call request, and send the call request to the server through the application programming interface, so that when the server determines that the user has the calling authority based on the call request, it allows the user to call the module circuit schematic and edit the module circuit schematic to obtain the target module circuit schematic, which is equivalent to only users with the calling authority can call the module circuit schematic for schematic design, thereby solving the problem that any user can call the locally stored module circuit schematic, resulting in the loss of the module circuit schematic or the leakage of the module circuit schematic, and then performs module circuit schematic verification on the target module circuit schematic to obtain the verification result, that is, the module circuit schematic can be automatically verified to obtain an accurate verification result without the need for manual verification by the user. Verify the module circuit schematic, reduce the time cost consumed by manually verifying the module circuit schematic, improve the verification accuracy and verification speed of the module circuit schematic, thereby shortening the design cycle of the module circuit schematic, and improving the design efficiency of the user's module circuit schematic; and when the verification result is that the verification is passed, send the target module circuit schematic to the server through the application programming interface, so that the server stores the target module circuit schematic in the schematic storage area, that is, the module circuit schematic can be automatically saved to the schematic storage area of the server, without the user manually storing the module circuit schematic, avoiding the problem of module circuit schematic loss or module circuit schematic leakage due to disk damage, better ensuring the data security of the module circuit schematic, and increasing the data security of the module circuit schematic.
[0110] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0111] Please refer to Figure 4 , an electronic device 50 is provided, comprising:
[0112] a processor 51; and
[0113] A memory 52, used to store executable instructions of the processor;
[0114] The processor 51 is configured to execute the above-mentioned method by executing the executable instructions.
[0115] The processor 51 can communicate with the memory 52 via a bus 53 .
[0116] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned method is implemented.
[0117] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for verifying a module circuit schematic diagram, characterized in that: The method comprises: Get the call request of the module circuit schematic diagram; The calling request is sent to the server through an application programming interface, so that when the server determines that the user has the calling authority according to the calling request, the server allows the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain the target module circuit schematic diagram; Performing module circuit schematic verification on the target module circuit schematic to obtain a verification result; When the verification result is that the verification is passed, the target module circuit schematic diagram is sent to the server through the application programming interface, so that the server stores the target module circuit schematic diagram in a schematic storage area.
2. The method according to claim 1, characterized in that The performing module circuit schematic verification on the target module circuit schematic to obtain a verification result includes: Extracting current schematic diagram information from the target module circuit schematic diagram; Get standard schematic information; Based on the current schematic information and the standard schematic information, a verification result of the target module circuit schematic is determined.
3. The method according to claim 2, characterized in that The step of determining the verification result of the circuit schematic diagram of the target module based on the current schematic diagram information and the standard schematic diagram information includes: Determining whether the current schematic diagram information is the same as the standard schematic diagram information; When it is determined that the standard schematic diagram information is the same as the current schematic diagram information, determining that the verification result is a verification pass; When it is determined that the standard schematic diagram information is different from the current schematic diagram information, the verification result is determined to be verification failure.
4. The method according to claim 3, characterized in that The current schematic diagram information includes current component information and current component connection information, the standard schematic diagram information includes standard component information and standard component connection information, and the determining whether the current schematic diagram information is the same as the standard schematic diagram information includes: Determining whether the current component information is the same as the standard component information, and determining whether the current component connection information is the same as the standard component connection information; When it is determined that the current component information is the same as the standard component information and the current component connection information is the same as the standard component connection information, determining that the current schematic diagram information is the same as the standard schematic diagram information; When it is determined that the current component information is different from the standard component information or the current component connection information is different from the standard component connection information, it is determined that the current schematic diagram information is different from the standard schematic diagram information.
5. The method according to claim 3, characterized in that: After determining that the verification result is a verification failure, the method further includes: Generate a schematic verification report according to the standard schematic information and the current schematic information; The schematic verification report is stored in a report storage area.
6. The method according to claim 3, characterized in that After determining that the verification result is a verification failure, the method further includes: Determine the information in the current schematic diagram information that is inconsistent with the standard schematic diagram information as diagram distinguishing information; Determine the components to be replaced in the circuit schematic diagram of the target module according to the diagram difference information and the standard schematic diagram information, and determine the target components to replace the components to be replaced in the standard schematic diagram information; The components to be replaced in the circuit schematic diagram of the target module are replaced with the target components.
7. The method according to claim 1, characterized in that Before sending the target module circuit schematic to the server through the application programming interface so that the server stores the target module circuit schematic in a schematic storage area, the method further includes: Acquire a drawing file identifier of the target module circuit schematic diagram, a submodule circuit identifier of a submodule circuit included in the target module circuit schematic diagram, and a component identifier in the target module circuit schematic diagram; Record information is generated according to the drawing file identifier, the submodule circuit identifier and the component identifier, and the record information is sent to the server through the application programming interface, so that the server saves the record information to a record information storage area.
8. The method according to claim 1, characterized in that: Before sending the target module circuit schematic to the server through the application programming interface so that the server stores the target module circuit schematic in a schematic storage area, the method further includes: Obtaining a diagram file identifier of the target module circuit schematic diagram, and determining, based on the diagram file identifier, whether a historical module circuit schematic diagram identical to the diagram file identifier is stored in the server; When it is determined that a historical module circuit schematic diagram identical to the diagram file identifier is stored in the server, a deletion request is generated according to the diagram file identifier; The deletion request is sent to the server through the application programming interface, so that the server deletes the historical module circuit schematic diagram according to the deletion request.
9. The method according to claim 1, characterized in that: The method further comprises: Generate module circuit calling information according to the calling request; The module circuit calling information is stored in a calling information storage area.
10. A device for verifying a module circuit schematic diagram, characterized in that: The device comprises: A request acquisition module is used to obtain a call request for a module circuit schematic diagram; A request sending module, used for sending the call request to the server through an application programming interface, so that when the server determines that the user has the call authority according to the call request, the server allows the user to call the module circuit schematic diagram and edit the module circuit schematic diagram to obtain the target module circuit schematic diagram; A schematic diagram verification module, used for performing a module circuit schematic diagram verification on the target module circuit schematic diagram to obtain a verification result; The schematic diagram saving module is used to send the target module circuit schematic diagram to the server through the application programming interface when the verification result is verification passed, so that the server stores the target module circuit schematic diagram in the schematic diagram storage area.
11. An electronic device, characterized in that: Including processor and memory, The memory is used to store codes and related data; The processor is used to execute the code in the memory to implement the verification method of the module circuit schematic diagram according to any one of claims 1 to 9.
12. A storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for verifying the module circuit schematic diagram according to any one of claims 1 to 9 is implemented.
