Methods, apparatus, equipment and storage media for circuit sharing design
Patent Information
- Application Number
- CN202310664398.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-06
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2043-06-06
AI Technical Summary
[0004]有鉴于此,本申请实施例提供了一种电路共享设计的方法、装置、设备及存储介质,以解决提高colay设计的检验效率与准确性的问题
[0032]The technical solution provided in this application filters reference circuit identification information that meets the first circuit sharing requirement from the target circuit schematic, and then obtains reference component identification information corresponding to components that conform to preset printed circuit board design rules and adopt circuit sharing design based on the reference circuit identification information. It extracts target component identification information that meets the second circuit sharing requirement from the printed circuit board design drawing, and then compares the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules. This achieves automatic acquisition of reference component identification information corresponding to all components in the target circuit schematic that conform to the preset printed circuit board design rules and adopt a coating design, as well as target component identification information corresponding to all components in the printed circuit board design drawing that adopt a coating design. Simultaneously, it can automatically determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules by comparing the target component identification information with the reference component identification information. This eliminates the need for manual screening of components using coating designs in printed circuit board (PCB) drawings, as well as the process of analyzing and judging whether components using coating designs conform to preset PCB design rules. This speeds up the inspection efficiency of coating designs and avoids the risk of leaving behind coating designs that do not conform to PCB design rules when manually analyzing and judging components using coating designs in PCB drawings, thus improving the accuracy of coating design inspection.
Smart Images

Figure CN116522863B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of circuit design testing, specifically to methods, apparatus, equipment, and storage media for circuit shared designs. Background Technology
[0002] To enable multiple solutions to be implemented on a single printed circuit board (PCB), some components are often designed using a colay configuration during the circuit schematic design. However, when users want to verify whether components using colay configurations in the PCB design conform to PCB design rules, they must first manually select these components from the PCB design and then manually analyze and determine their compliance. This not only makes colay design verification time-consuming but also carries the risk of including non-compliant colay designs, reducing the accuracy of colay design verification.
[0003] Therefore, improving the efficiency and accuracy of coating design inspection has become an urgent problem to be solved. Summary of the Invention
[0004] In view of this, embodiments of this application provide a method, apparatus, device, and storage medium for circuit sharing design to address the problem of improving the inspection efficiency and accuracy of coating designs.
[0005] In a first aspect, embodiments of this application provide a method for verifying circuit-shared designs, the method comprising:
[0006] Based on the preset first circuit sharing requirements, reference circuit identification information that meets the first circuit sharing requirements is selected from the target circuit schematic diagram;
[0007] Based on the reference circuit identification information, obtain the reference component identification information. The circuit sharing design of the component corresponding to the reference component identification information conforms to the preset printed circuit board design rules.
[0008] According to the preset second circuit sharing requirements, target component identification information that meets the preset second circuit sharing requirements is extracted from the printed circuit board design drawing, wherein the printed circuit board design drawing corresponds to the target circuit schematic.
[0009] The target component identification information is compared with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules.
[0010] In one optional embodiment, the first circuit sharing requirement includes a preset number of keywords; based on the preset first circuit sharing requirement, reference circuit identification information that meets the first circuit sharing requirement is selected from the target circuit schematic, specifically including:
[0011] Identify the circuit identification information corresponding to each component in the target circuit schematic;
[0012] When it is determined that the circuit identification information of the first element contains any keyword from a preset number of keywords, the circuit identification information corresponding to the first element is extracted from the target circuit schematic and used as reference circuit identification information, wherein the first element is any element contained in the target circuit schematic.
[0013] In one optional embodiment, both the reference component identification information and the target component identification information are pin information corresponding to the component.
[0014] In one optional embodiment, target component identification information conforming to the second circuit sharing requirement is extracted from the printed circuit board design drawing according to a preset second circuit sharing requirement, including:
[0015] Poll the pad set of each layer in the printed circuit board design;
[0016] When it is determined that there is an overlapping area between at least two pads in the pad set of the first layer, the component connected by at least two pads is determined to be a target component that meets the second circuit sharing requirements, and the target component identification information of the target component is obtained, wherein the first layer is any layer in the printed circuit board design.
[0017] In an optional embodiment, when both the reference element identification information and the target element identification information include multiple reference elements, the method further includes:
[0018] The first target component identification information is compared with each of the multiple reference component identification information until it is determined that the first target component identification information matches any one of the multiple reference component identification information. The comparison operation stops when it is determined that the design of the component corresponding to the first target component identification information conforms to the preset printed circuit board design rules. The first target component identification information is any one of the multiple target component identification information.
[0019] Alternatively, the comparison operation may be stopped when the identification information of the first target component does not match the identification information of multiple reference components, and it may be determined that the design of the component corresponding to the first target component does not conform to the preset printed circuit board design rules.
[0020] In an optional embodiment, before obtaining the reference component identification information based on the reference circuit identification information, the method further includes:
[0021] The circuit identification information is formatted and converted.
[0022] In an optional embodiment, before selecting reference circuit identification information that meets the first circuit sharing requirement from the target circuit schematic according to a preset first circuit sharing requirement, the method further includes:
[0023] Obtain the page information of the target circuit schematic;
[0024] For each page, the circuit identification information of the target circuit schematic is filtered out from the page information.
[0025] Secondly, embodiments of this application provide a testing device for circuit-shared designs, the device comprising:
[0026] The filtering module is used to filter reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic according to the preset first circuit sharing requirements;
[0027] The acquisition module is used to acquire reference component identification information based on reference circuit identification information. The design of the component corresponding to the reference component identification information conforms to the preset printed circuit board design rules.
[0028] The extraction module is used to extract the target component identification information that meets the second circuit sharing requirements from the printed circuit board design drawing according to the preset second circuit sharing requirements, wherein the printed circuit board design drawing corresponds to the target circuit schematic.
[0029] The comparison module is used to compare the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules.
[0030] Thirdly, embodiments of this application provide a computer device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the aforementioned circuit-shared design verification method.
[0031] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer instructions for causing a computer to execute the aforementioned circuit-shared design verification method.
[0032] The technical solution provided in this application filters reference circuit identification information that meets the first circuit sharing requirement from the target circuit schematic, and then obtains reference component identification information corresponding to components that conform to preset printed circuit board design rules and adopt circuit sharing design based on the reference circuit identification information. It extracts target component identification information that meets the second circuit sharing requirement from the printed circuit board design drawing, and then compares the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules. This achieves automatic acquisition of reference component identification information corresponding to all components in the target circuit schematic that conform to the preset printed circuit board design rules and adopt a coating design, as well as target component identification information corresponding to all components in the printed circuit board design drawing that adopt a coating design. Simultaneously, it can automatically determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules by comparing the target component identification information with the reference component identification information. This eliminates the need for manual screening of components using coating designs in printed circuit board (PCB) drawings, as well as the process of analyzing and judging whether components using coating designs conform to preset PCB design rules. This speeds up the inspection efficiency of coating designs and avoids the risk of leaving behind coating designs that do not conform to PCB design rules when manually analyzing and judging components using coating designs in PCB drawings, thus improving the accuracy of coating design inspection. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0034] Figure 1 This is a flowchart illustrating a method for verifying a circuit-shared design according to an embodiment of this application;
[0035] Figure 2 This is a flowchart illustrating another method for verifying a circuit-sharing design according to an embodiment of this application;
[0036] Figure 3 This is a schematic diagram illustrating the connection relationship between an electronic device, PCB software, and design software according to one application scenario of this application;
[0037] Figure 4 This is a flowchart illustrating another method for verifying a circuit-sharing design according to an embodiment of this application;
[0038] Figure 5 This is a structural block diagram of a testing device with a circuit-sharing design according to an embodiment of this application;
[0039] Figure 6 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of this application. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0041] It should be understood that the "instruction" mentioned in the embodiments of this application can be a direct instruction, an indirect instruction, or an indication of a relationship. For example, a instructing b can mean that a directly instructs b, such as b can be obtained through a; it can also mean that a indirectly instructs b, such as a instructing c, and b can be obtained through c; or it can mean that there is a relationship between a and b.
[0042] In the description of the embodiments of this application, the term "correspondence" may indicate that there is a direct or indirect correspondence between two things, or that there is an association between two things, or that there is a relationship of instruction and being instructed, configuration and being configured, etc.
[0043] In the embodiments of this application, "predefined" can be achieved by pre-storing corresponding codes, tables or other means that can be used to indicate relevant information in the device (e.g., including terminal devices and network devices). This application does not limit the specific implementation method.
[0044] With the rapid development of cloud data centers and the Internet, server product design has become more demanding in terms of efficiency and reliability. Server product design is particularly complex; a server motherboard contains tens of thousands of signals and thousands of electronic components, making its design scale quite large. Therefore, in the schematic design of server products, to achieve multi-scheme verification and debugging, some overlap designs are used in the circuit schematic. A overlap refers to the complete overlap of two or more different components on the PCB, or the sharing of one or more pads by multiple components, to allow a single PCB to accommodate multiple schemes. In current server products, this overlap design is mainly found in multi-scheme signal logic processing circuits. In actual use, when one or more pads are shared, the two or more different components sharing that pad cannot be simultaneously active; only one can be active to achieve different scheme verification and debugging. This places higher demands on the overlap design in the PCB design of server products.
[0045] However, in related technologies, components using coating designs in PCB design drawings are manually selected, and the coating specifications of these components are checked to verify whether they conform to PCB design rules. This process is time-consuming and has low efficiency in verifying coating designs. Furthermore, manual review of coating specifications is prone to omissions, resulting in low accuracy in coating design verification. This can lead to PCBs not being designed according to PCB design rules, affecting design quality and solution verification. To address these issues, this application provides a method for verifying circuit-shared designs. This method can be applied to any necessary electronic device, such as servers, computers, or terminals, without specific limitations. For ease of description, it will be referred to as an electronic device below. Figure 1 As shown, the method includes:
[0046] Step 110: Based on the preset first circuit sharing requirements, select reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic diagram.
[0047] During the design process of a target circuit schematic using design software, circuit elements such as components and wires in the schematic are labeled with circuit identification information by the user or the design software to indicate the design details of the target circuit schematic. For portions of the target circuit schematic that use a coating design, this information is also added to the circuit identification information. The electronic device can then retrieve all the circuit identification information from the target circuit schematic using tools in the design software and, in response to a pre-defined first circuit sharing requirement, filter out reference circuit identification information from this information. The pre-defined first circuit sharing requirement is used to indicate the coating design in the target circuit schematic.
[0048] The target circuit schematic can be a circuit design diagram of any electronic product (e.g., a server motherboard or processor) whose coating design is to be tested, which can be found in the design software. The design software can be any Electronic Design Automation (EDA) tool that currently provides coating design, such as Cadence Oregon Computer Aided Design Capture (Cadence OrCAD Capture) or Cadence Concept Hardware Design Language (Cadence Concept HDL). The specific form of adding circuit identification information depends on the design software of the target circuit schematic. This application does not impose specific limitations. For example, when the design software is Cadence Concept HDL, attributes or notes can be added to the target circuit schematic using the attribute or note functions provided in Cadence Concept HDL, and all added attributes and notes can be identified as circuit identification information.
[0049] Step 120: Obtain reference component identification information based on reference circuit identification information.
[0050] The circuit-shared design of the components corresponding to the reference component identification information conforms to the preset printed circuit board design rules. Electronic devices can search for pre-defined keywords in the reference circuit identification information and identify the information containing those keywords as reference component identification information. The pre-defined keywords are used to indicate components in the target circuit diagram. To find all reference component identification information in the reference circuit identification information, a fuzzy search is performed. The keyword format for the fuzzy search is not specifically limited in this embodiment and can be designed according to the keyword format required by different current fuzzy search algorithms. For example, it can be in the format "character 1 / character 2 / ...character N" + character M, which means searching for information in the reference component identification information that includes at least one of characters 1 to N, and simultaneously includes character M.
[0051] Step 130: Extract the target component identification information that meets the preset second circuit sharing requirements from the printed circuit board design drawing.
[0052] In this design, the printed circuit board (PCB) design corresponds to the target circuit schematic. After the target circuit schematic is designed, a corresponding PCB design can be obtained using relevant PCB software (e.g., Allegro). The electronic device can then respond to a preset second circuit sharing requirement by extracting the target component identification information that meets the preset second circuit sharing requirement from the PCB design using a tool. The preset second circuit sharing requirement is used to indicate the colay design in the PCB design. This preset second circuit sharing requirement may include checking for overlapping pads in the PCB design; if such overlaps exist, the component identification information connected to those pads is obtained.
[0053] Step 140: Compare the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules.
[0054] After acquiring the target component identification information and the reference component identification information, the electronic device will compare the target component identification information and the reference component identification information sequentially. When the target component identification information and the reference component identification information match, the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules. When the target component identification information and the reference component identification information do not match, the design of the component corresponding to the target component identification information does not conform to the preset printed circuit board design rules. The matching between the target component identification information and the reference component identification information can be that the target component identification information and the reference component identification information are the same component.
[0055] In this embodiment, reference circuit identification information that meets the first circuit sharing requirement is selected from the target circuit schematic. Based on this reference circuit identification information, reference component identification information corresponding to components that conform to preset printed circuit board design rules and adopt circuit sharing design is obtained. Target component identification information that meets the second circuit sharing requirement is extracted from the printed circuit board design drawing. The target component identification information is then compared with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules. This achieves automatic acquisition of reference component identification information corresponding to all components in the target circuit schematic that conform to the preset printed circuit board design rules and adopt a coating design, as well as target component identification information corresponding to all components in the printed circuit board design drawing that adopt a coating design. Furthermore, it can automatically determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules by comparing the target component identification information with the reference component identification information. This eliminates the need for manual screening of components using coating designs in printed circuit board (PCB) drawings, as well as the process of analyzing and judging whether components using coating designs conform to preset PCB design rules. This speeds up the inspection efficiency of coating designs and avoids the risk of leaving behind coating designs that do not conform to PCB design rules when manually analyzing and judging components using coating designs in PCB drawings, thus improving the accuracy of coating design inspection.
[0056] Figure 2 This is a flowchart illustrating another method for verifying a circuit-sharing design, according to an embodiment. The method is performed by an electronic device. Figure 2 As shown, the verification method for this circuit-shared design may include the following steps:
[0057] Step 210: Obtain the page information of the target circuit schematic.
[0058] Electronic devices can use tools to capture all page information of the target circuit schematic in design software.
[0059] Step 220: For each page, filter out the circuit identification information of the target circuit schematic from the page information.
[0060] Based on the page numbers in the page information, the tool extracts the circuit identification information page by page. The tool can be any self-designed tool running on the electronic device that has functions such as capturing, searching, format conversion, comparison, storage, and output, or an existing script that can perform the above functions.
[0061] The system automatically acquires the page information of the target circuit schematic and filters out the circuit identification information from the page information, thus accelerating the acquisition of circuit identification information. This facilitates the subsequent selection of reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic, avoiding manual screening of the coating design in the target circuit schematic and thus accelerating the verification efficiency of the coating design.
[0062] In one alternative implementation, before acquiring the page information of the target circuit schematic, the verification method for the circuit sharing design may further include receiving user input for adding reference circuit identification information to the target circuit schematic, adding the reference circuit identification information to the page information of the target circuit schematic; or, adding reference circuit identification information to the page information of the target circuit schematic according to preset printed circuit board design rules; the reference circuit identification information is used to indicate the circuit sharing design in the target circuit schematic.
[0063] Electronic devices can receive user input via design software to add reference circuit identification information to the portion of the target circuit schematic that is designed as a coating, and then add this information to the page information of the target circuit schematic. Alternatively, preset PCB design rules can specify the portions of the target circuit schematic that need to be designed as coatings. The electronic device can then use tools to add reference circuit identification information to the page information of the target circuit schematic to indicate the coating design, according to these preset rules. This achieves the goal of adding reference circuit identification information to the page information of the target circuit schematic by receiving user input, thus improving the accuracy of marking shared circuit designs; or, by automatically adding reference circuit identification information to the page information of the target circuit schematic according to preset PCB design rules, improving the efficiency of marking shared circuit designs.
[0064] In one application scenario, such as Figure 3 As shown, taking Cadence Concept HDL as an example, electronic device 310 can receive input from the user via Cadence Concept HDL 320 to add descriptions to the coil design portion of the target circuit schematic. These descriptions are reference circuit identification information, and the device adds them to the page information of the target circuit schematic. Descriptions can be added as attributes or notes. It should be noted that notes are considered objects in Cadence Concept HDL; attributes are sub-objects attached to objects, such as components or wires, which are added to other objects.
[0065] Taking the addition of notes as an example, the electronic device 310 uses tools to capture all page information in the target circuit schematic and retrieves all notes in the target circuit schematic page by page according to the page number.
[0066] Step 230: Based on the preset first circuit sharing requirements, select reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic diagram.
[0067] Please see details Figure 1 Step 110 of the illustrated embodiment will not be described again here.
[0068] In an optional implementation, step 210 above, which involves selecting reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic based on preset first circuit sharing requirements, may include steps 231 to 232:
[0069] Step 231: Identify the circuit identification information corresponding to each component in the target circuit schematic.
[0070] Electronic devices can use tools to capture the circuit identification information corresponding to each component in the target circuit schematic, and perform a fuzzy search on all the circuit identification information to identify whether any of the preset number of keywords are present. The preset number of keywords indicates information related to the coating design within the circuit identification information. This number can be set according to actual needs; preferably, it can be any keyword containing the word "colay," such as "COLAY" and "CO-LAY." Different keywords can be separated by spaces.
[0071] Step 232: When it is determined that the circuit identification information of the first element contains any keyword from a preset number of keywords, the circuit identification information corresponding to the first element is extracted from the target circuit schematic diagram and used as reference circuit identification information.
[0072] The first element is any element contained in the target circuit schematic; when the electronic device identifies any keyword from a preset number of keywords in the circuit identification information of the first element, it uses the circuit identification information corresponding to the first element captured by the tool as the reference circuit identification information.
[0073] By automatically identifying whether the circuit identifier corresponding to each component in the target circuit schematic contains any of the preset number of keywords, the reference circuit identifier information is determined. This avoids the need for manual inspection of the circuit identifier information in the target circuit schematic to determine the reference circuit identifier information, thus speeding up the identification efficiency of the reference circuit identifier information and thereby accelerating the verification efficiency of the coating design.
[0074] Step 240: Obtain reference component identification information based on reference circuit identification information.
[0075] Please see details Figure 1 Step 120 of the illustrated embodiment will not be described again here.
[0076] Furthermore, the reference component identification information is the pin information corresponding to the component. Obtaining the reference component identification information based on the reference circuit identification information may include searching for information containing preset pin keywords in the reference circuit identification information, and determining the information containing the preset pin keywords as the reference component identification information. The format and meaning of the preset pin keywords are not specifically limited in this embodiment and can be designed according to the requirements of the search algorithm for keyword format and meaning. For example, the preset pin keywords can be in the format "R / U / C / J / L" + number, meaning it includes any number and simultaneously includes any one of R, U, C, J, and L. R, U, C, J, and L are pin prefixes of the component and can be designed independently. R, U, C, J, and L represent pin prefixes for resistors, chips, capacitors, contacts, and inductors, respectively.
[0077] Step 250: Based on the preset second circuit sharing requirements, extract the target component identification information that meets the preset second circuit sharing requirements from the printed circuit board design.
[0078] Please see details Figure 1 Step 130 of the illustrated embodiment will not be described again here.
[0079] In an optional implementation, step 250, which involves extracting target component identification information that meets the preset second circuit sharing requirements from the printed circuit board design drawing, may include steps 251 to 252:
[0080] Step 251: Poll the pad set of each layer in the printed circuit board design.
[0081] Step 252: When it is determined that there is an overlapping area between at least two pads in the pad set of the first layer, the component connected by at least two pads is determined to be a target component that meets the second circuit sharing requirements, and the target component identification information of the target component is obtained, wherein the first layer is any layer in the printed circuit board design.
[0082] The electronic device obtains the pad set of each layer in the printed circuit board design drawing through the tool, and polls each pad in the pad set one by one to see if there is an overlapping area with other pads in the same layer; when it is determined that there is an overlapping area between at least two pads in the layer, it means that the component connected by the at least two pads is a colay design, and the component connected by the at least two pads is identified as the target component that meets the second circuit sharing requirements, and the target component identification information of the target component is captured from the PCB software through the tool.
[0083] By polling the pad set of each layer in the printed circuit board (PCB) design, pads with overlapping areas are identified within each layer. This allows for the acquisition of target component identification information for components connected to these overlapping pads. This ensures that the component corresponding to the target component identification information is always a component sharing a pad, meaning it guarantees that the component corresponds to a coating design. This avoids the possibility of overlooking components using coating designs or mistaking non-coating designs as target components, improving the accuracy of obtaining coating designs from the PCB design and consequently enhancing the accuracy of coating design verification.
[0084] Furthermore, the target component identification information is the pin information corresponding to the component.
[0085] Furthermore, polling the pad set of each layer in the printed circuit board (PCB) design can include obtaining the coordinates of the identifier boxes of each pad in each layer of the PCB design; determining the placement area of each pad in each layer based on the identifier box coordinates, to determine whether there is an overlapping area between at least two pads in the pad set of each layer. Electronic devices can obtain the identifier box coordinates of each pad in each layer of the PCB design from the PCB software using tools. Generally, the identifier box is a rectangle, and the identifier box coordinates are the diagonal coordinates of the identifier box, such as the coordinates of the top-left corner and bottom-right corner of the identifier box, or the coordinates of the bottom-left corner and top-right corner of the identifier box.
[0086] Furthermore, considering that in actual use, each component will be placed on at least one of the top and bottom layers of the PCB, in order to speed up the verification efficiency of the coating design, the above step 251, polling the pad set of each layer in the printed circuit board design, may include polling the pad sets of the top and bottom layers in the printed circuit board design respectively; it can be understood that the first layer at this time is either the top or bottom layer in the printed circuit board design.
[0087] In one application scenario, combined with Figure 3Taking Allegro as an example of PCB software, electronic device 310 obtains all notes from the target circuit schematic from Cadence Concept HDL 320 using a tool, and then converts the content of the notes into string format. A fuzzy search is then performed on the converted strings to identify content containing the keywords "COLAY" or "CO-LAY". Next, under the strings containing "COLAY" or "CO-LAY", the search continues for keywords containing "R / U / C / J / L" + numbers, thereby finding the pin information of components using a coil design in the target circuit schematic.
[0088] Upon launching Allegro 330, electronic device 310 uses a tool to obtain the coordinates of the identifier boxes for all pads in the top and bottom layers of the printed circuit board design drawing from Allegro 330. It then polls the identifier box coordinates of each pad in both the top and bottom layers. When electronic device 310 detects that the areas indicated by the identifier box coordinates of at least two pads overlap, it uses a tool to obtain the component pin information connected to those at least two pads.
[0089] Step 260: Compare the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules.
[0090] Please see details Figure 1 Step 140 of the illustrated embodiment will not be described again here.
[0091] In an optional implementation, when both the reference component identification information and the target component identification information include multiple reference components, the verification method for the circuit-shared design may further include step A1:
[0092] Step A1: Compare the first target component identification information with each of the multiple reference component identification information until it is determined that the first target component identification information matches any one of the multiple reference component identification information. Stop the comparison operation and determine that the design of the component corresponding to the first target component identification information conforms to the preset printed circuit board design rules. Here, the first target component identification information is any one of the multiple target component identification information.
[0093] Alternatively, the comparison operation stops when the identification information of the first target component does not match the identification information of multiple reference components, and it is determined that the design of the component corresponding to the first target component does not conform to the preset printed circuit board design rules. In this embodiment, the page information of the target circuit schematic is automatically obtained, and all circuit identification information of the target circuit schematic is filtered out from each page. Then, all reference circuit identification information that meets the first circuit sharing requirements is automatically filtered out from the circuit identification information based on a preset number of keywords. Then, the reference component identification information corresponding to the component that conforms to the preset printed circuit board design rules and adopts the circuit sharing design is automatically obtained from the reference circuit identification information. This avoids the need for manual viewing of the circuit identification information in the target circuit schematic to determine the reference circuit identification information, and manual filtering of the reference circuit identification information to determine the reference component identification information corresponding to the component that adopts the circuit sharing design in the target circuit schematic. This speeds up the acquisition of reference component identification information and further accelerates the verification efficiency of the subsequent colay design. By polling the pad set of each layer in the printed circuit board design, the pads with overlapping areas in the layer are determined, and then the target component identification information of the component connected to the pads with overlapping areas is obtained. This ensures that the component corresponding to the target component identification information is always a component with shared pads, which means that the component corresponding to the target component identification information is always a coating design. This avoids the possibility of omitting components that use coating designs or using non-colay designs as target components, thus improving the accuracy of obtaining coating designs from printed circuit board design drawings. Furthermore, it automatically compares accurate and comprehensive target component identification information with reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules, thereby improving the accuracy and efficiency of coating design verification.
[0094] Figure 4 This is a flowchart illustrating another method for verifying a circuit-sharing design, according to an embodiment. The method is performed by an electronic device. Figure 4 As shown, the verification method for this circuit-shared design may include the following steps:
[0095] Step 410: Obtain the circuit identification information of the target circuit schematic.
[0096] Please see details Figure 2 Steps 210 to 220 of the illustrated embodiment will not be described again here.
[0097] Step 420: Perform format conversion on the circuit identification information.
[0098] After obtaining the circuit identification information, the electronic device will use a tool to convert the circuit identification information from the original format to text (txt) format, so that it can quickly obtain all reference component information in the target circuit schematic based on the circuit identification information, avoiding omissions and speeding up the acquisition of reference component information.
[0099] Step 430: Based on the preset first circuit sharing requirements, select reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic diagram.
[0100] Please see details Figure 2 Step 230 of the illustrated embodiment will not be described again here.
[0101] Step 440: Obtain reference component identification information based on reference circuit identification information.
[0102] Please see details Figure 2 Step 240 of the illustrated embodiment will not be described again here.
[0103] Step 450: Based on the page information of the target circuit schematic and the reference circuit identification information, integrate the reference component identification information into the verification report in the target format.
[0104] Since the design software containing the target circuit schematic and the PCB software containing the printed circuit board design are two independent software programs, in order to collaboratively process the information obtained from the design software and the PCB software, it is necessary to perform format conversion processing on the information obtained from both software. Therefore, after obtaining the reference component identification information, the electronic device will integrate the reference component identification information into the verification report in the target format, so as to facilitate subsequent comparison between the target component reference information and the reference component identification information in the printed circuit diagram.
[0105] Specifically, when the electronic device retrieves the page information of the target circuit schematic from the design software using tools and filters out the circuit identification information, it obtains the page number corresponding to the circuit identification information in the page information. Then, when the electronic device retrieves the reference component identification information from the reference circuit identification information using tools, it obtains the page number corresponding to that reference component identification information in the page information. At this point, the electronic device uses tools to add the page number corresponding to the reference component identification information and the corresponding component to the target format verification report, and stores the verification report in the path where the target circuit schematic is located.
[0106] The specific format of the verification report can be set by the user; it can be in text (txt) format or other formats. This application embodiment does not impose specific limitations. The verification report includes at least the component corresponding to the reference component identification information, the page number corresponding to the reference component identification information in the page information, and a statement indicating whether the component corresponding to the reference component identification information is a circuit-shared design. This application embodiment takes the contents shown in Table 1 as an example, where SCH Page is used to indicate the page number corresponding to the reference component identification information in the page information, and X1 and X2 are specific page number numbers; Component 1 to Component N are used to indicate the component corresponding to the reference component identification information, and Y1…Y1n and Y2…Y2n all represent specific components in the target circuit schematic that use a colay design; Whether or not it is colay is used to indicate whether the component recorded in each row of Table 1 is a circuit-shared design in the printed circuit design.
[0107] X1 Y1 … Y1n X2 Y2 … Y2n
[0108] Table 1 Reports to be verified
[0109] In one application scenario, continue to combine Figure 3 After the electronic device 310 finds the pin information of components using the coating design from the string content containing the keywords "COLAY" or "CO-LAY", it organizes the search results into a verification report in a fixed format and stores the verification report in the path where the target circuit schematic is located. Finally, the verification report shown in Table 2 is obtained, which means that resistors 1 and 2 using the coating design in the target circuit schematic are recorded in the page information on page 5, and resistors 3 and 4 using the coating design are recorded in the page information on page 7.
[0110] 5 R1 R2 7 R3 R4
[0111] Table 2. Reports to be verified in one application scenario.
[0112] Step 460: Extract the target component identification information that meets the preset second circuit sharing requirements from the printed circuit board design drawing.
[0113] Please see details Figure 2 Step 250 of the illustrated embodiment will not be described again here.
[0114] Step 470: Based on the page information of the target circuit schematic, integrate the target component identification information into the printed circuit board report; the format of the printed circuit board report is the same as that of the report to be verified.
[0115] Electronic devices can locate the page number corresponding to the target component identification information in the page information of the target circuit schematic, and integrate the page number and the component corresponding to the target component identification information into the printed circuit board report. The printed circuit board report should at least include the component corresponding to the target component identification information and the page number corresponding to the target component identification information in the page information.
[0116] Step 480: Compare the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules.
[0117] Please see details Figure 2 Step 260 of the illustrated embodiment will not be described again here.
[0118] Furthermore, when the target component identification information and the reference component identification information are integrated into the printed circuit board report and the verification report respectively, step 480 above, comparing the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules, may include steps B1 to B:
[0119] Step B1: Query the first integrated target component identification information in the printed circuit board report in the report to be verified; the first integrated target component identification information is any one of the integrated target component identification information in the printed circuit board report.
[0120] Step B2: When the identification information of the first integrated target component is found in the report to be verified, the content used to indicate that the component is a circuit-shared design is updated to the report to be verified.
[0121] Alternatively, if the identification information of the first integrated target component is not found in the verification report, the identification information of the first integrated target component, as well as the content used to indicate that the component is a circuit-shared design, will be updated in the verification report.
[0122] Step B3: When all the integrated target component identification information in the printed circuit board report has been queried, the first content that has not been updated in the report to be verified is updated to indicate that the component is not a circuit shared design; the first content is used to indicate the component corresponding to the target component identification information.
[0123] Step B4: Compare the verification report before the update with the verification report after the update to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules.
[0124] In one application scenario, continue to combine Figure 3The unverified report obtained by electronic device 310 before the update is shown in Table 2, and the unverified report after the update is shown in Table 3. The redundant COLAY portion indicates the page number corresponding to the first integrated target component identification information not found in Table 2. Table 3 shows that the components using COLAY design in the target circuit schematic are resistors 1 and 2, and resistors 3 and 4; however, the components using COLAY design in the printed circuit board design are resistors 1 and 2, and resistors 5 and 6. Comparing Tables 2 and 3, it can be determined that resistors 5 and 6 in the printed circuit board design do not conform to the preset printed circuit board design rules.
[0125]
[0126] Table 3 Updated verification report in one application scenario
[0127] In this embodiment, reference component identification information is integrated into the verification report in the target format, and target component identification information is integrated into a printed circuit board report with the same format as the verification report. This integrates information obtained from the design software containing the target circuit schematic and the PCB software containing the printed circuit board design into different reports of the same format, facilitating subsequent comparison of the target component identification information and the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules. This achieves information collaboration between different software programs, accelerating the verification efficiency of the colay design.
[0128] This embodiment also provides a circuit-sharing design verification device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.
[0129] This embodiment provides a testing device for circuit-shared designs, such as... Figure 5 As shown, it includes:
[0130] The filtering module 510 is used to filter reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic diagram according to the preset first circuit sharing requirements.
[0131] The acquisition module 520 is used to acquire reference component identification information based on reference circuit identification information. The design of the component corresponding to the reference component identification information conforms to the preset printed circuit board design rules.
[0132] The extraction module 530 is used to extract target component identification information that meets the second circuit sharing requirements from the printed circuit board design drawing according to the preset second circuit sharing requirements, wherein the printed circuit board design drawing corresponds to the target circuit schematic.
[0133] The comparison module 540 is used to compare the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules.
[0134] In some alternative implementations, the filtering module includes:
[0135] The identification unit is used to identify the circuit identification information corresponding to each component in the target circuit schematic.
[0136] The extraction unit is used to extract the circuit identification information corresponding to the first element from the target circuit schematic when it is determined that the circuit identification information of the first element contains any keyword from a preset number of keywords, and use it as reference circuit identification information, wherein the first element is any element contained in the target circuit schematic.
[0137] In some alternative implementations, the extraction module includes:
[0138] The polling unit is used to poll the pad set of each layer in the printed circuit board design.
[0139] The determining unit is used to determine, when it is determined that there is an overlapping area between at least two pads in the pad set of the first layer, that the component connected by at least two pads is a target component that meets the second circuit sharing requirements, and to obtain the target component identification information of the target component, wherein the first layer is any layer in the printed circuit board design.
[0140] In some optional implementations, when both the reference component identification information and the target component identification information include multiple reference components, the verification device for the circuit-shared design further includes:
[0141] The comparison module is used to compare the first target component identification information with each of the multiple reference component identification information until it is determined that the first target component identification information matches any one of the multiple reference component identification information. The comparison operation stops when the first target component identification information is determined to match any one of the multiple reference component identification information. The module also determines that the design of the component corresponding to the first target component identification information conforms to the preset printed circuit board design rules. The first target component identification information is any one of the multiple target component identification information.
[0142] Alternatively, the comparison operation may be stopped when the identification information of the first target component does not match the identification information of multiple reference components, and it may be determined that the design of the component corresponding to the first target component does not conform to the preset printed circuit board design rules.
[0143] In some alternative implementations, the verification device for the circuit-shared design further includes:
[0144] The processing module is used to perform formatted conversion of circuit identification information.
[0145] In some optional implementations, before filtering reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic according to the preset first circuit sharing requirements, the acquisition module is also used to acquire the page information of the target circuit schematic.
[0146] The filtering module is also used to filter out the circuit identification information of the target circuit schematic from the page information for each page.
[0147] The circuit-shared design verification device in this embodiment is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other elements that can provide the above functions.
[0148] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0149] This application also provides a computer device having the above-described features. Figure 5 The circuit-shared design testing device is shown.
[0150] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of this application, such as... Figure 6 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 6 Take a processor 10 as an example.
[0151] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic element, or a combination thereof. The programmable logic element may be a complex programmable logic element, a field-programmable gate array (FPGA), a general-purpose array logic (GBA), or any combination thereof.
[0152] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0153] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device as shown by a landing page for an app. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage element, flash memory element, or other non-transitory solid-state storage element. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0154] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0155] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0156] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the methods shown in the above embodiments are implemented.
[0157] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.
Claims
1. A method of verifying a circuit sharing design, the method comprising: The method includes: According to the preset first circuit sharing requirements, reference circuit identification information that meets the first circuit sharing requirements is selected from the target circuit schematic diagram; Based on the reference circuit identification information, the reference component identification information is obtained, and the circuit sharing design of the component corresponding to the reference component identification information conforms to the preset printed circuit board design rules. According to the preset second circuit sharing requirements, target component identification information that meets the preset second circuit sharing requirements is extracted from the printed circuit board design drawing, wherein the printed circuit board design drawing corresponds to the target circuit schematic. The target component identification information is compared with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules. The first circuit sharing requirement includes a preset number of keywords; the step of filtering reference circuit identification information that meets the first circuit sharing requirement from the target circuit schematic according to the preset first circuit sharing requirement specifically includes: Identify the circuit identification information corresponding to each component in the target circuit schematic; When it is determined that the circuit identification information of the first element contains any keyword from a preset number of keywords, the circuit identification information corresponding to the first element is extracted from the target circuit schematic and used as the reference circuit identification information. Here, the first element is any element contained in the target circuit schematic, the preset number of keywords are used to indicate information about the colay design in the circuit identification information, and the reference element identification information is the pin information corresponding to the element. The step of extracting target component identification information that meets the second circuit sharing requirements from the printed circuit board design drawing according to the preset second circuit sharing requirements includes: Poll the pad set of each layer in the printed circuit board design; When it is determined that there is an overlapping area between at least two pads in the pad set of the first layer, the component connected by at least two pads is determined to be a target component that meets the second circuit sharing requirement, and the target component identification information of the target component is obtained, wherein the first layer is any layer in the printed circuit board design.
2. The method of claim 1, wherein, Both the reference component identification information and the target component identification information are pin information corresponding to the component.
3. The method according to claim 1 or 2, characterized in that, When both the reference element identification information and the target element identification information include multiple components, the method further includes: The first target component identification information is compared with each of the plurality of reference component identification information until it is determined that the first target component identification information matches any one of the plurality of reference component identification information. The comparison operation is then stopped, and it is determined that the design of the component corresponding to the first target component identification information conforms to the preset printed circuit board design rules. The first target component identification information is any one of the plurality of target component identification information. Alternatively, the comparison operation may be stopped when the first target component identification information does not match any of the reference component identification information, and it may be determined that the design of the component corresponding to the first target component identification information does not conform to the preset printed circuit board design rules.
4. The method according to claim 1 or 2, characterized in that, Before obtaining the reference component identification information based on the reference circuit identification information, the method further includes: The circuit identification information is formatted and converted.
5. The method according to claim 1 or 2, characterized in that, Before selecting reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic according to the preset first circuit sharing requirements, the method further includes: Obtain the page information of the target circuit schematic diagram; For each page, the circuit identification information of the target circuit schematic is filtered out from the page information.
6. A testing device for circuit-shared designs, characterized in that, The device includes: The filtering module is used to filter reference circuit identification information that meets the first circuit sharing requirements from the target circuit schematic diagram according to the preset first circuit sharing requirements; The acquisition module is used to acquire reference component identification information based on the reference circuit identification information, wherein the design of the component corresponding to the reference component identification information conforms to the preset printed circuit board design rules. An extraction module is used to extract target component identification information that meets the second circuit sharing requirements from a printed circuit board design drawing according to a preset second circuit sharing requirement, wherein the printed circuit board design drawing corresponds to the target circuit schematic. The comparison module is used to compare the target component identification information with the reference component identification information to determine whether the design of the component corresponding to the target component identification information conforms to the preset printed circuit board design rules. The first circuit sharing requirement includes a preset number of keywords; the filtering module, based on the preset first circuit sharing requirement, includes: The identification unit is used to identify the circuit identification information corresponding to each component in the target circuit schematic diagram; An extraction unit is configured to extract circuit identification information corresponding to the first element from the target circuit schematic when it is determined that the circuit identification information of the first element contains any keyword from a preset number of keywords, and use it as the reference circuit identification information. The first element is any element contained in the target circuit schematic, the preset number of keywords are used to indicate information related to the colay design in the circuit identification information, and the reference element identification information is the pin information corresponding to the element. The extraction module includes: A polling unit is used to poll the pad set of each layer in the printed circuit board design. The determining unit is configured to, when it is determined that there is an overlapping area between at least two pads in the pad set of the first layer, determine that the component connected by at least two pads is a target component that meets the second circuit sharing requirement, and obtain the target component identification information of the target component, wherein the first layer is any layer in the printed circuit board design.
7. A computer device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the verification method for the circuit-shared design according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to execute the verification method for the circuit-shared design according to any one of claims 1 to 5.
Citation Information
Patent Citations
Co-lay part inspection method, device, equipment and medium
CN116108781A
Compatible PCB board
CN205071446U