Simulation circuit pin batch generation method, device, equipment, medium and product

By obtaining the behavioral model file of the analog circuit and extracting pin information, the problem of inconsistency in pin-related information in the existing technology is solved, and the standardization and efficiency of pin generation is achieved, and project management is simplified.

CN119514433APending Publication Date: 2025-02-25广州壁仞智能科技有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411629415.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The pin generation method of existing analog circuits is difficult to ensure the consistency of pin-related information. Especially in the case of multi-person division of labor design, pin naming errors or type errors are prone to occur.

Method used

By obtaining the behavioral model file of the analog circuit, extracting and outputting pin information to the corresponding file, and batch generating pins in the preset circuit diagram according to the pin direction to ensure that the generated pins are consistent with the behavioral model file.

Benefits of technology

It realizes consistency of pin information, reduces the possibility of downstream file reference errors, improves project standardization and convenience, and simplifies problem traceability and version management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119514433A_ABST
    Figure CN119514433A_ABST
Patent Text Reader

Abstract

The invention provides an analog circuit pin batch generation method, device, equipment, medium and product, and relates to the technical field of chip back-end design, the method comprises the following steps: obtaining a behavior-level model file of an analog circuit, the behavior-level model file comprises pin information of the analog circuit, the pin information at least comprises a pin direction, and the pin direction of the analog circuit is obtained; the pin direction is used for representing that the pin is an input pin or an output pin or an input and output pin; extracting the pin information from the behavior-level model file, and outputting other pin information except the pin direction to a corresponding pin file according to the pin direction; and reading the pin file, and generating pins in batches in a preset circuit diagram according to the pin direction. According to the method, the pin information in the behavior-level model file of the analog circuit is extracted, so that the generated pin is kept consistent with the behavior-level model file, and the conditions of pin naming errors or pin type errors and the like are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip back-end design, and in particular to a method, device, equipment, medium and product for batch generating analog circuit pins. Background Art

[0002] As chip functions become more and more abundant, the pin size continues to expand. In the design process of analog circuits, the huge pin size makes pin generation a tedious task.

[0003] The existing pin generation method of analog circuits usually divides the analog circuit into several circuit sub-modules, and multiple technicians are each responsible for generating the pins of at least one circuit sub-module. Finally, the pins of all circuit sub-modules are merged to obtain all the pins of the final analog circuit. It is difficult to ensure the consistency of pin-related information. Summary of the invention

[0004] The present invention provides a method, device, equipment, medium and product for batch generating analog circuit pins, which are used to solve the defect that it is difficult to ensure the consistency of pin-related information.

[0005] The present invention provides a method for batch generating analog circuit pins, comprising: Acquire a behavioral model file of an analog circuit, wherein the behavioral model file includes pin information of the analog circuit, wherein the pin information includes at least a pin direction, and the pin direction is used to characterize whether the pin is an input pin, an output pin, or an input-output pin; Extract the pin information from the behavior-level model file, and output the other pin information except the pin direction to a corresponding pin file according to the pin direction; The pin file is read, and pins are generated in batches in a preset circuit diagram according to the pin directions.

[0006] As an embodiment, the pin information further includes a pin name, a pin type, and a pin quantity. The step of extracting the pin information from the behavior-level model file and outputting the pin information to a corresponding pin file according to the pin direction includes: Extracting the pin type from the behavioral model file, and dividing the pins of the analog circuit into bus pins and single pins according to the pin type; Extracting a first pin name, a first pin direction, and a first pin quantity of the bus pin, and outputting the first pin name and the first pin quantity to a corresponding pin file according to the first pin direction; Extracting a second pin name and a second pin direction of the single pin, and outputting the second pin name to a corresponding pin file according to the second pin direction; The pin files include a first pin file corresponding to the input pin, a second pin file corresponding to the output pin, and a third pin file corresponding to the input and output pins.

[0007] As an embodiment, the reading of the pin file and batch generation of pins in a preset circuit diagram according to the pin directions includes: Reading a first initial text in the first pin file, and outputting the first initial text to an input pin symbol of the circuit diagram based on a preset first initial coordinate; Reading a first intermediate text in the first pin file, and outputting the first intermediate text to the input pin symbol of the circuit diagram based on a first intermediate coordinate, wherein the first intermediate coordinate is obtained by moving down a first initial coordinate or a previous first intermediate coordinate; Reading a second initial text in the second pin file, and outputting the second initial text to the output pin symbol of the circuit diagram based on a preset second initial coordinate; Reading a second intermediate text in the second pin file, and outputting the second intermediate text to the output pin symbol of the circuit diagram based on a second intermediate coordinate, wherein the second intermediate coordinate is obtained by moving down the second initial coordinate or the previous second intermediate coordinate; Reading a third initial text in the third pin file, and outputting the third initial text to the input and output pin symbols of the circuit diagram based on a preset third initial coordinate; The third intermediate text in the third pin file is read, and the third intermediate text is output to the input and output pin symbols of the circuit diagram based on the third intermediate coordinates, where the third intermediate coordinates are obtained by moving down the third initial coordinates or the previous third intermediate coordinates.

[0008] As an embodiment, extracting the pin information from the behavior level model file includes: Extracting the pin information from the behavior-level model file based on a preset first script; Correspondingly, the reading of the pin file includes: The pin file is read based on a preset second script.

[0009] As an embodiment, the first script is a python script, a perl script or a shell script.

[0010] As an embodiment, the second script is a skill script.

[0011] The present invention also provides a device for batch generating analog circuit pins, comprising: An acquisition module, used for acquiring a behavioral model file of an analog circuit, wherein the behavioral model file includes pin information of the analog circuit, wherein the pin information includes at least a pin direction, and the pin direction is used for characterizing whether the pin is an input pin, an output pin, or an input-output pin; An extraction module, used for extracting the pin information from the behavior-level model file, and outputting the other pin information except the pin direction to a corresponding pin file according to the pin direction; The generation module is used to read the pin file and batch generate pins in a preset circuit diagram according to the pin direction.

[0012] 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 computer program, it implements any one of the above-mentioned analog circuit pin batch generation methods or the analog circuit pin batch generation method.

[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned analog circuit pin batch generation methods or the analog circuit pin batch generation method.

[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the analog circuit pin batch generation method or the analog circuit pin batch generation method described above is implemented.

[0015] The method, device, equipment, medium and product for batch generation of analog circuit pins provided by the present invention obtain a behavioral model file of an analog circuit, wherein the behavioral model file includes pin information of the analog circuit, wherein the pin information includes at least a pin direction, and the pin direction is used to characterize whether the pin is an input pin or an output pin or an input-output pin; the pin information is extracted from the behavioral model file, and other pin information other than the pin direction is output to a corresponding pin file according to the pin direction; the pin file is read, and pins are batch generated in a preset circuit diagram according to the pin direction. The present invention extracts the pin information in the behavioral model file of the analog circuit, and the generated pins are consistent with the behavioral model file, and there will be no pin naming errors or pin type errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] 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.

[0017] Figure 1 The present invention is a flow chart of a method for batch generating analog circuit pins in the prior art.

[0018] Figure 2 This is one of the flow charts of the analog circuit pin batch generation method provided by the present invention.

[0019] Figure 3 This is the second flow chart of the analog circuit pin batch generation method provided by the present invention.

[0020] Figure 4 This is the third flow chart of the analog circuit pin batch generation method provided by the present invention.

[0021] Figure 5 It is a structural schematic diagram of the analog circuit pin batch generation device provided by the present invention.

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

[0023] 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.

[0024] Figure 1 is a flow chart of a method for batch generating analog circuit pins in the prior art, such as Figure 1 As shown, generating a pin requires multiple steps. First, you need to open the pin generation interface, then name the pin to be generated, then define the type of pin signal, consider whether this pin requires special configuration, and finally generate the pin.

[0025] First, in today's large-scale circuit design, the analog top-level circuit has tens of thousands of pins. Manually generating pins is time-consuming and labor-intensive, which is neither efficient nor practical.

[0026] Secondly, the pins of the analog circuit need to ensure consistency with the upstream and downstream files. When technicians manually generate a large number of pins, errors will inevitably occur in the pin naming and pin type settings, resulting in discontinuity in upstream and downstream work, and it is also difficult to troubleshoot problems in a large number of pins later.

[0027] Finally, in the actual project development process, multiple people work on sub-module design at the same time, making it difficult to ensure that the pin naming of the sub-module remains consistent with the top-level module.

[0028] To this end, the present invention provides a method, device, equipment, medium and product for batch generating analog circuit pins.

[0029] Figure 2 FIG. 1 is one of the flow charts of the method for batch generating analog circuit pins provided by the present invention, such as Figure 2 As shown, the present invention provides a method for batch generating analog circuit pins, which at least includes steps S100 to S300.

[0030] Step S100, obtaining a behavioral model file of an analog circuit, wherein the behavioral model file includes pin information of the analog circuit, wherein the pin information includes at least a pin direction, and the pin direction is used to characterize whether the pin is an input pin or an output pin or an input-output pin. In the process of project development, the behavioral model file is a file determined in the early stage of project development, and belongs to an upstream file of project development, which defines the relevant information required to generate pins, such as pin names, pin types, etc. The present invention uses the pin information contained in the behavioral model file as a source of configuration information for generating pins, which can ensure the consistency of the pins and reduce errors in downstream file references.

[0031] Step S200, extracting the pin information from the behavior-level model file, and outputting the pin information other than the pin direction to the corresponding pin file according to the pin direction. Specifically, extracting relevant information from the behavior-level model file according to keywords of the pin information.

[0032] Step S300, read the pin file, and generate pins in batches in a preset circuit diagram according to the pin direction. Read the text information in the pin file, and generate pins in batches in a preset circuit diagram according to the pin direction.

[0033] It can be understood that the present invention extracts the pin information from the behavioral level model file of the analog circuit, and the generated pins will be consistent with the behavioral level model file, and there will be no pin naming errors or pin type errors, etc., thereby achieving standardization of the process, facilitating easy and convenient problem tracing and version management, and allowing the project to proceed in an orderly manner.

[0034] Figure 3FIG. 2 is a flow chart of the method for batch generating analog circuit pins provided by the present invention. Figure 3 As shown, based on the above embodiment, as an optional embodiment, the extracting the pin information from the behavior level model file includes: extracting the pin information from the behavior level model file based on a preset first script.

[0035] Optionally, the first script is a python script, a perl script or a shell script.

[0036] Correspondingly, the reading of the pin file includes: reading the pin file based on a preset second script, Optionally, the second script is a skill script.

[0037] After obtaining the behavioral model file, the first script is used to extract the information required to generate pins, such as pin name, pin type, etc., through script commands such as searching for key information, and form a document for backup. The document with a large amount of pin information is input into the second script, and all pins are automatically generated in batches according to the process of generating a single pin.

[0038] It can be understood that the present invention realizes the given functions by nesting different programming languages, which saves time and effort, and can generate a large number of pins instantly, which not only saves labor costs but also accelerates project progress.

[0039] Figure 4 FIG. 3 is a flow chart of the method for batch generating analog circuit pins provided by the present invention. Figure 4 As shown, based on the above embodiment, as an optional embodiment, the pin information also includes pin name, pin type and pin quantity, and the pin information is extracted from the behavioral level model file and outputted to the corresponding pin file according to the pin direction, including the following steps.

[0040] Step S210: extracting the pin type from the behavior-level model file, and dividing the pins of the analog circuit into bus pins and single pins according to the pin type.

[0041] The bus pin is the bus pin, which usually appears in the format of A[2:0], representing the three pins A2, A1 and A0. The single pin is the single pin, which directly represents a single pin.

[0042] Optionally, the first script may be called to preprocess the behavior-level model file, and after reading line by line, the pins may be divided into two categories: bus pins and single pins, so as to extract information of different schemes.

[0043] Step S220, extracting the first pin name, the first pin direction and the first pin quantity of the bus pin, and outputting the first pin name and the first pin quantity to a corresponding pin file according to the first pin direction.

[0044] Step S230, extracting the second pin name and the second pin direction of the single pin, and outputting the second pin name to a corresponding pin file according to the second pin direction.

[0045] The pin files include a first pin file corresponding to the input pin, a second pin file corresponding to the output pin, and a third pin file corresponding to the input and output pins.

[0046] For captured bus pins, you need to record the pin name, pin direction, and pin quantity; for captured single pins, you only need to record the pin name and pin direction. After capturing the above information, output the above information to the first pin file inputPIN / the second pin file outputPIN / the third pin file inoutPIN according to the pin direction.

[0047] The first pin file inputPIN / the second pin file outputPIN / the third pin file inoutPIN are all result files of the first script.

[0048] Optionally, the number of pins refers to the number of single pins contained in a bus pin. In the second script, the number of single pins of a bus pin must be known to accurately generate the bus pin. A bus pin can be considered as a collection of multiple single pins. When generating a pin, it is necessary to know the number of single pins contained in the bus pin. Since the number of single pins of a single pin is 1, there is no need to specifically extract the number information of a single pin for a single pin.

[0049] It can be understood that the present invention can reduce the capture of useless information and improve the pin generation efficiency by classifying the pins of the analog circuit and capturing the corresponding files according to the classification results, and then store the captured pin information in different pin files according to the pin direction. In the subsequent pin generation process, there is no need to determine the pin direction, which further improves the pin generation efficiency.

[0050] Based on the above embodiment, as an optional embodiment, the reading of the pin file and batch generation of pins in a preset circuit diagram according to the pin directions includes the following steps.

[0051] Step S310, reading the first initial text in the first pin file, and outputting the first initial text to the input pin symbol of the circuit diagram based on a preset first initial coordinate.

[0052] Among them, input pins are usually represented by specific symbols, which may vary according to different types of components. For example, power pins are usually represented by "+" and "-" symbols, "+" represents the positive pole, and "-" represents the negative pole; digital input pins can be represented by an arrow and a triangle, and the arrow points to the circuit element, indicating the input signal; analog input pins can be represented by a circle, and there may be marks inside the circle to indicate different functions or signal types; interface pins may be represented by specific letters or abbreviations, such as IN, A, B, etc., to identify the type or source of the input signal; ground pins are usually represented by a "GND" or a ground symbol, indicating that they are connected to the ground.

[0053] Step S320, read the first intermediate text in the first pin file, and output the first intermediate text to the input pin symbol of the circuit diagram based on the first intermediate coordinate, where the first intermediate coordinate is obtained by moving down the first initial coordinate or the previous first intermediate coordinate. The first initial text refers to the first line of text in the first pin file, and the first intermediate text refers to the text starting from the second line.

[0054] Step S330, reading the second initial text in the second pin file, and outputting the second initial text to the output pin symbol of the circuit diagram based on preset second initial coordinates.

[0055] Step S340, reading the second intermediate text in the second pin file, and outputting the second intermediate text to the output pin symbol of the circuit diagram based on the second intermediate coordinates, where the second intermediate coordinates are obtained by moving down the second initial coordinates or the previous second intermediate coordinates.

[0056] Step S350, reading the third initial text in the third pin file, and outputting the third initial text to the input and output pin symbols of the circuit diagram based on preset third initial coordinates.

[0057] Step S360, reading the third intermediate text in the third pin file, and outputting the third intermediate text to the input and output pin symbols of the circuit diagram based on third intermediate coordinates, wherein the third intermediate coordinates are obtained by moving down the third initial coordinates or the previous third intermediate coordinates.

[0058] Specifically, the order of step S310, step S330 and step S350 can be adjusted, and the present invention is not limited to this.

[0059] In step S310-step S360, the information of the three pin files can be read according to the second script, the circuit diagram drawing function can be realized on the EDA tool platform, and the tool language skill can be used to process the text-to-circuit conversion to realize the conversion of text information into specific circuit information. Taking the inputPIN file generated by the first script as an example, since the first script has captured and integrated the pins with the direction of input from the behavioral model, the second script will process the pins in sequence according to the order in the text. When the first pin is generated, the 'input' symbol in the circuit diagram will be called first, and its direction is set to input by default, the pin name is the first line in the text information, and the coordinates are given by the user when calling. So far, the first line of information in the inputPIN text file has been completely generated in the circuit. The second script continues to execute to read the second line of information, and its direction is still set to input by default, the pin name is the second line in the text information, and the coordinates are translated downward compared to the first pin coordinates given by the user when calling. After generation, the program continues to execute until all text information is converted into an actual circuit diagram. Then, the second script performs the same processing on the information in the outputPIN / inoutPIN text, and after generating the corresponding circuit diagram, the second script ends.

[0060] It can be understood that the present invention provides a technical solution for batch generating pins according to different script files, which eliminates the need to determine the direction of the pins and improves the efficiency of pin generation.

[0061] The analog circuit pin batch generation device provided by the present invention is described below. The analog circuit pin batch generation device described below and the analog circuit pin batch generation method described above can be referenced to each other.

[0062] Figure 5 : is a schematic diagram of the structure of the analog circuit pin batch generation device provided by the present invention, such as Figure 5 As shown, the present invention also provides a device for batch generating analog circuit pins, including the following modules.

[0063] An acquisition module 510 is used to acquire a behavioral model file of an analog circuit, wherein the behavioral model file includes pin information of the analog circuit, wherein the pin information includes at least a pin direction, and the pin direction is used to characterize whether the pin is an input pin, an output pin, or an input-output pin; An extraction module 520, configured to extract the pin information from the behavior-level model file, and output the pin information other than the pin direction to a corresponding pin file according to the pin direction; The generating module 530 is used to read the pin file and generate pins in batches in a preset circuit diagram according to the pin directions.

[0064] As an embodiment, the pin information further includes a pin name, a pin type and a pin quantity, and the extraction module 520 is further used to: Extracting the pin type from the behavioral model file, and dividing the pins of the analog circuit into bus pins and single pins according to the pin type; Extracting a first pin name, a first pin direction, and a first pin quantity of the bus pin, and outputting the first pin name and the first pin quantity to a corresponding pin file according to the first pin direction; Extracting a second pin name and a second pin direction of the single pin, and outputting the second pin name to a corresponding pin file according to the second pin direction; The pin files include a first pin file corresponding to the input pin, a second pin file corresponding to the output pin, and a third pin file corresponding to the input and output pins.

[0065] As an embodiment, the generating module 530 is further used for: Reading a first initial text in the first pin file, and outputting the first initial text to an input pin symbol of the circuit diagram based on a preset first initial coordinate; Reading a first intermediate text in the first pin file, and outputting the first intermediate text to the input pin symbol of the circuit diagram based on a first intermediate coordinate, wherein the first intermediate coordinate is obtained by moving down a first initial coordinate or a previous first intermediate coordinate; Reading a second initial text in the second pin file, and outputting the second initial text to the output pin symbol of the circuit diagram based on a preset second initial coordinate; Reading a second intermediate text in the second pin file, and outputting the second intermediate text to the output pin symbol of the circuit diagram based on a second intermediate coordinate, wherein the second intermediate coordinate is obtained by moving down the second initial coordinate or the previous second intermediate coordinate; Reading a third initial text in the third pin file, and outputting the third initial text to the input and output pin symbols of the circuit diagram based on a preset third initial coordinate; The third intermediate text in the third pin file is read, and the third intermediate text is output to the input and output pin symbols of the circuit diagram based on the third intermediate coordinates, where the third intermediate coordinates are obtained by moving down the third initial coordinates or the previous third intermediate coordinates.

[0066] As an embodiment, the extraction module 520 is further used for: Extracting the pin information from the behavior-level model file based on a preset first script; Correspondingly, the generating module 530 is further used for: The pin file is read based on a preset second script.

[0067] As an embodiment, the first script is a python script, a perl script or a shell script.

[0068] As an embodiment, the second script is a skill script.

[0069] It should be noted that the analog circuit pin batch generation device provided by the present invention can execute the analog circuit pin batch generation method described in any of the above embodiments during specific operation, and has the technical effect corresponding to the method, which will not be elaborated in this embodiment.

[0070] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the analog circuit pin batch generation method, including: obtaining a behavioral model file of the analog circuit, the behavioral model file including the pin information of the analog circuit, the pin information at least including the pin direction, the pin direction is used to characterize the pin as an input pin or an output pin or an input-output pin; extracting the pin information from the behavioral model file, and outputting the other pin information except the pin direction to the corresponding pin file according to the pin direction; reading the pin file, and generating pins in batches in a preset circuit diagram according to the pin direction.

[0071] In addition, the logic instructions in the above-mentioned memory 630 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, etc. Various media that can store program codes.

[0072] On the other hand, the present invention also provides a computer program product, which includes a computer program, and 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 analog circuit pin batch generation method provided by the above methods, including: obtaining a behavioral level model file of the analog circuit, the behavioral level model file including the pin information of the analog circuit, the pin information at least including the pin direction, and the pin direction is used to characterize the pin as an input pin or an output pin or an input and output pin; extracting the pin information from the behavioral level model file, and outputting the other pin information other than the pin direction to the corresponding pin file according to the pin direction; reading the pin file, and batch generating pins in a preset circuit diagram according to the pin direction.

[0073] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the analog circuit pin batch generation method provided by the above-mentioned methods, including: obtaining a behavioral level model file of the analog circuit, the behavioral level model file including the pin information of the analog circuit, the pin information including at least the pin direction, and the pin direction is used to characterize the pin as an input pin or an output pin or an input and output pin; extracting the pin information from the behavioral level model file, and outputting the other pin information other than the pin direction to the corresponding pin file according to the pin direction; reading the pin file, and batch generating pins in a preset circuit diagram according to the pin direction.

[0074] 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.

[0075] 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, 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.

[0076] 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 method for batch generating analog circuit pins, characterized in that: include: Acquire a behavioral model file of an analog circuit, wherein the behavioral model file includes pin information of the analog circuit, wherein the pin information includes at least a pin direction, and the pin direction is used to characterize whether the pin is an input pin, an output pin, or an input-output pin; Extract the pin information from the behavior-level model file, and output the other pin information except the pin direction to a corresponding pin file according to the pin direction; The pin file is read, and pins are generated in batches in a preset circuit diagram according to the pin directions.

2. The method for batch generating analog circuit pins according to claim 1, characterized in that: The pin information also includes a pin name, a pin type, and a pin quantity. The extracting the pin information from the behavior-level model file and outputting the pin information to a corresponding pin file according to the pin direction includes: Extracting the pin type from the behavioral model file, and dividing the pins of the analog circuit into bus pins and single pins according to the pin type; Extracting a first pin name, a first pin direction, and a first pin quantity of the bus pin, and outputting the first pin name and the first pin quantity to a corresponding pin file according to the first pin direction; Extracting a second pin name and a second pin direction of the single pin, and outputting the second pin name to a corresponding pin file according to the second pin direction; The pin files include a first pin file corresponding to the input pin, a second pin file corresponding to the output pin, and a third pin file corresponding to the input and output pins.

3. The method for batch generating analog circuit pins according to claim 2, characterized in that: The step of reading the pin file and generating pins in batches in a preset circuit diagram according to the pin directions includes: Reading a first initial text in the first pin file, and outputting the first initial text to an input pin symbol of the circuit diagram based on a preset first initial coordinate; Reading a first intermediate text in the first pin file, and outputting the first intermediate text to the input pin symbol of the circuit diagram based on a first intermediate coordinate, wherein the first intermediate coordinate is obtained by moving down a first initial coordinate or a previous first intermediate coordinate; Reading a second initial text in the second pin file, and outputting the second initial text to the output pin symbol of the circuit diagram based on a preset second initial coordinate; Reading a second intermediate text in the second pin file, and outputting the second intermediate text to the output pin symbol of the circuit diagram based on a second intermediate coordinate, wherein the second intermediate coordinate is obtained by moving down the second initial coordinate or the previous second intermediate coordinate; Reading a third initial text in the third pin file, and outputting the third initial text to the input and output pin symbols of the circuit diagram based on a preset third initial coordinate; The third intermediate text in the third pin file is read, and the third intermediate text is output to the input and output pin symbols of the circuit diagram based on the third intermediate coordinates, where the third intermediate coordinates are obtained by moving down the third initial coordinates or the previous third intermediate coordinates.

4. The method for batch generating analog circuit pins according to any one of claims 1 to 3, characterized in that: The extracting the pin information from the behavior-level model file comprises: Extracting the pin information from the behavior-level model file based on a preset first script; Correspondingly, the reading of the pin file includes: The pin file is read based on a preset second script.

5. The method for batch generating analog circuit pins according to claim 4, characterized in that: The first script is a python script, a perl script or a shell script.

6. The method for batch generating analog circuit pins according to claim 4, characterized in that: The second script is a skill script.

7. A device for batch generating analog circuit pins, characterized in that: include: An acquisition module, used for acquiring a behavioral model file of an analog circuit, wherein the behavioral model file includes pin information of the analog circuit, wherein the pin information includes at least a pin direction, and the pin direction is used for characterizing whether the pin is an input pin, an output pin, or an input-output pin; An extraction module, used for extracting the pin information from the behavior-level model file, and outputting the other pin information except the pin direction to a corresponding pin file according to the pin direction; The generation module is used to read the pin file and batch generate pins in a preset circuit diagram according to the pin direction.

8. 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 computer program, the method for batch generating analog circuit pins as claimed in any one of claims 1 to 6 is implemented.

9. 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 method for batch generating analog circuit pins as claimed in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for batch generating analog circuit pins as claimed in any one of claims 1 to 6 is implemented.