A method for automatically generating measuring points on a PCB
By adding the automatic point generation function to the Allegro toolbar, the cumbersome problem of traditional manual settings is solved, and automated point generation is realized, efficiency and accuracy are improved, and the smooth progress of ICT tests are ensured.
Patent Information
- Application Number
- CN202110229003.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-02
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2041-03-02
AI Technical Summary
During the PCB layout process, traditional methods require manual setting of measurement points parameters and are prone to omissions, which leads to the inability to perform ICT tests and low efficiency, resulting in delays in construction periods.
Design a method to automatically generate measurement points, use the Skill development language in Cadence, add the automatic point generation measurement tool on the Allegro toolbar, select the measurement point type, automatically judge and generate measurement points, and provide a generation report.
It greatly simplifies the setting and generation of test points, improves work efficiency, saves labor costs, reduces design error rates, and ensures the smooth progress of ICT testing.
Smart Images

Figure CN112836465B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic design and PCB layout, and in particular to a method for automatically generating measuring points on a PCB. Background Art
[0002] Open circuits, short circuits, poor soldering of components, solder leaks, missing parts, etc. are the main defects in the production process of circuit boards. Automatic online testing, namely ICT testing (In-Circuit Test), can check manufacturing defects and component defects by testing the electrical performance and electrical connections of online components. It is crucial in the production process of circuit boards. With the continuous development of electronic circuit technology, the requirements for ICT testing are gradually increasing. When laying out the PCB, it is necessary to reserve test points on each network, and the size, spacing, density, distance from components, etc. of the test points will affect the testability and test cost of ICT. The generation of test points is an important task during layout, and the setting of various parameters is indispensable.
[0003] The traditional method requires manual setting of whether to allow the test point to be generated under the pad, the test point size, the level of the generated test point, whether to display the network name, the probe shape, etc., and then the tool mark needs to be generated and checked through operation. The whole work involves many parameters and settings, which is very cumbersome, easy to miss, and inefficient. Once the test point fails, it is necessary to recheck whether all parameter settings are correct. If the test point is set incorrectly and generated by mistake, it will also lead to the inability to conduct ICT testing, waste of tools, and delays in construction. Therefore, it is very necessary to solve this problem. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a method for automatically generating measuring points on a PCB board, which can automatically set parameters and complete measuring point generation and reporting with one click during PCB layout. This method can greatly reduce the operation time of layout engineers in setting and generating measuring points, and change from setting one by one and operating step by step to quickly completing the measuring point work with one click, thereby solving the problems in the background technology.
[0005] The purpose of the present invention is to provide a method for automatically generating measuring points on a PCB board. The measuring point program file is placed in the Cadence installation folder, and the automatic generating measuring point tool is loaded into the Allegro toolbar. The type of measuring point to be generated is selected by pulling down. The program automatically determines whether the selected measuring point type is consistent with the principle Figure 1 If they are consistent, the measurement points can be automatically generated according to the preset parameters, and the measurement point generation status can be automatically reported;
[0006] Specifically: Use the Skill development language in Cadence to design a design program that automatically generates test points on PCB;
[0007] First, add test points to the schematic diagram by importing the netlist and placing the test points into the brd file;
[0008] Next, write a Skill program with the function of automatically generating measuring points, put the program into the Cadence installation folder, add the automatic measurement point generation tool and drop-down menu on the Allegro toolbar, pull down and select the type of measuring point to be generated, and a dialog box will pop up to confirm the parameter settings;
[0009] Finally, measuring points are automatically generated according to requirements, and the generation status of measuring points can be reported.
[0010] A further improvement is that: the measuring point program file includes an allegro.men file and four scr format files for automatically generating measuring points; the allegro.men file is used to add a function menu to the Allegro toolbar, and the scr format file is used to realize the functions in these menus, that is, the generation of different measuring points; the four scr format files include three scr format files for automatically generating measuring points and one scr format file for automatically generating a measuring point situation report, and the three scr format files for automatically generating measuring points include TP_1r00.scr, TP_1r25.scr and TP_1r27.scr; and one scr format file for automatically generating a measuring point situation report is TP_report.scr.
[0011] Further improvements are: TP_1r00.scr, TP_1r25.scr and TP_1r27.scr. are Testpoint 1,00mm, Testpoint 1,25mm and Testpoint 1,27mm in the drop-down menu, respectively, for the cases where the measuring point diameter is 1,00mm, 1,25mm and 1,27mm; TP_report.scr file is Reporttestpoint in the drop-down menu.
[0012] A further improvement is that at least one scr format file of the measuring point is automatically generated, so that more than three diameters can be measured.
[0013] The automatic measurement point generation tool used in this method refers to the measurement point generation tool, specifically the function menu added to the Allegro toolbar.
[0014] The measuring point program files refer to the five files (i.e. four scrips and one allegro.men) that need to be loaded into the Allegro installation path. The allegro.men file is used to add function menus to the Allegro toolbar, and the four scrip files are used to implement the functions in these menus, i.e. the generation of different measuring points.
[0015] The SKILL program that automatically generates measurement points refers to the code contained in these five files.
[0016] Beneficial effects of the present invention: The present invention simplifies the measurement point setting and generation work in the layout to the greatest extent through an automated design program, transforming the original cumbersome manual operation into an extremely simple one-key automated operation, which is very beneficial to improving the work efficiency of the layout, saving labor costs, reducing the design error rate and unified engineering management. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is an implementation flow chart of the present invention.
[0018] Figure 2 It is a schematic diagram of adding an automatic measurement point generation function to the Allegro toolbar in the present invention. DETAILED DESCRIPTION
[0019] In order to deepen the understanding of the present invention, the present invention will be further described in detail below in conjunction with examples. The examples are only used to explain the present invention and do not constitute a limitation on the protection scope of the present invention.
[0020] like Figure 1 and 2 As shown, this embodiment provides a method for automatically generating test points on a PCB board, which is a method that can automatically set parameters and complete test point generation and reporting in one click during PCB layout. This method can greatly reduce the operation time of layout engineers in setting and generating test points, from setting one by one and operating step by step to quickly completing the test point work with one click.
[0021] The method is: using the Skill development language in Cadence, design a design program that automatically generates test points on PCB;
[0022] First, add test points to the schematic diagram by importing the netlist and placing the test points in the brd file; secondly, write a Skill program with the function of automatically generating test points, put the program into the Cadence installation folder, add the automatic generation of test point tools and drop-down menu on the Allegro toolbar, pull down to select the type of test point to be generated, and a dialog box will pop up to confirm the parameter settings; finally, automatically generate test points according to requirements, and report on the test point generation status.
[0023] The automatic measurement point generation tool used in this method refers to the measurement point generation tool, specifically the function menu added to the Allegro toolbar.
[0024] The measuring point program files refer to the five files (i.e. four scrips and one allegro.men) that need to be loaded into the Allegro installation path. The allegro.men file is used to add function menus to the Allegro toolbar, and the four scrip files are used to implement the functions in these menus, i.e. the generation of different measuring points.
[0025] The SKILL program that automatically generates measurement points refers to the code contained in these five files.
[0026] The specific operation steps of the method are as follows: put the test point program file into the Cadence installation folder, load the automatic test point generation tool into the Allegro toolbar, pull down to select the type of test point to be generated, and the Skill program of the automatic test point generation function automatically determines whether the selected test point type is consistent with the principle Figure 1 If the parameters are consistent, the measurement points can be automatically generated according to the preset parameters, and the measurement point generation status can be automatically reported. It can be seen that through the automated design program, the measurement point setting and generation work in the layout is simplified to the greatest extent, from the original manual tedious operation to an extremely simple one-key automated operation, which is very beneficial to improve the layout work efficiency, save labor costs, reduce the design error rate and unified engineering management.
[0027] Figure 1 This is a flowchart of the implementation of the design method described in this embodiment. After the execution program starts, follow Figure 1 The idea of flow chart design in the above figure automatically completes the measurement point generation and report. Figure 1As shown, execute the SKILL program for automatic measurement point generation, install the automatic measurement point generation tool on the Allegro toolbar, pull down to select the type of measurement point to be generated, and the program will automatically determine whether the selection is correct, that is, whether it is consistent with the measurement points required by the schematic diagram. If it is consistent, the measurement point generation can be automatically completed according to the preset parameters. If there are networks missing measurement points or the measurement points cannot be generated because the placement does not comply with the rules, the tool drop-down menu also provides a report option, which can view the network where the missing measurement points are located in detail with one click.
[0028] The above preset parameters include general parameters, pad selections, and probe types, all of which are set automatically, and measurement points are generated automatically.
[0029] The measuring point program file includes an allegro.men file and four scr format files, wherein the allegro.,men file is used to add a function menu on the Allegro toolbar, and the four scr format files are used to implement the functions in these menus, namely, the generation of different measuring points. Specifically, the four scr format files in this embodiment include three scr format files for automatically generating measuring points and one scr format file for automatically generating a measuring point situation report. The three scr format files for automatically generating measuring points include TP_1r00.scr, TP_1r25.scr and TP_1r27.scr. Figure 2 The following are the Testpoint 1,00mm, Testpoint 1,25mm and Testpoint 1,27mm in the drop-down menu, which are used for the measurement point diameters of 1,00mm, 1,25mm and 1,27mm respectively. The scr format file for automatically generating the measurement point situation report is TP_report.scr. Figure 2 Shown in the drop-down menu is the Report test point.
[0030] To achieve the above purpose and other related purposes, the Skill development language of Cadence is used to write a language to implant the automatic generation of test points into the software. The method includes: using the Allegro wiring design software used for PCB layout function in Cadence software and the SKILL development language of Cadence to design and write an automatic generation of test points tool, so as to add a tool item for automatic generation of test points in the menu bar of the Allegro software, and add the options of common test point types and test point reports in the drop-down menu item of the tool item.
[0031] The whole process is fast, efficient and highly accurate, which saves the working time of PCB layout engineers, avoids the failure and error of test point generation caused by human error, and ensures the progress of subsequent automatic online testing (i.e. ICT testing).
[0032] This embodiment uses Cadence's Skill development language to write a language to embed the measurement point generation function into the software. The method includes:
[0033] 1. By adding code that can generate measurement points in the allegro.men file, add an automatic measurement point generation tool to the menu bar of the Allegro software, and add options for common measurement point types and measurement point reports in the drop-down menu of the tool item.
[0034] 2. Put the allegro.men file into the \share\pcb\text\cuimenus directory.
[0035] 3. Taking the measuring point with a diameter of 1mm as an example, the program code of the measuring point parameter setting function added in allegro.men is as follows:
[0036] setwindowpcb
[0037] trapsize 15117
[0038] placementedit
[0039] property edit
[0040] setwindow form.find
[0041] FORM find name_type Net
[0042] FORM find find_by_name
[0043] setwindow form.findname
[0044] FORM findname all_right
[0045] FORM findname done
[0046] setwindow form.editprop1
[0047] FORM editprop1 properties Testpoint_Quantity
[0048] setwindow form.editprop2
[0049] FORM editprop2 testpoint_quantity ele_prop_value 1
[0050] FORM editprop2 apply
[0051] setwindow form.editprop1
[0052] FORM editprop1 done
[0053] property edit
[0054] setwindow form.find
[0055] FORM find name_type Symbol Type
[0056] FORM find find_by_name
[0057] setwindow form.findname
[0058] FORM findname objlist Tpc100
[0059] FORM findname select
[0060] setwindow form.editprop2
[0061] FORM editprop2 testpoint_allow_under prop_state YES
[0062] FORM editprop2 apply
[0063] setwindow form.editprop1
[0064] FORM editprop1 done
[0065] setwindow form.findname
[0066] FORM findname done
[0067] property edit
[0068] setwindow form.find
[0069] FORM find name_type Symbol Type
[0070] FORM find find_by_name
[0071] setwindow form.findname
[0072] FORM findname objlist Tpc100
[0073] FORM findname done
[0074] setwindow pcb
[0075] setwindow form.editprop1
[0076] FORM editprop1 properties Testpoint_Allow_Under
[0077] setwindow form.editprop2
[0078] FORM editprop2 apply
[0079] setwindow form.editprop1
[0080] FORM editprop1 done
[0081] setwindow pcb
[0082] testprep prmed
[0083] setwindow form.testprep_parameters
[0084] FORM testprep_parameters test_pin_type Any Pin
[0085] FORM testprep_parameters test_pad_type SMT / Blind
[0086] FORM testprep_parameters layer_to_test Either
[0087] FORM testprep_parameters test_method Single
[0088] FORM testprep_parameters test_grid_x 0
[0089] FORM testprep_parameters test_grid_y 0
[0090] FORM testprep_parameters min_test_pad_size 1
[0091] FORM testprep_parameters display_text NO
[0092] FORM testprep_parameters text_offset_x 1
[0093] FORM testprep_parameters text_offset_y 1
[0094] FORM testprep_parameters component_rep Place Bound
[0095] FORM testprep_parameters padstack_selections
[0096] FORM testprep_parameters via_setting cell 1,4
[0097] fillin "P_TPC100_top"
[0098] FORM testprep_parameters via_setting cell 1,6
[0099] fillin "P_TPC100_bottom"
[0100] FORM testprep_parameters close
[0101] setwindow pcb
[0102] placementedit
[0103] testprep automatic
[0104] setwindow form.testprep_automatic
[0105] FORM testprep_automatic tptestprep
[0106] FORM testprep_automatic tpclose
[0107] setwindowpcb
[0108] placementedit
[0109] setwindowpcb
[0110] generaledit
[0111] testprep createfixture
[0112] setwindow form.testprep_fixture
[0113] FORM testprep_fixture test_overwrite_fixture YES
[0114] FORM testprep_fixture tpfixture
[0115] setwindowpcb
[0116] generaledit
[0117] 5. The program code for adding the measurement point tool and its drop-down menu in the Allegro toolbar is as follows:
[0118] POPUP "&Testpoint"
[0119] BEGIN
[0120] MENUITEM "&Testpoint 1,27 mm", "replay
[0121] C:\Cadence\SPB_172\home\scripts\TP_1r27.scr"
[0122] MENUITEM "&Testpoint 1,00 mm", "replay
[0123] C:\Cadence\SPB_172\home\scripts\TP_1r00.scr"
[0124] MENUITEM "&Testpoint 1,25 mm", "replay
[0125] C:\Cadence\SPB_172\home\scripts\TP_1r25.scr"
[0126] MENUITEM "&Report testpoint", "replay
[0127] C:\Cadence\SPB_172\home\scripts\TP_report.scr"
[0128] END
[0129] 6. The program code for reporting the measurement point generation situation is as follows:
[0130] setwindowpcb
[0131] placementedit
[0132] reports "Testprep Report"
[0133] placementedit.
Claims
1. A method for automatically generating measuring points on a PCB board, characterized in that: Put the test point program file into the Cadence installation folder, load the automatic test point generation tool into the Allegro toolbar, pull down to select the type of test point to be generated, and the program will automatically determine whether the selected test point type is consistent with the schematic diagram. If it is consistent, the test point generation will be automatically completed according to the preset parameters, and the test point generation status can be automatically reported; Specifically: Use the Skill development language in Cadence to design a design program that automatically generates test points on PCB; First, add test points to the schematic diagram by importing the netlist and placing the test points into the brd file; Next, write a Skill program with the function of automatically generating measurement points and put it into the Cadence installation folder. Add the automatic measurement point generation tool and drop-down menu on the Allegro toolbar. Select the type of measurement point to be generated from the drop-down menu, and a dialog box will pop up to confirm the parameter settings. Finally, the measuring points are automatically generated according to the requirements, and the generation of the measuring points can be reported; The measuring point program file includes an allegro.men file and four scr format files for automatically generating measuring points; the allegro.men file is used to add a function menu on the Allegro toolbar, and the scr format file is used to realize the functions in these menus, that is, the generation of different measuring points; the four scr format files include three scr format files for automatically generating measuring points and one scr format file for automatically generating a measuring point situation report, and the three scr format files for automatically generating measuring points include TP_1r00.scr, TP_1r25.scr and TP_1r27.scr; and one scr format file for automatically generating a measuring point situation report is TP_report.scr.
2. A method for automatically generating measuring points on a PCB board as claimed in claim 1, characterized in that: TP_1r00.scr, TP_1r25.scr and TP_1r27.scr. are Testpoint 1,00mm, Testpoint 1,25mm and Testpoint 1,27mm in the drop-down menu, respectively, and are used for the cases where the measuring point diameter is 1,00mm, 1,25mm and 1,27mm respectively; the TP_report.scr file is the Report testpoint in the drop-down menu.
3. A method for automatically generating measuring points on a PCB board as claimed in claim 2, characterized in that: At least one scr format file of the measuring point is automatically generated, so that more than three diameters can be measured.
