Pin rapid exchange method and system and computer readable storage medium

By exporting and setting a flag management mechanism on the microsystem substrate, the automatic exchange of pin numbers is realized, which solves the problems of high complexity and low efficiency of pin exchange in the prior art and ensures the accuracy and efficiency of large-scale exchange.

CN120994235APending Publication Date: 2025-11-21INFORMATION SCI RES INST OF CETC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510875867.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

In the existing technology, the pin swapping method of microsystem substrate has the problems of high complexity, easy error and low efficiency, especially in the swapping of thousands of pins, it is difficult to achieve fast and accurate swapping.

Method used

By exporting the pin configuration file of the substrate principle package library, setting change flags and used flags, traversing the pins based on these flags and matching the new pin numbers, replacing the target pin numbers in the original package library, and ensuring accuracy through manual verification, fully automatic exchange is achieved.

Benefits of technology

It avoids layout chaos and text overlap in the exchange of thousands of pins, improves the level of automation, eliminates the risk of human error, maintains the compatibility of the original package structure, and improves the accuracy and efficiency of the exchange.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120994235A_ABST
    Figure CN120994235A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a rapid pin exchange method and system and a readable storage medium, and the method comprises the steps: exporting a first pin configuration file of a substrate principle packaging library from a layout file, the first pin configuration file comprising a mapping relation of a plurality of device names, a plurality of first pin numbers and a plurality of network names; generating a second pin configuration file based on the first pin configuration file and an original netlist, wherein the second pin configuration file comprises a mapping relationship among the plurality of device names, a plurality of second pin numbers and a plurality of network names; traversing pins of the substrate principle packaging library, and respectively matching a plurality of second pin numbers corresponding to the plurality of first pin numbers by setting a change mark and a used mark according to the second pin configuration file; and replacing a target pin number in the original packaging library with the matched second pin number, and outputting a replacement result and an error mark. According to the invention, the accuracy and execution efficiency of large-scale pin exchange can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of microsystem substrate design, specifically relating to pin fast switching methods, systems, and computer-readable storage media. Background Technology

[0002] As the integration level of microsystems increases, the number of substrate pins often reaches thousands, leading to a surge in pin exchange complexity.

[0003] Currently, the mainstream methods for pin swapping include: automatic swapping using tools, which relies on the built-in functions of design tools, but will simultaneously modify pin names and pin numbers, disrupting the principle encapsulation planning and layout, and easily causing problems such as text overlap; and manual swapping, which can avoid the problems of automatic tools, but has the drawbacks of low efficiency and easy error.

[0004] No solution to the above problems and a method more suitable for rapid pin swapping of microsystem substrates has been found in the existing technology. Summary of the Invention

[0005] This application proposes a pin-fast switching method, system, and computer-readable storage medium to address the deficiencies of the prior art.

[0006] According to a first aspect of the embodiments of this application, a method for rapid pin switching is provided, comprising: Export the first pin configuration file of the substrate schematic package library from the layout file. The first pin configuration file contains mappings of multiple device names, multiple first pin numbers and multiple net names. A second pin configuration file is generated based on the first pin configuration file and the original netlist. The second pin configuration file contains the mapping relationship between the multiple device names, multiple second pin numbers and the multiple netlists. Traverse the pins of the substrate principle package library, and according to the second pin configuration file, match the multiple second pin numbers corresponding to the multiple first pin numbers by setting change flags and used flags respectively; Replace the target pin number in the original package library with the matched second pin number, and output the replacement result and error flags.

[0007] In some implementations, the first pin configuration file is in comma-separated value file format, with the device name, the first pin number, and the network name being three columns of data separated by commas. The second pin configuration file is in comma-separated value file format, with the device name, the second pin number, and the network name consisting of three columns of data separated by commas.

[0008] In some implementations, the change flag is used to identify whether the second pin number is the modified first pin number, and the used flag is used to identify whether the second pin number has been assigned.

[0009] In some implementations, the step of traversing the pins of the substrate schematic library and matching the plurality of second pin numbers corresponding to the plurality of first pin numbers by setting change flags and used flags according to the second pin configuration file includes: Set the corresponding used flag and change flag for each of the second pin numbers; Traverse the pins of the substrate principle package library and match the second pin number corresponding to the first pin number, wherein the change flag of the second pin number is unchanged and the used flag of the second pin number is unused.

[0010] In some implementations, matching the plurality of second pin numbers corresponding to the plurality of first pin numbers includes: If the condition that the change flag of the second pin number is not changed and the used flag of the second pin number is not used is not met, then the second pin configuration file is traversed again, and the first second pin number with the used flag not used is taken as the second pin number that matches the first pin number.

[0011] In some implementations, the matching of the second pin number corresponding to the first pin number further includes: If the condition of using the first second pin number marked as unused as the second pin number to match the first pin number is not met when traversing the second pin configuration file again; If an error occurs, it will be marked as an error message, and the replacement process will be paused until manual confirmation.

[0012] In some implementations, after replacing the target pin number in the original package library with the matched second pin number and outputting the replacement result and error flag, the following steps are included: After manually verifying the replacement results and confirming that there are no errors, the final pin number update operation is performed.

[0013] According to a second aspect of the embodiments of this application, a pin-fast switching system is provided, comprising: The file export module is used to export the first pin configuration file of the substrate schematic package library from the layout file. The first pin configuration file contains the mapping relationship of multiple device names, multiple first pin numbers and multiple net names. The file generation module is used to generate a second pin configuration file based on the first pin configuration file and the original netlist. The second pin configuration file contains a mapping relationship between the multiple device names, multiple second pin numbers and the multiple netlists. The pin matching module is used to traverse the pins of the substrate principle package library, and according to the second pin configuration file, by setting the change flag and the used flag, match the multiple second pin numbers corresponding to the multiple first pin numbers respectively; The replacement update module is used to replace the target pin number in the original package library with the matched second pin number, and output the replacement result and error flags.

[0014] According to a third aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the above-described pin-switching method.

[0015] According to a fourth aspect of the embodiments of this application, an electronic device is provided, characterized in that it integrates the above-described pin fast switching system for implementing the above-described pin fast switching method.

[0016] The beneficial effects of the pin fast switching method, system, and computer-readable storage medium of the embodiments of this application include at least the following: This application's embodiments use "change flag" and "used flag" to mark pin number changes, achieving only pin number updates while retaining the original pin names. This avoids pin layout chaos and text overlap problems caused by traditional automatic swapping tools, solving the pin name / number confusion problem. Based on a pin traversal and flag management mechanism, this application replaces manual operation to achieve fully automated swapping, eliminating inefficiency and human error risks, and improving the level of automation. This application maintains the original principle package structure unchanged, supporting direct reuse in the future, avoiding destructive modifications to the package planning by traditional methods, and has good compatibility advantages. By comparing the principle package library files with the automated update process, this application can efficiently handle complex swapping needs at the thousands of pin levels, ensuring the accuracy and execution efficiency of large-scale pin swapping, and improving the scalability of pin swapping. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating an embodiment of the pin fast switching method of this application; Figure 2 This is a schematic diagram of the pin-to-pin fast switching system according to an embodiment of this application; Figure 3 This is a schematic diagram of the original netlist organization of the pin fast switching method according to an embodiment of this application; Figure 4This is a schematic diagram of the organization of the pins to be swapped in the pin fast swapping method according to an embodiment of this application; Figure 5 This is a schematic diagram illustrating the organization of change flags and used flags in the pin quick-swap method according to an embodiment of this application. Figure 6 This is a schematic diagram illustrating the organization of pin information for finding the same network name in the pin fast switching method according to an embodiment of this application. Figure 7 This is a schematic diagram illustrating the organization of integrated pin information in the pin fast switching method of this application embodiment. Detailed Implementation

[0018] To enable those skilled in the art to better understand the technical solution of this application, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0019] The embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The detailed description of the following embodiments and the accompanying drawings are used to illustrate the principles of this application by way of example, but should not be used to limit the scope of this application, that is, this application is not limited to the described embodiments.

[0020] See attached document Figure 1 As shown, this application discloses specific implementation steps of a pin fast switching method. This method is configured in a pin fast switching system, ensuring that those skilled in the art can implement the technical solution of this application accordingly. The method specifically includes the following steps 110-140.

[0021] Step 110: Export the first pin configuration file of the substrate schematic package library from the layout file. The first pin configuration file contains mappings for multiple device names, multiple first pin numbers, and multiple net names. In some implementations, the first pin configuration file is in comma-separated value file format, with the device name, first pin number, and network name in three comma-separated columns.

[0022] For example, the first pin configuration file can be understood as the original configuration file or old configuration file table used for pin swapping in the substrate schematic library. This original configuration file can be a table file named "SymblePinReport," which can be in standard delimited value file (CSV) format, divided into three columns separated by commas. The first column is the device name (e.g., U7), the second column is the pin number (e.g., AA50), and the third column is the net name (e.g., VCCO_12_F2). The above table is shown in Table 1 below:

[0023] Table 1 Step 120: Generate a second pin configuration file based on the first pin configuration file and the original netlist. The second pin configuration file contains mapping relationships for multiple device names, multiple second pin numbers, and multiple net names.

[0024] In some implementations, the second pin configuration file can be understood as a new configuration file or a new configuration file table for pin swapping of the substrate principle package library. The format of the second pin configuration file can be similar to that of the first pin configuration file, which is also a comma-separated value file format, with the device name, second pin number and net name as three columns of data separated by commas.

[0025] See attached document Figure 3 As shown, the original netlist is the netlist of the original file of the microsystem substrate schematic design, where device name 1 to device name 8 can be the same device name.

[0026] Step 130: Traverse the pins of the substrate principle package library, and according to the second pin configuration file, match the multiple second pin numbers corresponding to the multiple first pin numbers by setting the change flag and the used flag.

[0027] In this context, traversing the pins of the substrate principle package library can be understood as traversing the microsystem substrate principle package library file to be swapped.

[0028] The process involves iterating through the pins of the substrate schematic library, and according to the second pin configuration file, including: iterating through each pin to obtain the device name and the first pin number, and then finding the net name corresponding to the first pin number based on the second pin configuration file. The organization of the microsystem substrate schematic library file to be swapped is as follows: Figure 4 As shown.

[0029] In some implementations, refer to the appendix. Figure 5 The organization format of the change flag and the used flag is shown. The change flag is used to identify whether the second pin number is the first pin number that has been modified, and the used flag is used to identify whether the second pin number has been assigned. The initial setting of the change flag includes: finding the pins in the old pin numbers that have not changed in step 120, and setting the change flag of the corresponding new pin number to not changed.

[0030] In some implementations, traversing the pins of the substrate schematic library and matching multiple second pin numbers corresponding to multiple first pin numbers according to the second pin configuration file by setting change flags and used flags includes: setting a corresponding used flag and change flag for each second pin number; traversing the pins of the substrate schematic library and matching the second pin numbers corresponding to the first pin numbers, wherein the change flag of the second pin number is unchanged and the used flag of the second pin number is unused.

[0031] In some implementations, matching multiple second pin numbers corresponding to multiple first pin numbers includes: if the condition that the change flag of the second pin number is not changed and the used flag of the second pin number is not used is not met, then the second pin configuration file is traversed again, and the first second pin number with the used flag not used is taken as the second pin number that matches the first pin number.

[0032] For example, in one specific implementation, step 130 may include the following sub-steps 131-133.

[0033] Step 131: Locate the list of pin information for all network names within the same network name branch. The retrieved information is shown in the reference. Figure 6 As shown.

[0034] Step 132: Traverse the pins of the substrate schematic library and match the second pin number corresponding to the first pin number. For example, iterate through the pin information list in step 131. If a pin number in the list is an old pin number, the change flag has not been changed, and the used flag is unused, then that pin number is the new pin number corresponding to the old pin number, and set the used flag to used. If not found, proceed to step 133.

[0035] Step 133: Traverse the pin information list in Step 131, find the first pin whose used flag is unused, treat that pin number as the new pin number, and set the used flag to used.

[0036] In some implementations, matching multiple second pin numbers corresponding to multiple first pin numbers further includes: if the condition of using the first used second pin number marked as unused as the second pin number to match the first pin number is not met when traversing the second pin configuration file again, then an error message is marked and the replacement process is paused until manual confirmation.

[0037] For example, steps 110 to 130 are repeated until all devices and all pins of all devices in the microsystem substrate schematic library have been traversed; the information in sub-steps 131-133 is integrated, and the following is generated: Figure 7 The organizational information shown.

[0038] If the new pin number is NULL, it means that no corresponding information was found, and an error message is given. In addition, if the change flag is not changed, it is also marked to facilitate manual (e.g., designer) inspection.

[0039] Step 140: Replace the target pin number in the original package library with the matched second pin number, and output the replacement result and error flag.

[0040] In some implementations, after replacing the target pin number in the original package library with the matched second pin number and outputting the replacement result and error flag, the process includes: manually verifying the replacement result, and performing the final pin number update operation after manually verifying that it is correct.

[0041] For example, if there are no errors in step 130, and after manual inspection, the final microsystem substrate principle package pin swap can be performed, replacing the old pin number in the package with the new pin number, which is the final target pin number.

[0042] The pin-fast switching method in this application sets "change flag" and "used flag" to mark pin number changes, achieving only pin number updates while retaining the original pin name. This avoids the pin layout chaos and text overlap problems caused by traditional automatic switching tools, and solves the pin name / number confusion problem. Based on a pin traversal and flag management mechanism, this application replaces manual operation to achieve fully automatic switching, eliminating inefficiency and human error risks, and improving the level of automation. This application maintains the original principle package structure unchanged, supports direct reuse in the future, avoids destructive modifications to the package planning of traditional methods, and has good compatibility advantages. By comparing the principle package library file with the automated update process, this application can efficiently handle complex switching needs at the thousands of pin levels, ensuring the accuracy and execution efficiency of large-scale pin switching, and improving the scalability of pin switching.

[0043] The pin-fast switching method according to the embodiments of this application is illustrated below as an example of pin switching based on a certain signal processing microsystem substrate.

[0044] The signal processing microsystem substrate includes a total of 1750 pins.

[0045] This application selects the first pin configuration file name pin.csv for the substrate schematic library pin swap, selects the original netlist file name pin.log, and the device name U3. Check, the generated second pin configuration file is shown in Table 2 below:

[0046] Table 2 In this context, ** indicates a modified pin. Of the 1750 pins in the above results, 998 pins have been modified. If there are no problems after manual inspection, you can directly click to confirm the changes and start the pin swap, which takes about 20 seconds. The entire process takes about 1 minute.

[0047] After testing, the manual exchange method in this case took a total of 6 hours to complete the pin exchange with an error rate of 1%; the method in this application took a total of 1 minute with an error rate of 0%.

[0048] The above-mentioned cases in this application significantly improve the accuracy and execution efficiency of large-scale pin switching, and enhance the scalable processing capability of pin switching.

[0049] See attached document Figure 2 As shown in the figure, this application embodiment also provides a pin fast exchange system, including: a file export module 210, a file generation module 220, a pin matching module 230, and a replacement and update module 240.

[0050] The file export module 210 is used to export the first pin configuration file of the substrate schematic package library from the layout file. The first pin configuration file contains the mapping relationship of multiple device names, multiple first pin numbers and multiple net names. The file generation module 220 is used to generate a second pin configuration file based on the first pin configuration file and the original netlist. The second pin configuration file contains a mapping relationship between multiple device names, multiple second pin numbers and multiple net names. The pin matching module 230 is used to traverse the pins of the substrate principle package library and, according to the second pin configuration file, match multiple second pin numbers corresponding to multiple first pin numbers by setting change flags and used flags respectively. The replacement update module 240 is used to replace the target pin number in the original package library with the matched second pin number, and output the replacement result and error flags.

[0051] The pin-fast switching system of this application can ensure the accuracy and efficiency of large-scale pin switching, and improve the scalability of pin switching.

[0052] This application also provides a computer-readable storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the aforementioned fast pin swapping method. For example, the pin swapping method of this application can be implemented by computer program instructions, and the relevant code can be stored in a computer-readable storage medium (such as a hard disk, SSD, or cloud server). When the program is executed by the processor, the following steps are automatically performed: traversing the pin information in the principle encapsulation library file, setting the "change flag" and "used flag" of the pin number based on preset rules, updating the pin number while retaining the original name, and finally generating an updated file compatible with the original layout.

[0053] This application also provides an electronic device (EDA) characterized by integrating the aforementioned pin-fast switching system to implement the aforementioned pin-fast switching method. For example, the pin-fast switching method of this application can be integrated into the electronic device. By calling the pin-switching module through a tool interface, the following operations are achieved: after the user selects the target pin, the tool automatically parses the package library file, executes flag management and number update logic, and outputs an updated package library without name conflicts. This module supports scripted batch processing, significantly improving the efficiency of large-scale pin switching while ensuring the consistency of the schematic structure.

[0054] This application embodiment establishes a multimodal fusion architecture by integrating equipment status identification and load forecasting through a collaborative modeling mechanism. This solves the technical defect of decoupling load forecasting and equipment control in traditional technologies, and realizes the joint output of load value prediction and operating status probability distribution. This significantly improves the dynamic optimization capability of operation plans in multi-equipment scenarios (such as integrated energy systems, virtual power plants, etc.).

[0055] It is understood that the above embodiments are merely exemplary implementations used to illustrate the principles of this application, and this application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of this application, and these modifications and improvements are also considered to be within the scope of protection of this application.

Claims

1. A method for rapid pin swapping, characterized in that, include: Export the first pin configuration file of the substrate schematic package library from the layout file. The first pin configuration file contains mappings of multiple device names, multiple first pin numbers and multiple net names. A second pin configuration file is generated based on the first pin configuration file and the original netlist. The second pin configuration file contains the mapping relationship between the multiple device names, multiple second pin numbers and the multiple netlists. Traverse the pins of the substrate principle package library, and according to the second pin configuration file, match the multiple second pin numbers corresponding to the multiple first pin numbers by setting change flags and used flags respectively; Replace the target pin number in the original package library with the matched second pin number, and output the replacement result and error flags.

2. The method according to claim 1, characterized in that, The first pin configuration file is in comma-separated value file format, and the device name, the first pin number, and the network name are three columns of data separated by commas. The second pin configuration file is in comma-separated value file format, with the device name, the second pin number, and the network name consisting of three columns of data separated by commas.

3. The method according to claim 1, characterized in that, The change flag is used to identify whether the second pin number is the first pin number that has been modified, and the used flag is used to identify whether the second pin number has been assigned.

4. The method according to claim 2, characterized in that, The step of traversing the pins of the substrate schematic library, and matching the plurality of second pin numbers corresponding to the plurality of first pin numbers by setting change flags and used flags according to the second pin configuration file, includes: Set the corresponding used flag and change flag for each of the second pin numbers; Traverse the pins of the substrate principle package library and match the second pin number corresponding to the first pin number, wherein the change flag of the second pin number is unchanged and the used flag of the second pin number is unused.

5. The method according to claim 4, characterized in that, The step of matching the plurality of second pin numbers corresponding to the plurality of first pin numbers includes: If the condition that the change flag of the second pin number is not changed and the used flag of the second pin number is not used is not met, then the second pin configuration file is traversed again, and the first second pin number with the used flag not used is taken as the second pin number that matches the first pin number.

6. The method according to claim 5, characterized in that, The step of matching the plurality of second pin numbers corresponding to the plurality of first pin numbers further includes: If the condition of using the first second pin number marked as unused as the second pin number to match the first pin number is not met when traversing the second pin configuration file again; If an error occurs, it will be marked as an error message, and the replacement process will be paused until manual confirmation.

7. The method according to claim 1, characterized in that, After replacing the target pin number in the original package library with the matched second pin number and outputting the replacement result and error flag, the following steps are included: After manually verifying the replacement results and confirming that there are no errors, the final pin number update operation is performed.

8. A pin-fast switching system, characterized in that, include: The file export module is used to export the first pin configuration file of the substrate schematic package library from the layout file. The first pin configuration file contains the mapping relationship of multiple device names, multiple first pin numbers and multiple net names. The file generation module is used to generate a second pin configuration file based on the first pin configuration file and the original netlist. The second pin configuration file contains a mapping relationship between the multiple device names, multiple second pin numbers and the multiple netlists. The pin matching module is used to traverse the pins of the substrate principle package library, and according to the second pin configuration file, by setting the change flag and the used flag, match the multiple second pin numbers corresponding to the multiple first pin numbers respectively; The replacement update module is used to replace the target pin number in the original package library with the matched second pin number, and output the replacement result and error flags.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the pin fast switching method as described in any one of claims 1-7.

10. An electronic device, characterized in that, The pin fast switching system as described in claim 8 is integrated to implement the pin fast switching method as described in any one of claims 1-7.