Impedance-based automatic LOSS generation test method and system and storage medium

CN119272679APending Publication Date: 2025-01-07VICTORY GIANT TECH HUIZHOU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411367760.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

[0003]要做线路测试是不能直接在PCB板内测试,板内走线复杂,没有对应的测试点,存在夹具探针不匹配等情况

Benefits of technology

本申请只需要在前端提供相应的数据自动生成插损测试Coupon(LOSS)自动设计生成图纸信息可直接用于生产。实现自动化图纸设计,无需CAM工程师手动干预的系统,极大的提升了正确性和时间效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119272679A_ABST
    Figure CN119272679A_ABST
Patent Text Reader

Abstract

The invention provides an impedance-based automatic LOSS generation test method and system and a storage medium, and the method comprises the steps: obtaining the impedance information of an inplan or an erp; impedance information is grouped, and reference and wiring layers are avoided; measuring point fixing positions and positioning holes are added to the grouped impedances, and the grouped impedances are sorted according to a wiring layer; calculating coordinates of test points according to the routing distribution; calculating the length of each signal line; setting the distribution of maximum reduction signal lines in the board; setting a test point differential line test end; adding a windowing of a measuring point; calculating the coordinates of the measuring points corresponding to the character layers, and adding the character information to the corresponding character layers; and the automatic process of the COUPON is completed. According to the method, only corresponding data needs to be provided at the front end to automatically generate the Coupon (LOSS), and the drawing information can be automatically designed and generated and can be directly used for production. Automatic drawing design is achieved, manual intervention of CAM engineers is not needed, and correctness and time efficiency are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of PCB technology, and in particular to a method, system and storage medium for automatically generating LOSS test based on impedance. Background Art

[0002] PCB insertion loss test, also known as insertion loss test or Loss test, refers to the reduction of signal strength when the signal passes through the PCB circuit. This test is mainly used to check whether the performance of the PCB meets the design specifications.

[0003] Circuit testing cannot be done directly on the PCB board because the wiring on the board is complicated, there are no corresponding test points, and there are problems such as mismatch of fixture probes.

[0004] A separate coupon needs to be made to match the fixture measurement points. The current situation is to manually layout the circuit to simulate the routing inside the board and manually add window blocking points, which is inefficient, low in accuracy and high in time cost. Summary of the invention

[0005] To solve the above technical problems, the present application provides a method, system and storage medium for automatically generating LOSS test based on impedance, which solves the current manual layout circuit production, produces an automatic generation of LOSS test coupon system, reduces the manual production time of personnel, and realizes the fully automatic generation of loss test coupons through automated scripts.

[0006] In a first aspect, the present application proposes a method for automatically generating LOSS test based on impedance, the method comprising: S1: Get the impedance information of inplan or erp; S2: Group the impedance information to avoid reference and routing layers; S3: Add fixed measurement points and positioning holes to the grouped impedances, and sort the grouped impedances by routing layer; S4: Calculate the test point coordinates based on the routing distribution; S5: Calculate the length of each signal line; S6: Set the distribution of the maximum restored signal line in the board; set the test terminal of the differential line of the test point; add the window of the test point; S7: Calculate the coordinates of the measuring points corresponding to the text layer, and add the text information to the corresponding text layer; S8: Complete the COUPON automation process.

[0007] The front-end interface of the present invention is developed by PYQ5T using Python language. The reliability of signal transmission is improved and signal distortion is reduced by rationally designing signal line distribution and measuring point settings. The accuracy of test results is effectively improved by accurately calculating impedance information and measuring point positioning.

[0008] The step S1 comprises: Create a main window using PyQt5; Use QTableWidget to display the acquired impedance information.

[0009] The step S2 comprises: In the fetch_impedance_data() function, filter out the layers containing the words reference layer and routing layer; Create a dictionary or any data structure to hold grouped data and display those groups in a table.

[0010] The step S3 comprises: Use defaultdict for grouping; Add measurement points and hole locations to each impedance group through dictionary lookup; The data is sorted by the impedance value of the group, and each piece of data displayed includes the impedance value, layer, measurement point and positioning hole.

[0011] The step S4 comprises: The coordinates of the measuring point are calculated according to the starting and ending points of the line, and the coordinates of the measuring point are the midpoint or the end point of the line.

[0012] The setting of the maximum restoration of the signal line distribution in the board includes: setting the copper avoidance to a specified multiple of the pressed medium thickness, and laying conductor copper in the open area.

[0013] In a second aspect, the present application proposes a system for automatically generating a LOSS test method based on impedance, the system comprising: Data acquisition unit, used to obtain impedance information of INPLAN or ERP; The first processing unit groups the impedance information, avoids the reference and routing layers, adds fixed measurement point positions and positioning holes to the grouped impedances, and sorts the grouped impedances by routing layer; The second processing unit calculates the coordinates of the test points according to the routing distribution, calculates the length of each signal line, sets the maximum restored signal line distribution in the board; sets the test terminal of the differential line of the test point; adds the window of the test point; calculates the coordinates of the corresponding test point of the text layer, and adds the text information to the corresponding text layer.

[0014] In a third aspect, the present application proposes a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a control processor, they implement a method for automatically generating LOSS tests based on impedance as described in the first aspect.

[0015] Compared with the prior art, this application has at least the following beneficial effects: This application only needs to provide the corresponding data on the front end to automatically generate the insertion loss test coupon (LOSS) and automatically design and generate drawing information that can be directly used in production. The system realizes automated drawing design without manual intervention by CAM engineers, which greatly improves the accuracy and time efficiency.

[0016] The impedance-based automatic generation of LOSS test method described in this application is fully automated and does not require human participation, reducing the probability of human error. Manual production takes 3-8 hours, while automatic production using this method only takes 5 minutes, greatly improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of a method for automatically generating LOSS test based on impedance shown in an embodiment of the present application. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. Embodiment 1:

[0019] like Figure 1 As shown, the present application proposes a method, system and storage medium for automatically generating LOSS test based on impedance, which solves the current problem of manually making layout lines, makes a system for automatically generating LOSS test coupons, reduces the manual production time of personnel, and realizes fully automatic generation of loss test coupons through automated scripts.

[0020] In a first aspect, the present application proposes a method for automatically generating LOSS test based on impedance, the method comprising: S1: Get the impedance information of inplan or erp; S2: Group the impedance information to avoid reference and routing layers; S3: Add fixed measurement points and positioning holes to the grouped impedances, and sort the grouped impedances by routing layer; S4: Calculate the test point coordinates based on the routing distribution; S5: Calculate the length of each signal line; S6: Set the distribution of the maximum restored signal line in the board; set the test terminal of the differential line of the test point; add the window of the test point; S7: Calculate the coordinates of the measuring points corresponding to the text layer, and add the text information to the corresponding text layer; S8: Complete the COUPON automation process.

[0021] The present invention effectively reduces the test errors caused by improper test points through accurate impedance data and test point layout, and improves the accuracy and repeatability of the test. The reasonable distribution of the maximum restored signal line optimizes the signal transmission path, reduces signal attenuation and distortion, and thus improves circuit performance. By automatically generating COUPON and test point information, manual operation is simplified, the error rate is reduced, and the efficiency of overall design and testing is improved.

[0022] The step S1 comprises: Create a main window using PyQt5; specifically, introduce the required modules in sys and PyQt5, and initialize some basic properties of the window, such as the window title and size. Create a center widget and set it as the center widget of the main window. Use QVBoxLayout to create a vertical layout to facilitate the subsequent addition of components. Use QTableWidget to display the acquired impedance information. Create QTableWidget, a component used to display tabular data, and add it to the layout. In the init_table method, assume the acquired impedance data and display it in a table.

[0023] The step S2 comprises: In the fetch_impedance_data() function, filter out the layers containing the words reference layer and routing layer; Create a dictionary or any data structure to hold grouped data and display those groups in a table.

[0024] Preferably, the fetch_impedance_data() function first defines some simulated raw impedance data. Then, it uses list comprehensions to filter out layers containing specific words. Next, it creates a dictionary grouped_data where the key is the layer name and the value is a list containing all the impedance data items for that layer.

[0025] The update_table_widget() function is responsible for displaying the grouped data in the QTableWidget. It first clears the table, then iterates over the grouped data and converts it into a flat list so that it can be displayed row by row in the table. Finally, it sets the number of rows, columns, and headers of the table and fills it with data.

[0026] The step S3 comprises: Use defaultdict for grouping; Add measurement points and hole locations to each impedance group through dictionary lookup; The data is sorted by the impedance value of the group, and each piece of data displayed includes the impedance value, layer, measurement point and positioning hole.

[0027] The step S4 comprises: The coordinates of the measuring point are calculated according to the starting and ending points of the line, and the coordinates of the measuring point are the midpoint or the end point of the line.

[0028] The setting of the maximum restoration of the signal line distribution in the board includes: setting the copper avoidance to a specified multiple of the pressed medium thickness, and laying conductor copper in the open area. Embodiment 2:

[0029] The present application proposes a system for automatically generating a LOSS test method based on impedance, the system comprising: Data acquisition unit, used to obtain impedance information of INPLAN or ERP; The first processing unit groups the impedance information, avoids the reference and routing layers, adds fixed measurement point positions and positioning holes to the grouped impedances, and sorts the grouped impedances by routing layer; The second processing unit calculates the coordinates of the test points according to the routing distribution, calculates the length of each signal line, sets the maximum restored signal line distribution in the board; sets the test terminal of the differential line of the test point; adds the window of the test point; calculates the coordinates of the corresponding test point of the text layer, and adds the text information to the corresponding text layer. Embodiment three:

[0030] The present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a control processor, a method for automatically generating LOSS test based on impedance as described in the first aspect is implemented.

[0031] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0032] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, 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. The computer software product is stored in a storage medium and includes several instructions for an electronic device to execute all or part of the steps of the method described in each embodiment of the present application. 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 code.

[0033] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for automatically generating LOSS test based on impedance, characterized in that: The method comprises: S1: Get the impedance information of inplan or erp; S2: Group the impedance information to avoid reference and routing layers; S3: Add fixed measurement points and positioning holes to the grouped impedances, and sort the grouped impedances by routing layer; S4: Calculate the test point coordinates based on the routing distribution; S5: Calculate the length of each signal line; S6: Set the distribution of the maximum restored signal line in the board; set the test terminal of the differential line of the test point; add the window of the test point; S7: Calculate the coordinates of the measuring points corresponding to the text layer, and add the text information to the corresponding text layer; S8: Complete the COUPON automation process.

2. The method for automatically generating LOSS test based on impedance according to claim 1, characterized in that: The step S1 comprises: Create a main window using PyQt5; Use QTableWidget to display the acquired impedance information.

3. The method for automatically generating LOSS test based on impedance according to claim 2, characterized in that: The step S2 comprises: In the fetch_impedance_data() function, filter out the layers containing the words reference layer and routing layer; Create a dictionary or any data structure to hold grouped data and display those groups in a table.

4. The method for automatically generating LOSS test based on impedance according to claim 3, characterized in that: The step S3 comprises: Use defaultdict for grouping; Add measurement points and hole locations to each impedance group through dictionary lookup; The data is sorted by the impedance value of the group, and each piece of data displayed includes the impedance value, layer, measurement point and positioning hole.

5. The method for automatically generating LOSS test based on impedance according to claim 4, characterized in that: The step S4 comprises: The coordinates of the measuring point are calculated according to the starting and ending points of the line, and the coordinates of the measuring point are the midpoint or the end point of the line.

6. The method for automatically generating LOSS test based on impedance according to claim 5, characterized in that: The setting of the maximum restoration of the signal line distribution in the board includes: setting the copper avoidance to a specified multiple of the pressed medium thickness, and laying conductor copper in the open area.

7. A system for automatically generating a LOSS test method based on impedance according to any one of claims 1 to 6, characterized in that: The system comprises: Data acquisition unit, used to obtain impedance information of INPLAN or ERP; The first processing unit groups the impedance information, avoids the reference and routing layers, adds fixed measurement point positions and positioning holes to the grouped impedances, and sorts the grouped impedances by routing layer; The second processing unit calculates the coordinates of the test points according to the routing distribution, calculates the length of each signal line, sets the maximum restored signal line distribution in the board; sets the test terminal of the differential line of the test point; adds the window of the test point; calculates the coordinates of the corresponding test point of the text layer, and adds the text information to the corresponding text layer.

8. A computer storage medium, wherein the computer readable storage medium stores computer executable instructions, characterized in that: When the computer executable instructions are executed by the control processor, a method for automatically generating LOSS test based on impedance as described in any one of claims 1 to 6 is implemented.