PCB comparison method and device, electronic equipment and medium

By recording device library update information and importing power plane attributes, the PCB comparison is efficient and accurate, solving the problems of low comparison efficiency and missing defects in the existing technology, and improving the comparison efficiency and accuracy of PCB design. .

CN118821701APending Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410804793.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing PCB comparison methods are inefficient and easy to miss defects. Especially when there are a large number of devices and the properties of the inner layer of the power supply are updated, it is difficult to effectively check the graphics comparison.

Method used

By recording the updated information of the device library, the devices to be inspected in the old version of the PCB file are filtered, and compared with the device information list in the new version of the PCB file, a device comparison report is generated; at the same time, the power plane in the old version of the PCB file is imported. properties to the new version file to perform short circuit check and generate a power comparison report.

Benefits of technology

It significantly improves the efficiency and accuracy of PCB comparison, reduces manual workload, can effectively discover the differences between devices and power planes, and avoids the limitations of graphics comparison.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118821701A_ABST
    Figure CN118821701A_ABST
Patent Text Reader

Abstract

The invention provides a PCB comparison method and device, electronic equipment and a medium, and relates to the field of PCB design. The method comprises the following steps: recording update information of each device in a device library to obtain a device update table; screening all devices in the old PCB file by using the device updating table to obtain a to-be-checked device; exporting a device information list from the new-version PCB file based on the to-be-checked device, and screening the device information list by using the device updating list to obtain a screened device information list; searching updating information corresponding to each device in the screened device information list from a device updating list, adding the updating information into the device information list, and generating a device comparison report; importing power supply attributes corresponding to each power supply plane in the old-version PCB file into a new-version PCB file; and performing short-circuit check on the new-version PCB file based on the imported power supply attribute, and generating a power supply comparison report. According to the scheme, the comparison efficiency and accuracy can be remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of PCB design, and in particular to a PCB comparison method, device, electronic equipment and medium. Background Art

[0002] Printed Circuit Board (PCB) is an important electronic component and a provider of electrical connections for electronic components. The design of a printed circuit board mainly refers to the layout design, which needs to consider various factors such as the layout of external connections, the optimized layout of internal electronic components, the optimized layout of metal wires and through holes, electromagnetic protection, and heat dissipation. Usually, the design needs to be modified repeatedly during the PCB design process. Even after the PCB design is completed, if the product has new requirements for performance, the PCB design also needs to be adjusted, resulting in multiple versions of PCBs. By comparing different versions of PCBs, the design differences between different versions can be found.

[0003] At present, the existing PCB comparison is mainly to convert PCB files into graphics for comparison through third-party software. However, especially for relatively large main control boards, the number of components and routings are in the tens of thousands. If the time difference between the two versions of the PCB is too long, the package of the PCB component library will be updated and upgraded, and the properties of the copper foil on the inner layer of the power supply will also be wrong due to mistakes. These cannot be checked through graphic comparison. Summary of the invention

[0004] The present invention provides a PCB comparison method, device, electronic device and medium, which are used to solve the problem that the prior art uses graphics to compare PCBs, resulting in low comparison efficiency and omission defects. Device inspection is implemented on devices with the help of records updated by device libraries, and the power plane of an old version of a PCB file is copied to a new version of a PCB file to implement power plane inspection.

[0005] According to a first aspect of the present invention, the present invention provides a PCB comparison method, the method comprising: Record the update information of each device in the device library to obtain a device update table; Using the device update table, all devices in the old version PCB file are screened to obtain devices to be checked; Based on the device to be checked, a device information list is exported from the new version of the PCB file, and the device information list is filtered using the device update table to obtain a filtered device information list; Searching for update information corresponding to each device in the screened device information list from the device update table and adding the update information to the device information list, and generating a device comparison report; Import the power properties corresponding to each power plane in the old version of the PCB file into the new version of the PCB file; Perform short circuit check on the new version of PCB file based on the imported power supply properties and generate a power supply comparison report.

[0006] According to the PCB comparison method of the present invention, the update information of each device in the device library is recorded to obtain a device update table, including: Create a device update table; When a new device exists in the device library or the package of an existing device is updated, a record for the package name, package version number and modified content is added to the device update table.

[0007] According to the PCB comparison method of the present invention, the device update table is used to screen all devices in the old version PCB file to obtain the device to be checked, including: Export the package names of all devices from the old version PCB file to get the old version package list; Iterate through each device in the Legacy Packages list and do the following: Determine whether there is a package name identical to the device in the device update table; If it exists, the package name corresponding to the device is retained in the old version package list; If it does not exist, the package name corresponding to the device is deleted from the old version package list; After traversing all devices, the devices remaining in the old version package list will be treated as devices to be checked.

[0008] According to the PCB comparison method of the present invention, the device information list is derived from the new version PCB file based on the device to be checked, and the device information list is screened using the device update table to obtain the screened device information list, including: Traverse each device retained in the old version package list, export the information of the corresponding device in the new version PCB file, and obtain the export information corresponding to each device to be checked; For each piece of exported information, the package name, package version number, device bit number and center coordinates are obtained by data separation to obtain device information corresponding to each device to be inspected; Summarize all device information to obtain a device information list; Iterate over each package name in the device information list and perform the following operations: Determine whether the package version number corresponding to the package name in the device information list and the package version number corresponding to the package name in the device update table are the same; If they are the same, deleting the device information corresponding to the package name in the device information list; If they are not the same, the device information corresponding to the package name in the device information list is retained; The device information list obtained after traversing all package names is used as the filtered device information list.

[0009] According to the PCB comparison method of the present invention, the updating information corresponding to each device in the screened device information list is searched from the device update table and added to the device information list to generate a device comparison report, including: adding a corresponding change information for each package name in the screened device information list

[0010] The following operations are performed by traversing each package name in the filtered device information list: Find the changes corresponding to the same package name in the device update table; Add the found changes to the change information corresponding to the package name; The device information list after screening in which all the changed information has been filled is output as a device comparison report.

[0011] According to the PCB comparison method of the present invention, the power supply attributes corresponding to each power plane in the old version PCB file are imported into the new version PCB file, including: Find closed contours from the old version PCB file and get the power plane corresponding to each closed contour; Obtain the routing level and power information of each power plane, and put the power information of the power planes belonging to the same routing level into the same power list, wherein the power information includes the power plane number and the power attribute name; Find the center point of each power plane to obtain the center coordinates corresponding to each power plane; Create auxiliary power layers corresponding to the original power layers corresponding to each power list in the new version of the PCB file; Traverse each power list, and import the power information of the corresponding power plane into the corresponding auxiliary power layer according to the corresponding center coordinates of each power plane.

[0012] According to the PCB comparison method of the present invention, the short circuit check of the new version PCB file is performed based on the imported power supply attributes to generate a power supply comparison report, including: Copy the power information of each power plane in each original power layer to the corresponding auxiliary power layer; If there is a short circuit alarm in the new version of the PCB file, the two versions of power supply information with the same coordinates and different power supply attribute names in the auxiliary layer are retained; Based on the power information retained in the auxiliary power layer, a short circuit record including the power layer, center coordinates and power surface attribute name is generated in units of power planes, and all short circuit records are summarized to obtain the power comparison report.

[0013] According to a second aspect of the present invention, the present invention further provides a PCB comparison device, the device comprising: A recording module is used to record the update information of each device in the device library to obtain a device update table; A first screening module is used to screen all devices in the old version PCB file using the device update table to obtain devices to be checked; A second screening module is used to export a device information list from a new version of the PCB file based on the device to be checked, and screen the device information list using the device update table to obtain a screened device information list; A first generating module, configured to search the device update table for update information corresponding to each device in the screened device information list and add the update information to the device information list, thereby generating a device comparison report; The power import module is used to import the power properties corresponding to each power plane in the old version of the PCB file into the new version of the PCB file; The second generation module is used to perform short circuit check on the new version of the PCB file based on the imported power supply properties and generate a power supply comparison report.

[0014] According to the third aspect of the present invention, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a PCB comparison method as described above is implemented.

[0015] According to a fourth aspect of the present invention, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the PCB comparison method as described in any one of the above is implemented.

[0016] The present invention provides a PCB comparison method, which uses an update list to maintain update information of a device library, then uses a device update table to find a device to be checked from an old version of a PCB file, then uses the device to be checked to export a device information list from a new version of a PCB file, and then uses the device update table to perform another screening, then finds the corresponding update information from the device update table and adds it to the screened device information list to generate a device comparison report, in addition, the power plane in the old version of the PCB file is imported into the new version of the PCB file, and then performs a short circuit check on the new version of the PCB file to generate a power comparison report, without relying on graphic comparison, reducing manual workload, and significantly improving the comparison efficiency and accuracy of two versions of PCBs.

[0017] In addition, a PCB comparison device, an electronic device and a non-transitory computer-readable storage medium provided by the present invention can also achieve the above-mentioned technical effects, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.

[0019] Figure 1 It is a schematic diagram of the new and old versions of triode packaging provided by the present invention.

[0020] Figure 2 It is a schematic diagram of the flow of the PCB comparison method provided by the present invention.

[0021] Figure 3 It is a schematic diagram of a newly created device in the device inventory provided by the present invention.

[0022] Figure 4 It is a schematic diagram of the device comparison process of the new and old versions of PCB provided by the present invention.

[0023] Figure 5 It is a schematic diagram of two corresponding power planes on the new and old PCBs provided by the present invention.

[0024] Figure 6 It is a schematic diagram of the power plane comparison process of the new and old versions of PCB provided by the present invention.

[0025] Figure 7 It is a structural schematic diagram of the PCB comparison device provided by the present invention.

[0026] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0028] In related technologies, PCB comparison based on graphic comparison is more suitable for situations where the device appearance changes significantly. Figure 1 The diagrams of the old and new versions of transistor packages are shown. Please refer to Figure 1As shown, the inner rectangular box shows the outer contour of the old version of the transistor package, and the middle rectangular box shows the outer contour of the new version of the package. The new package also adds an outermost rectangular box to indicate the area where test points are prohibited. This area can ensure that the device does not interfere with the electronic devices or traces next to it, and is also to solve the problem of modifying the trial production of the previous version. When implementing PCB inspection through graphic comparison, layout engineers need to check and modify the layout and wiring around such changed devices one by one. Simple visual inspection is time-consuming and labor-intensive and easy to miss. In addition, it is difficult to cover PCBs based on graphic comparison for situations where the appearance changes are minimal or the appearance has not changed but some parameters have changed.

[0029] Combine the following Figures 2 to 8 The present invention describes a PCB comparison method, a PCB comparison device, an electronic device and a non-transitory computer-readable storage medium.

[0030] Figure 2 This is a flow chart of the PCB comparison method provided by the present invention. Please refer to Figure 1 As shown, this embodiment provides a PCB comparison method, which can be implemented by steps S201 to S206. Each step will be described in detail below: Step S201, recording the update information of each device in the device library to obtain a device update table.

[0031] In this embodiment, the device library is a library containing various devices when the PCB is designed. The devices in the device library include various types of transistors, diodes, resistors, capacitors, chips, etc. The update information refers to various types of information related to the device package, such as version size, model, etc. Since the package name is unique, when recording the update information, a row or a column can be used to record the update information corresponding to the package name to form a device update list.

[0032] Step S202, using the device update table to screen all devices in the old version PCB file to obtain devices to be checked.

[0033] In this embodiment, the device to be checked is obtained by comparing the device update table with the old version of the PCB file. The device to be checked belongs to both the device update table and the old version of the PCB file. In the specific implementation process, the comparison is performed by traversing each device in the device update table or the old version of the PCB file.

[0034] It should be noted that the old version PCB file and the new version PCB file in the present invention are different design files of the same electronic product, and the electronic product includes but is not limited to storage, computing, and network equipment. The old version PCB file and the new version PCB file are relative. The old version PCB file is generated earlier than the new version PCB file. For example, there are five versions of the PCB of a certain electronic product in sequence. The previous versions can be regarded as the old version PCB file, and the later versions can be regarded as the new version PCB file.

[0035] Step S203: derive a device information list from the new version PCB file based on the device to be checked, and filter the device information list using the device update table to obtain a filtered device information list.

[0036] In this embodiment, device update is used to filter the device information list exported from the new version of the PCB file. This can be achieved by referring to the above-mentioned method of using the device update table to filter the devices in the old version of the PCB file. After filtering, only the device information belonging to the device to be checked but with a version different from that in the device update table is saved in the device information list.

[0037] Step S204 , searching the device update table for update information corresponding to each device in the screened device information list and adding the update information to the device information list, and generating a device comparison report.

[0038] Step S205, importing the power properties corresponding to each power plane in the old version of the PCB file into the new version of the PCB file.

[0039] In this embodiment, the power plane refers to a plane composed of copper foil representing the ground or various power areas. A PCB file includes multiple circuit layers, and each circuit layer may include several power planes of different shapes.

[0040] Step S206, performing a short circuit check on the new version of the PCB file based on the imported power supply properties, and generating a power supply comparison report.

[0041] The PCB comparison method of this embodiment uses an update list to maintain the update information of the device library, and then uses the device update table to find the device to be checked from the old version of the PCB file, and then uses the device update table to screen again after exporting the device information list from the new version of the PCB file using the device to be checked, and then finds the corresponding update information from the device update table and adds it to the screened device information list to generate a device comparison report. In addition, the power plane in the old version of the PCB file is imported into the new version of the PCB file, and then the new version of the PCB file is short-circuited to generate a power comparison report. There is no need to rely on graphic comparison, which reduces manual workload and can significantly improve the comparison efficiency and accuracy of the two versions of PCB.

[0042] In some possible implementations, the aforementioned step S201, recording the update information of each device in the device library to obtain a device update table, specifically includes: Create a device update table; When a new device exists in the device library or the package of an existing device is updated, a record for the package name, package version number and modified content is added to the device update table.

[0043] In the specific implementation process, the update information of each device in the device library can be recorded by timed triggering or real-time triggering. For example, a corresponding mark is left every time a device is created or modified. When the preset time interval is reached, batch updates are achieved by searching for the mark. Different marks can be used for device creation and device update, and different trigger time intervals can be set for different marks. Different from real-time trigger recording, timed triggering can not only achieve batch recording, reduce the number of query library updates, and improve recording efficiency, but also the trigger time interval can be set according to the update frequency of the device library, which has good flexibility.

[0044] For example, please refer to Figure 3 As shown, let's assume that it is a newly added capacitor in the device library. In the specific implementation process, when the device is created, a version identification needs to be added to it. This identification can be established separately at the packageGeometry / Note level. At the same time, a device update table as shown in Table 1 is maintained in real time in the root directory of the device library, in which the device package name, the latest version number, and the change points are stored.

[0045] Table 1 Device Update Table Package Name Version Number Changes JECl REVA Updated dimensions, added No Probe area C0402B REVC Changing the pad size …… …… ……

[0046] It should be noted that, although each device update record in Table 1 is recorded in the form of a row, and the version number and change information are recorded in the form of a column, in the specific implementation process, each update record can also be recorded in a column format, and the corresponding version number and change information are recorded in the form of a row; in addition, the record order of the package name, version number and change point belonging to the same row or column can also be in any order, for example, the version number can be in the first column and the package name in the second column. The present invention does not limit the specific form of the table.

[0047] The PCB comparison method of this embodiment sets an implementation method for adding update records for two specific forms of device library updates, so that the obtained device update list can accurately record the update status of the device library.

[0048] In some possible implementations, the aforementioned step S202, using the device update table to screen all devices in the old version PCB file to obtain the devices to be checked, specifically includes: Export the package names of all devices from the old version PCB file to get the old version package list; Iterate through each device in the Legacy Packages list and do the following: Determine whether there is a package name identical to the device in the device update table; If it exists, the package name corresponding to the device is retained in the old version package list; If it does not exist, the package name corresponding to the device is deleted from the old version package list; After traversing all devices, the devices remaining in the old version package list will be treated as devices to be checked.

[0049] In the specific implementation process, please refer to Figure 4 As shown, the process of finding the components that need to be checked from the old version of the PCB file is as follows: First, exporting all devices from the old version of the PCB file can be achieved by using the following commands in sequence: Tools-quick report-symbol library path, including symbol library path report, which can generate the package library path report as shown in Table 2. In order to further obtain the old version of the package list, you can grab the first column of information in the package library path report to obtain the old version of the package list and put it in ListB.

[0050] Table 2 Package library path report exported from old version PCB file

[0051] Next, search the device update table according to the package name in ListB. If there is a duplicate package name, keep it. If it cannot be found, delete the corresponding package name from ListB until the traversal and search are completed. The deletion of ListB is recorded as ListC. The package name retained in ListC is the one that needs to be updated.

[0052] The PCB comparison method of this embodiment traverses each device in the old version package list, compares it with the device update table, and determines whether it is a device that needs to be updated based on the comparison result, thereby achieving a preliminary search for devices that need to be updated. It can first filter out a part of the devices that have not changed compared to the device library, avoid invalid comparisons, and further improve comparison efficiency.

[0053] In some possible implementations, the aforementioned step S203, based on the device to be inspected, exports a device information list from the new version of the PCB file, and uses the device update table to filter the device information list to obtain a filtered device information list, specifically includes: Traverse each device retained in the old version package list, export the information of the corresponding device in the new version PCB file, and obtain the export information corresponding to each device to be checked; For each piece of exported information, the package name, package version number, device bit number and center coordinates are obtained by data separation to obtain device information corresponding to each device to be inspected; Summarize all device information to obtain a device information list; Iterate over each package name in the device information list and perform the following operations: Determine whether the package version number corresponding to the package name in the device information list and the package version number corresponding to the package name in the device update table are the same; If they are the same, deleting the device information corresponding to the package name in the device information list; If they are not the same, the device information corresponding to the package name in the device information list is retained; The device information list obtained after traversing all package names is used as the filtered device information list.

[0054] During the specific implementation process, please continue to refer to Figure 4 As shown, the process of finding the components that need to be checked from the new version of the PCB file is as follows: First, open the new version of PCB and export the package information of all devices in List C. For details, you can click the consultation command, select symbol in Find, select list in option, and select the storage path of List C in path, and you can get the text information of all packages in List C.

[0055] Next, copy this text information into the table, and use data separation to obtain the package name, version number, device bit number and corresponding coordinates of all devices and store them in Table 3 below to obtain the device information list. It should be noted that the acquisition of the version number here depends on marking it on a separate level when forming the device update table, which can be distinguished from other information and obtained separately according to the level.

[0056] Table 3 List of device information exported from the new version of the PCB file Package Name Version Number Device number Center coordinates SCON-168-0 REVA J2 X1, Y1 SCON-168-0 REVA J3 X2, Y2 SMCO402A REVC C1 X3, Y3

[0057] Next, based on the package name information in Table 3, use the Vlookup command to find the text information in the version number column in Table 1, and compare it with the text information in the version number column in Table 3: If the text values ​​are the same, it means that the version number of the package name corresponding to Table 3 is already the latest in the library and does not need to be updated or modified, then you need to delete the entire row of information where the version number is located in Table 3; if the text values ​​are the same or different, it means that the version number of this package name needs to be updated, then keep this row of information.

[0058] The PCB comparison method of this embodiment first exports the device information of the device to be checked from the new version PCB file, and then uses the exported information to compare with the device version number recorded in the device update table, thereby filtering the exported information of the new version PCB file and removing some devices that are the same as the updated version, so as to accurately find the device information list that needs to be modified, further reduce invalid inspections and comparisons, and improve comparison efficiency.

[0059] In some possible implementations, the aforementioned step S204, searching the device update table for update information corresponding to each device in the screened device information list and adding the update information to the device information list, and generating a device comparison report, specifically includes: Add a corresponding change information for each package name in the filtered device information list

[0060] The following operations are performed by traversing each package name in the filtered device information list: Find the changes corresponding to the same package name in the device update table; Add the found changes to the change information corresponding to the package name; The device information list after screening in which all the changed information has been filled is output as a device comparison report.

[0061] For example, after the update of Table 3 is completed, the device position number and coordinates that need to be updated in the latest brd (i.e., Board file, which is a file format created by circuit design software and is used to describe the component layout and connection information of the circuit board) are obtained, and then the corresponding package update information is retrieved from Table 1 using the package name in Table 3, i.e., the third column of Table 1, and the corresponding change points of each package can be obtained. Finally, the device comparison report shown in Table 4 below is exported, and the Layout engineer can make modifications one by one based on this.

[0062] Table 4 Device comparison report

[0063] The PCB comparison method of this embodiment generates a device comparison report by correspondingly integrating the device list to be checked with the modification information in the device update table in the screened new version PCB file. The report includes not only the accurate device information of the device that needs to be modified, but also the modification information of the device, which can provide reliable and rich data support for the modification of the new version PCB after the comparison of the two versions of PCB.

[0064] In some possible implementations, the aforementioned step S205, importing the power attributes corresponding to each power plane in the old version of the PCB file into the new version of the PCB file, specifically includes: Find closed contours from the old version PCB file and get the power plane corresponding to each closed contour; Obtain the routing level and power information of each power plane, and put the power information of the power planes belonging to the same routing level into the same power list, wherein the power information includes the power plane number and the power attribute name; Find the center point of each power plane to obtain the center coordinates corresponding to each power plane; Create auxiliary power layers corresponding to the original power layers corresponding to each power list in the new version of the PCB file; Traverse each power list, and import the power information of the corresponding power plane into the corresponding auxiliary power layer according to the corresponding center coordinates of each power plane.

[0065] In some possible implementations, the aforementioned step S206, performing a short circuit check on the new version of the PCB file based on the imported power supply properties and generating a power supply comparison report, specifically includes: Copy the power information of each power plane in each original power layer to the corresponding auxiliary power layer; If there is a short circuit alarm in the new version of the PCB file, the two versions of power supply information with the same coordinates and different power supply attribute names in the auxiliary layer are retained; Based on the power information retained in the auxiliary power layer, a short circuit record including the power layer, center coordinates and power surface attribute name is generated in units of power planes, and all short circuit records are summarized to obtain the power comparison report.

[0066] For easier understanding, please refer to Figure 5 As shown in the figure, suppose that during the PCB version upgrade process, the Layout engineer changes the 12V power plane of the old version to the GND attribute in the corresponding power plane of the new version. Since the appearance of the two is the same, it is not easy to be discovered when checking and modifying. This will cause insufficient current flow of this power supply and the product performance cannot meet the standard. The solution of the present invention can timely and accurately discover such problems by comparing the two versions of the power plane. It is better to record the old version of the PCB as PCB_A and the new version of the PCB as PCB_B. For details, please refer to Figure 6 As shown, the power plane comparison process of the new and old versions of PCB is as follows: First, identify the search target: open all the routing layers in PCB_A and display the routing layers in the form of outlines (such as Figure 5 The contour shown on the right), obtain the coordinates of all contour graphics and store them in listA, use the text comparison method to traverse ListA in sequence, if there are repeated identical coordinates in a certain coordinate group, then the contour graphic is determined to be a closed contour line, that is, the target plane.

[0067] Next, export all target plane related PCB information (layers, outline coordinates, copper properties) and save them as a .clp file.

[0068] Next, obtain the routing levels and attribute names of all target planes in the .clp file, number all the planes, and store them in different lists according to the level names. For example, the information of the 7th layer is stored in List7 = (S1_12V, S2_3V...), and the information of the 8th layer is stored in List8 = (S1_5V, S2_GND,...), where S1_12V is the plane number and 12V is the corresponding attribute name.

[0069] Next, considering that the outlines of most planes are irregular, it is impossible to directly obtain their center coordinates. Therefore, it is necessary to import all target planes in PCB_A into AutoCAD and use third-party software to obtain the center coordinates of each irregular plane. In this way, each target plane has a unique number, layer and center coordinates and corresponding net attributes; the center coordinates are obtained to mark the attributes of each plane in the outline area in the form of text labels.

[0070] Next, import the properties of the target plane in PCB_A into the PCB_B file being designed for comparison: open the PCB_B being designed, create new layers, such as Power_Check_L7 and Power_Check_L8, and import the PCB information related to the target plane obtained in the previous steps according to the layers. At the same time, start adding character naming, and import the obtained plane properties according to the coordinates determined by the third-party software. In this way, the properties of the two versions of the PCB power plane will be displayed on each power plane.

[0071] Finally, copy the copper foil of the target layers in L7 and L8 of PCB_B to Power_Check_L7 and Power_Check_L8 respectively. If there is no short circuit warning in the system, it proves that there is no difference in the power layers of the two PCB files, and outputs an OK report; C. If the system reports a short circuit warning, compare the text information on each target layer on Power_Check_L7 and the actual power plane attributes of PCB_B according to the number in turn. If the text information is different, record the corresponding attribute name, layer and coordinates. After the traversal is completed, the system will automatically output a power comparison report.

[0072] The PCB comparison method of this embodiment can timely discover the differences between the two versions of the power plane by copying the power plane of the old version of the PCB to the new version of the PCB for short circuit inspection, and output the differences in the form of a report, which greatly facilitates the subsequent inspection of the power design and helps to improve the reliability of PCB design products.

[0073] The PCB comparison device provided by the present invention is described below. The PCB comparison device described below and the PCB comparison method described above can be referred to each other.

[0074] Please refer to Figure 7 As shown, this embodiment provides a PCB comparison device, specifically, the device includes: a recording module 710, a first screening module 720, a second screening module 730, a first generating module 740, a power supply introduction module 750 and a second generating module 760, and the above modules are described in detail below: The recording module 710 is used to record the update information of each device in the device library to obtain a device update table; A first screening module 720 is used to screen all devices in the old version PCB file using the device update table to obtain devices to be checked; A second screening module 730 is used to derive a device information list from the new version PCB file based on the device to be checked, and screen the device information list using the device update table to obtain a screened device information list; A first generating module 740 is used to search the device update table for update information corresponding to each device in the screened device information list and add the update information to the device information list to generate a device comparison report; The power import module 750 is used to import the power properties corresponding to each power plane in the old version PCB file into the new version PCB file; The second generating module 760 is used to perform a short circuit check on the new version of the PCB file based on the imported power supply properties and generate a power supply comparison report.

[0075] The PCB comparison device of this embodiment uses an update list to maintain the update information of the device library, and then uses the device update table to find the device to be checked from the old version of the PCB file, and then uses the device update table to screen again after exporting the device information list from the new version of the PCB file using the device to be checked, and then finds the corresponding update information from the device update table and adds it to the screened device information list to generate a device comparison report. In addition, the power plane in the old version of the PCB file is imported into the new version of the PCB file, and then the new version of the PCB file is short-circuited to generate a power comparison report. There is no need to rely on graphic comparison, which reduces manual workload and can significantly improve the comparison efficiency and accuracy of the two versions of PCB.

[0076] In some possible implementations, the recording module 710 is further configured to: Create a device update table; When a new device exists in the device library or the package of an existing device is updated, a record for the package name, package version number and modified content is added to the device update table.

[0077] In some possible implementations, the first screening module 720 is further configured to: Export the package names of all devices from the old version PCB file to get the old version package list; Iterate through each device in the Legacy Packages list and do the following: Determine whether there is a package name identical to the device in the device update table; If it exists, the package name corresponding to the device is retained in the old version package list; If it does not exist, the package name corresponding to the device is deleted from the old version package list; After traversing all devices, the devices remaining in the old version package list will be treated as devices to be checked.

[0078] In some possible implementations, the second screening module 730 is further configured to: Traverse each device retained in the old version package list, export the information of the corresponding device in the new version PCB file, and obtain the export information corresponding to each device to be checked; For each piece of exported information, the package name, package version number, device bit number and center coordinates are obtained by data separation to obtain device information corresponding to each device to be inspected; Summarize all device information to obtain a device information list; Iterate over each package name in the device information list and perform the following operations: Determine whether the package version number corresponding to the package name in the device information list and the package version number corresponding to the package name in the device update table are the same; If they are the same, deleting the device information corresponding to the package name in the device information list; If they are not the same, the device information corresponding to the package name in the device information list is retained; The device information list obtained after traversing all package names is used as the filtered device information list.

[0079] In some possible implementations, the first generating module 740 is further configured to: Add a corresponding change information for each package name in the filtered device information list

[0080] The following operations are performed by traversing each package name in the filtered device information list: Find the changes corresponding to the same package name in the device update table; Add the found changes to the change information corresponding to the package name; The device information list after screening in which all the changed information has been filled is output as a device comparison report.

[0081] In some possible implementations, the power supply introduction module 750 is further used to: Find closed contours from the old version PCB file and get the power plane corresponding to each closed contour; Obtain the routing level and power information of each power plane, and put the power information of the power planes belonging to the same routing level into the same power list, wherein the power information includes the power plane number and the power attribute name; Find the center point of each power plane to obtain the center coordinates corresponding to each power plane; Create auxiliary power layers corresponding to the original power layers corresponding to each power list in the new version of the PCB file; Traverse each power list, and import the power information of the corresponding power plane into the corresponding auxiliary power layer according to the corresponding center coordinates of each power plane.

[0082] In some possible implementations, the second generating module 760 is further configured to: Copy the power information of each power plane in each original power layer to the corresponding auxiliary power layer; If there is a short circuit alarm in the new version of the PCB file, the two versions of power supply information with the same coordinates and different power supply attribute names in the auxiliary layer are retained; Based on the power information retained in the auxiliary power layer, a short circuit record including the power layer, center coordinates and power surface attribute name is generated in units of power planes, and all short circuit records are summarized to obtain the power comparison report.

[0083] It should be noted that each module in the above-mentioned PCB comparison device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in the electronic device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0084] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the PCB comparison method, which includes: recording the update information of each device in the device library to obtain a device update table; using the device update table to filter all devices in the old version PCB file to obtain the device to be checked; exporting a device information list from the new version PCB file based on the device to be checked, and filtering the device information list using the device update table to obtain a filtered device information list; searching the device update table for the update information corresponding to each device in the filtered device information list and adding it to the device information list to generate a device comparison report; importing the power attributes corresponding to each power plane in the old version PCB file into the new version PCB file; performing a short circuit check on the new version PCB file based on the imported power attributes to generate a power comparison report.

[0085] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0086] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the PCB comparison method provided by the above methods, which method includes: recording the update information of each device in the device library to obtain a device update table; using the device update table to filter all devices in the old version of the PCB file to obtain the device to be checked; based on the device to be checked, exporting a device information list from the new version of the PCB file, and using the device update table to filter the device information list to obtain a filtered device information list; searching the device update table for update information corresponding to each device in the filtered device information list and adding it to the device information list to generate a device comparison report; importing the power supply properties corresponding to each power plane in the old version of the PCB file into the new version of the PCB file; performing a short circuit check on the new version of the PCB file based on the imported power supply properties to generate a power comparison report.

[0087] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the PCB comparison method provided by the above methods, the method comprising: recording the update information of each device in the device library to obtain a device update table; using the device update table to filter all devices in the old version of the PCB file to obtain the device to be checked; exporting a device information list from the new version of the PCB file based on the device to be checked, and using the device update table to filter the device information list to obtain a filtered device information list; searching the device update table for update information corresponding to each device in the filtered device information list and adding it to the device information list to generate a device comparison report; importing the power supply properties corresponding to each power plane in the old version of the PCB file into the new version of the PCB file; performing a short circuit check on the new version of the PCB file based on the imported power supply properties to generate a power comparison report.

[0088] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0089] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0090] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A PCB comparison method, characterized in that: The method comprises: Record the update information of each device in the device library to obtain a device update table; Using the device update table, all devices in the old version PCB file are screened to obtain devices to be checked; Based on the device to be checked, a device information list is exported from the new version of the PCB file, and the device information list is filtered using the device update table to obtain a filtered device information list; Searching for update information corresponding to each device in the screened device information list from the device update table and adding the update information to the device information list, and generating a device comparison report; Import the power properties corresponding to each power plane in the old version of the PCB file into the new version of the PCB file; Perform short circuit check on the new version of PCB file based on the imported power supply properties and generate a power supply comparison report.

2. The PCB comparison method according to claim 1, characterized in that: The updating information of each device in the device library is recorded to obtain a device updating table, including: Create a device update table; When a new device exists in the device library or the package of an existing device is updated, a record for the package name, package version number and modified content is added to the device update table.

3. The PCB comparison method according to claim 2, characterized in that: The device update table is used to screen all devices in the old version PCB file to obtain the devices to be checked, including: Export the package names of all devices from the old version PCB file to get the old version package list; Iterate through each device in the Legacy Packages list and do the following: Determine whether there is a package name identical to the device in the device update table; If it exists, the package name corresponding to the device is retained in the old version package list; If it does not exist, the package name corresponding to the device is deleted from the old version package list; After traversing all devices, the devices remaining in the old version package list will be treated as devices to be checked.

4. The PCB comparison method according to claim 3, characterized in that: The device information list is derived from the new version PCB file based on the device to be checked, and the device information list is screened using the device update table to obtain the screened device information list, including: Traverse each device retained in the old version package list, export the information of the corresponding device in the new version PCB file, and obtain the export information corresponding to each device to be checked; For each piece of exported information, the package name, package version number, device bit number and center coordinates are obtained by data separation to obtain device information corresponding to each device to be inspected; Summarize all device information to obtain a device information list; Iterate over each package name in the device information list and perform the following operations: Determine whether the package version number corresponding to the package name in the device information list is the same as the package version number corresponding to the package name in the device update table; If they are the same, deleting the device information corresponding to the package name in the device information list; If they are not the same, the device information corresponding to the package name in the device information list is retained; The device information list obtained after traversing all package names is used as the filtered device information list.

5. The PCB comparison method according to claim 4, characterized in that: The searching the device update table for update information corresponding to each device in the screened device information list and adding the update information to the device information list, and generating a device comparison report, comprises: Add a corresponding change information for each package name in the filtered device information list The following operations are performed by traversing each package name in the filtered device information list: Find the changes corresponding to the same package name in the device update table; Add the found changes to the change information corresponding to the package name; The device information list after screening in which all the changed information has been filled is output as a device comparison report.

6. The PCB comparison method according to claim 1, characterized in that: The importing of the power properties corresponding to each power plane in the old version of the PCB file into the new version of the PCB file includes: Find closed contours from the old version PCB file and get the power plane corresponding to each closed contour; Obtain the routing level and power information of each power plane, and put the power information of the power planes belonging to the same routing level into the same power list, wherein the power information includes the power plane number and the power attribute name; Find the center point of each power plane to obtain the center coordinates corresponding to each power plane; Create auxiliary power layers corresponding to the original power layers corresponding to each power list in the new version of the PCB file; Traverse each power list, and import the power information of the corresponding power plane into the corresponding auxiliary power layer according to the corresponding center coordinates of each power plane.

7. The PCB comparison method according to claim 6, characterized in that: The short circuit check of the new version of the PCB file is performed based on the imported power supply attributes to generate a power supply comparison report, including: Copy the power information of each power plane in each original power layer to the corresponding auxiliary power layer; If there is a short circuit alarm in the new version of the PCB file, the two versions of power supply information with the same coordinates and different power supply attribute names in the auxiliary layer are retained; Based on the power information retained in the auxiliary power layer, a short circuit record including the power layer, center coordinates and power surface attribute name is generated in units of power planes, and all short circuit records are summarized to obtain the power comparison report.

8. A PCB comparison device, characterized in that: The device comprises: A recording module is used to record the update information of each device in the device library to obtain a device update table; A first screening module is used to screen all devices in the old version PCB file using the device update table to obtain devices to be checked; A second screening module is used to export a device information list from a new version of the PCB file based on the device to be checked, and screen the device information list using the device update table to obtain a screened device information list; A first generating module, configured to search the device update table for update information corresponding to each device in the screened device information list and add the update information to the device information list, thereby generating a device comparison report; The power import module is used to import the power properties corresponding to each power plane in the old version of the PCB file into the new version of the PCB file; The second generation module is used to perform short circuit check on the new version of the PCB file based on the imported power supply properties and generate a power supply comparison report.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the PCB comparison method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the PCB comparison method according to any one of claims 1 to 7 is implemented.