Circuit simulation data collection method, system, medium and electronic device
Through custom target configuration files and general collection analysis scripts, the problem of low data collection efficiency in unit circuit design is solved, and flexible collection and analysis of multiple simulation data is realized, reducing manpower waste and improving efficiency.
Patent Information
- Application Number
- CN202310826640.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-06
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2043-07-06
AI Technical Summary
In the process of unit circuit design, different types of data acquisition methods in the prior art require a large number of modifications to the source code to adapt to changes in demand, resulting in waste of manpower and reducing data collection efficiency.
Provide a circuit simulation data collection method, by obtaining the collection analysis method script and circuit simulation data set, customize the target configuration file, including data collection instructions, call the script to parse the configuration file to collect target data, and support data display and rationality check , reduce dependence on scripts.
The collection function of a variety of different simulation data is realized, reducing the waste of manpower in source code modification caused by different user needs, improving the efficiency of circuit simulation data collection, and allowing users to intuitively analyze target data.
Smart Images

Figure CN116882345B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and relates to a circuit simulation technology, and in particular to a circuit simulation data collection method, system, medium and electronic equipment. Background Art
[0002] In the process of unit circuit design, it is necessary to collect simulation result data (results include voltage, current, timing, etc.). Nowadays, different types of data collection methods mostly use a one-to-one code method. When the collection content or results are increased or decreased, or the processing or display method is changed, a large amount of source code needs to be modified to complete the data collection. Maintaining the one-to-one source code will take a lot of manpower. Summary of the invention
[0003] The purpose of this application is to provide a circuit simulation data collection method, system, medium and electronic device to solve the problems raised in the above background technology.
[0004] In a first aspect, the present application provides a circuit simulation data collection method, which includes: obtaining a collection and analysis method script and a circuit simulation data set; customizing a target configuration file according to user needs and the collection and analysis method script; the target configuration file includes data collection instructions; calling the collection and analysis method script to parse the target configuration file to collect target data from the circuit simulation data set based on the data collection instructions; the target data corresponds to the data collection instructions.
[0005] In this application, by writing a set of collection and analysis scripts applicable to all simulation data collection, and customizing target configuration files according to user needs, it is possible to meet various different needs of users; when user needs change, there is no need to modify or rewrite the corresponding functional scripts to implement the corresponding collection and analysis functions, which saves manpower and improves the efficiency of simulation data collection.
[0006] In an implementation of the first aspect, the circuit simulation data set includes at least one simulation data; the customized target configuration file includes: customizing the same or different target configuration files for different simulation data; and customizing at least one target configuration file for the same simulation data.
[0007] In this implementation, for different simulation data, or for the same simulation data, multiple target configuration files can be customized according to user needs. No matter how many target configuration files are customized, it is only necessary to rely on a set of general collection and analysis method scripts to parse the target configuration files. There is no need to modify or rewrite new scripts for different target configuration files, thereby reducing manpower.
[0008] In an implementation of the first aspect, a data display method is also configured in the target configuration file; the circuit simulation data collection method also includes: displaying the target data according to the data display method; the data display method at least includes: a table and / or a web page.
[0009] In this implementation, by displaying the target data, the user can intuitively obtain the target data so as to analyze the target data.
[0010] In an implementation of the first aspect, data checking instructions and data rationality conditions are also configured in the target configuration file; the circuit simulation data collection method also includes: checking the rationality of the target data based on the data checking instructions and the data rationality conditions; if the target data meets the data rationality conditions, the target data is reasonable; if the target data does not meet the data rationality conditions, the target data is unreasonable.
[0011] In an implementation manner of the first aspect, a data format is also configured in the target configuration file; and a data value of the target data is represented by the data format.
[0012] In an implementation manner of the first aspect, the circuit simulation data set includes multiple data files; the data structures of the multiple data files are the same.
[0013] In a second aspect, the present application provides a circuit simulation data collection system, which includes: an acquisition module, which is used to acquire a collection and analysis method script and a circuit simulation data set; a customization module, which is used to customize a target configuration file according to user needs and the collection and analysis method script; the target configuration file includes data collection instructions; a data collection module, which is used to call the collection and analysis method script to parse the target configuration file, so as to collect target data from the circuit simulation data set based on the data collection instructions; the target data corresponds to the data collection instructions.
[0014] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory, so that the electronic device performs the above-mentioned circuit simulation data collection method.
[0015] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned circuit simulation data collection method when executed by an electronic device.
[0016] In a fifth aspect, the present application provides a circuit simulation data collection system, comprising a simulation tool and the above-mentioned electronic device; the simulation tool is connected to the electronic device, the simulation tool is used to simulate the circuit, generate a circuit simulation data set, and send the circuit simulation data set to the electronic device.
[0017] As described above, the circuit simulation data collection method, system, medium and electronic device described in the present application have the following beneficial effects:
[0018] Compared with the prior art, the present application provides a set of universal collection and analysis scripts, which, in conjunction with user-defined target configuration files, can realize the collection function of a variety of different simulation data, and the collection of different requirements for the same simulation data, thereby reducing the manpower waste caused by the need to modify the source code due to different user requirements and improving the efficiency of circuit simulation data collection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 Shown is a schematic diagram of a circuit simulation data collection method in the prior art.
[0020] Figure 2 Shown is a flow chart of a circuit simulation data collection method according to an embodiment of the present application.
[0021] Figure 3 Shown is a schematic diagram of a circuit simulation data collection method according to an embodiment of the present application.
[0022] Figure 4 Shown is a schematic diagram of the structure of a circuit simulation data collection system according to an embodiment of the present application.
[0023] Figure 5 Shown is a structural schematic diagram of a circuit simulation data collection system according to another embodiment of the present application.
[0024] Figure 6 Shown is a flow chart of a circuit simulation data collection method according to another embodiment of the present application.
[0025] Description of symbols
[0026] 41 Get Module
[0027] 42 Custom Modules
[0028] 43Data Collection Module
[0029] 51 Simulation Tools
[0030] 52 Electronic equipment
[0031] Steps S1 to S6 DETAILED DESCRIPTION
[0032] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0033] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0034] Taking the SRAM design process as an example, in the SRAM design process, bit cell simulation, instance timing margin, delay and other simulations will generate a large amount of data and need to be collected and analyzed for their rationality, and the results will be visualized. When the traditional one-to-one directory architecture and simulation data or collection objects change, data collection and rationality analysis are not very applicable; and the process does not summarize the collection and display methods that can be set through the configuration interface. When the collection or analysis method changes, it is necessary to modify or rewrite the corresponding function script to achieve the corresponding collection and analysis.
[0035] It should be noted that the circuit simulation data collection method, system, medium and electronic device provided in this application are not only suitable for the collection and analysis of simulation data in the SRAM design process, but can also be used for the collection and analysis of other IP development processes or similar result data; specifically, as long as there is data with a similar SRAM directory structure, data collection and analysis can be completed.
[0036] like Figure 1As shown, for simulation data 1, in order to obtain two different collection data 1 and collection data 2 (collection data 1 and collection data 2 here, namely "target data"), two collection and analysis method scripts need to be written accordingly, namely collection and analysis method script 1 and collection and analysis method script 2; for simulation data 2 (simulation data 1 and simulation data 2 here, both come from the "circuit simulation data set"), in order to obtain collection data 1 and collection data 2, another two collection and analysis method scripts need to be written, namely collection and analysis method script 3 and collection and analysis method script 4. That is, in the prior art, for different simulation data, even if the same data is to be collected therefrom, different collection and analysis method scripts need to be written; for the same simulation data, if different data is to be collected, different collection and analysis method scripts also need to be written. This method greatly increases the time for users to maintain scripts and reduces the efficiency of data collection.
[0037] See also Figures 2 to 6 The following embodiments of the present application provide a circuit simulation data collection method, system, medium and electronic device. Compared with the prior art, the present application provides a set of universal collection and analysis scripts, which, in conjunction with a user-defined target configuration file, can realize the collection function of a variety of different simulation data, and collect different requirements for the same simulation data, thereby reducing the manpower waste caused by the need to modify the source code due to different user requirements and improving the efficiency of circuit simulation data collection.
[0038] The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application.
[0039] like Figure 2 As shown, in one embodiment, the present application provides a circuit simulation data collection method, the circuit simulation data collection method comprising:
[0040] Step S1, obtaining a collection and analysis method script and a circuit simulation data set.
[0041] Specifically, in the process of designing a unit circuit, the circuit is simulated by a simulation tool to obtain a simulation data set of the circuit; the circuit simulation data set has a certain directory hierarchy rule; and the collection and analysis method script is written by the user himself.
[0042] In one embodiment, the circuit simulation data set includes a plurality of data files; the data structures of the plurality of data files are the same.
[0043] Step S2: Customize the target configuration file according to user needs and the collection and analysis method script.
[0044] Specifically, according to user needs, the target configuration file is customized according to the collection and analysis method script.
[0045] In one embodiment, the circuit simulation data set includes at least one type of simulation data, such as current, voltage, timing and other simulation data.
[0046] In one embodiment, the custom target configuration file includes:
[0047] (21) Customize the same or different target configuration files for different simulation data.
[0048] (22) For the same simulation data, customize at least one target configuration file.
[0049] In this embodiment, the target configuration file includes data collection instructions.
[0050] In one embodiment, the target configuration file also configures a data display method.
[0051] In one embodiment, the data display method at least includes but is not limited to: a table and / or a web page.
[0052] In one embodiment, the target configuration file also configures data checking instructions and data rationality conditions.
[0053] In one embodiment, the target configuration file also configures a data format.
[0054] It should be noted that the specific format of the data is not a condition to limit the present application. In actual applications, it can be set according to the specific application scenario, such as setting the data format to binary, decimal, etc.
[0055] It should be noted that the specific contents configured in the target configuration file are not used as conditions to limit this application. In actual applications, different target configuration files can be configured according to different needs of users in specific application scenarios to meet different needs of users.
[0056] Step S3, calling the collection and analysis mode script to parse the target configuration file, so as to collect target data from the circuit simulation data set based on the data collection instruction.
[0057] It should be noted that the target data corresponds to the data collection instruction; that is, the data collection instruction specifies which data to collect, and the target data collected in step S3 is this data.
[0058] like Figure 2 As shown, in one embodiment, the circuit simulation data collection method further includes:
[0059] Step S4: display the target data in accordance with the data display method.
[0060] It should be noted that by displaying the target data, it is convenient for the user (engineer) to view the target data intuitively, so that the user can view and analyze it in detail and re-simulate the circuit according to the analysis results.
[0061] like Figure 2 As shown, in one embodiment, the circuit simulation data collection method further includes:
[0062] Step S5: Check the rationality of the target data based on the data check instruction and the data rationality condition.
[0063] Specifically, determine whether the target data meets the data rationality conditions.
[0064] If the target data meets the data rationality condition, the target data is reasonable; if the target data does not meet the data rationality condition, the target data is unreasonable.
[0065] It should be noted that the specific content of the reasonable data conditions is not a condition to limit this application. In actual applications, it can be set according to specific application scenarios.
[0066] In one embodiment, the reasonable data condition is defined as: the data value of the target data is between a minimum threshold and a maximum threshold; wherein the minimum threshold is xxx1; and the maximum threshold is xxx2.
[0067] It should be noted that the specific values of the above-mentioned minimum threshold xxx1 and maximum threshold xxx2 are not used as conditions to limit the present application. In practical applications, they can be set according to specific application scenarios; as long as the maximum threshold is greater than the minimum threshold.
[0068] like Figure 2 As shown, in one embodiment, the circuit simulation data collection method further includes:
[0069] Step S6: Display the data rationality check results.
[0070] It should be noted that the data rationality check result is obtained through step S5; specifically, after the rationality of the target data is checked through step S5, it is equivalent to obtaining the data rationality check result, and the data rationality check result includes: reasonable and unreasonable.
[0071] In one embodiment, the reasonableness check result for unreasonable data also includes two situations: too large and too small.
[0072] Specifically, if the data value of the target data is greater than the maximum threshold, the target data is too large; if the data value of the target data is less than the minimum threshold, the target data is too small.
[0073] It should be noted that the data value of the target data is represented by the data format.
[0074] The protection scope of the circuit simulation data collection method described in the embodiment of the present application is not limited to the execution order of the steps listed in the present embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.
[0075] The circuit simulation data collection method of the present application is further explained below through specific embodiments.
[0076] Embodiment 1
[0077] like Figure 3 As shown, in one embodiment, in response to the traditional circuit simulation data extraction method, the present application proposes a user-configurable circuit simulation data collection method, which realizes the collection and analysis verification of circuit simulation data i_leak_max, and improves the simplicity of circuit simulation data collection and analysis.
[0078] The contents of the customized configuration file are as follows:
[0079] set path sim_path
[0080] set file "${path} / * / cell_${pvt}.ms0"
[0081] Set pattern "pvt:(\S+)"
[0082] set data_format "${i_leak_max}:isdigital"
[0083] set max_val "${i_leak_max}:1e-05"
[0084] set min_val "${i_leak_max}:1e-09"
[0085] set rpt "report.html report.csv report.xls"
[0086] set table_title "PVT; meas_name; meas_res; Status"
[0087] set table_value "${pvt}; i_leak_max; ${i_leak_max::res}; ${i_leak_max::status}"
[0088] 1. Read and parse the above custom configuration file
[0089] a) Analysis
[0090] set pattern "pvt:(\S+)"
[0091] Save to data structure {pattern:{pvt:“(\S+)”}}
[0092] b) Analysis
[0093] set file "sim_path / * / cell_${pvt}.ms0"
[0094] Save to data structure {file: "sim_path / * / cell_{$pvt}.ms0"
[0095] c) Analysis
[0096] set data_format "${i_leak_max}:isdigital"
[0097] set max_val "${i_leak_max}:1e-05"
[0098] set min_val“${i_leak_max}:1e-09
[0099] Save to data structure {status:{${i_leak_max}:{data_format:"isdigital",max_val:"1e-05",min_val:"1e-09"}}}
[0100] d) Analysis
[0101] set rpt "report.html report.csv report.xls"
[0102] Save to data structure {rpt:[report.html,report.csv,report.xls]}
[0103] e) Analysis
[0104] set table_title "PVT; meas_name; meas_res:Status"
[0105] set table_value "${pvt}; i_leak_max; ${i_leak_max::res}; ${i_leak_max::status}"
[0106] Save to data structure
[0107] {table_title:[PVT,meas_name,meas_res,Status]}
[0108] {table_value:[${ptv},i_leak_max,${i_leak_max::res},${i_leak_max::status}]}
[0109] 2. Complete data collection and analysis according to the configuration file, and generate corresponding data structure data
[0110] a) List all files according to the file setting, replace variables in the file such as ${pvt} with *, and use command to replace;
[0111] b) Loop through the files in a)
[0112] i. Parse the file name: Get the relevant variable content according to the regular expression in the pattern data structure and generate the data structure: {var:{${pvt}:ff_1.65v_m40c}}
[0113] ii. Generate the row data structure corresponding to the file {i_leak_max:[${pvt},i_leak_max,${ileak_max::res},${i_leak_max::status}]} according to the content of table_value
[0114] iii. Parse the content according to the file format and get the data structure {var:{${i_leak_max}:{res:1.026e-06}}
[0115] iv. The obtained variable parameters are combined with the status related structure mentioned in part 1-c) to complete the judgment of the data status and generate the data structure {var:{${i_leak_max}:{res:1.026e-06,status:PASS}}
[0116] v. The current var structure is as follows
[0117] {var:{${pvt}:ff_1.65v_m40c,${i_leak_max}:{res:1.026e-06,status:PASS}}
[0118] Traverse the row data structure, replace variables, and generate the row data structure after data filling
[0119] {table:[ff_1.65v_m40c,i_leak_max,1.026e-06,PASS]}
[0120] 3. Finally, write out the data according to the report format requirements and generate all format files
[0121] a) Read the final table structure data in step 2, analyze the data format of {rpt:[report.xls]} and output the structure data.
[0122] As shown in Table 1, there are 3 target data collected, and their corresponding data values are 1.026e-06, 6.786e-11, and 4.6404e-04. The rationality Status of these three data values are respectively reasonable (indicated by "PASS" in Table 1), too small (less than the minimum threshold 1e-09, indicated by "FAIL(F)" in Table 1), and too large (greater than the maximum threshold 1e-05, indicated by "FAIL(R)" in Table 1).
[0123] Table 1
[0124] Index PVT meas_name Value Status 1 ff_1.65v_m40c i_leak_max 1.026e-06 PASS 2 tt_1.5v_m40c i_leak_max 6.786e-11 FAIL(F) 3 ss_1.35v_125c i_leak_max 4.6404e-04 FAIL(R)
[0125] It should be noted that
[0126] 1. The first row in Table 1 is the set table_title "PVT; meas_name, Status" set in the configuration file. The index in the first column is the sequence number, which is added by default.
[0127] 2. The second to fourth rows of Table 1 are the collected simulation data, which are generated by set table_value "${pvt}; i_leak_max; ${i_leak_max::res}; ${i_leak_max::status}" in the configuration file;
[0128] 3. Take the simulation data collected in the second row of Table 1 as an example:
[0129] a)PVT=> corresponds to ${pvt} in table_value, which is obtained by
[0130] set file "${path} / * / cell_${pvt}.ms0"
[0131] set pattern "pvt:(\S+)"
[0132] Get the generated
[0133] The first sentence is the directory structure of the simulation data;
[0134] The second sentence is the regular matching rule of pvt;
[0135] The matching process is as follows:
[0136] First, list all simulation data files that match file. The data in the second row of Table 1 can be such file, sim_path / leak / cell_ff_1.65v_m40c.ms0
[0137] According to the regular rule, the value corresponding to pvt is ff_1.65v_m40c
[0138] b) i_leak_max in table_value corresponding to meas_name
[0139] c)Value corresponds to ${i_leak_max::res} in table_value
[0140] Parsing sim_path / leak / cell_ff_1.65v_m40c.ms0, the value of ${i_leak_max::res} is 1.026e-06;
[0141] d) Status => It is obtained by the configuration file
[0142] set data_format "${i_leak_max}:isdigital"; data format setting
[0143] set max_val "${i_leak_max}:1e-05"; maximum threshold setting
[0144] set min_val "${i_leak_max}:1e-09"; minimum threshold setting
[0145] Based on these settings, the data format and size of ${i_leak_max::res} are automatically determined to be reasonable;
[0146] The data in the second row of Table 1 is 1.036e-06, which is between 1e-05 and 1e-09. PASS means pass;
[0147] The data in the third row of Table 1 is smaller than the minimum threshold, so the result is FAIL (F);
[0148] The data in the fourth row of Table 1 is larger than the maximum threshold, so the result is FAIL(R).
[0149] like Figure 3 As shown, in this embodiment, a set of collection and analysis scripts is provided. For simulation data 1, in order to obtain two different collection data 1 and collection data 2 (collection data 1 and collection data 2 here are "target data"); for simulation data 2 (simulation data 1 and simulation data 2 here are both from "circuit simulation data set"), in order to obtain collection data 1 and collection data 2, only corresponding configuration files need to be customized (corresponding to Figure 3 Then, the set of collection and analysis scripts is called to parse different configuration files respectively, so as to realize the collection of corresponding data. Figure 1 Compared with the corresponding embodiment in , the user saves time in maintaining scripts and improves the efficiency of data collection.
[0150] Embodiment 2
[0151] In one embodiment, the content of the customized configuration file is as follows:
[0152] set path sim_path
[0153] set file "${path} / * / cell_${pvt}.measure"
[0154] Set pattern "pvt:(\S+);pin:(\S+);A:(${pin}_mrA);B:(${pin}_mrB)"
[0155] set data_format "${A},${B}:isdigital"
[0156] set min_val "${table_5}:0"
[0157] set rpt "report.html report.csv report.xls"
[0158] set table_title "PVT; pinname; A; B; ratio; status"
[0159] set table_value "${pvt}; ${pin}; ${A::res}; ${B::res}; 0.9*${A::res}-1.1*${B::res},${table_5::status}"
[0160] The following is an example of a measure file:
[0161] 1Exported variables from results directory: 2
[0163] 3date :10:12:30AM,Tue Feb 14,2023
[0164] 4design:.title***
[0165] 5simulator:mdl
[0166] 6version:21.1.0.462 7 8
[0169] 9Measurement Name :timeSweep
[0170] 10Analysis Type: tran
[0171] 11port1_mrA=1.628e-10
[0172] 12port1_mrB=1.536e-10
[0173] 13port2_mrA=1.806e-10
[0174] 14port2_mrB=1.423e-10
[0175] 15port3_mrA=1.748e-10
[0176] 16port3_mrB=1.489e-10
[0177] In this embodiment, the collected target data is shown in Table 2.
[0178] Table 2
[0179] Index PVT pinname A B ratio status 1 ff_1.65v_m40c Port1 1.628e-10 1.536e-10 -0.2244e-10 FAIL(F) 2 ff_1.65v_m40c Port2 1.806e-10 1.423e-10 0.0631e-10 PASS 3 ff_1.65v_m40c Port3 1.748e-10 1.489e-10 -0.0647e-10 FAIL(F)
[0180] It should be noted that
[0181] 1. The first row in Table 1 is set table_title "PVT; pinname; A; B; ratio; status" set in the configuration file. The index in the first column is the sequence number, which is added by default.
[0182] 2. The second to fourth rows in Table 2 are the collected simulation data, which are generated by set table_value "${pvt};${pin};${A::res};${B::res};0.9*${A::res}-1.1*${B::res};${table_5_all::status}" in the configuration file;
[0183] 3. Take the simulation data collected in the second row of Table 2 as an example:
[0184] a)PVT=> corresponds to ${pvt} in table_value, which is obtained by setfile "${path} / * / cell_${pvt}.measure" in the configuration file
[0185] set pattern "pvt:(\S+)"
[0186] Get the generated
[0187] The first sentence is the directory structure of the simulation data;
[0188] The second sentence is the regular matching rule of pvt;
[0189] The matching process is as follows:
[0190] First, list all simulation data files that match file. The data in the second row of Table 2 can be such a file, sim_path / leak / cell_ff_1.65v_m40c.measure
[0191] According to the regular rule, the value corresponding to pvt is ff_1.65v_m40c
[0192] b)${pin} in table_value corresponding to pinname, according to the above measure file, matches pin as the sequence [port1, port2, port3]
[0193] c) A corresponds to ${A::res} in table_value, and its value is [port1_mrA, port2_mrA, port3_mrA] in the measure file.
[0194] d) B corresponds to ${B::res} in table_value, and its value is [port1_mrB, port2_mrB, port3_mrB] in the measure file.
[0195] e) Ratio is the value according to the formula 0.9*${A::res}-1.1*${B::res}
[0196] f) Status=>It is obtained by set min_val "${table_5}:0" in the configuration file; determine whether the data corresponding to the 6th column, i.e. ratio, is >=0; if >=0, then PASS; if <0, then FAIL.
[0197] It should be noted that the development of the IC full customization process is often accompanied by a large amount of simulation data. The flexibility of data collection and automated judgment is crucial for subsequent data analysis. The subsequent automated data analysis of structured data that is quickly collected can also be expanded in many ways to help quickly and clearly locate problem points in the IC full customization process.
[0198] like Figure 6 As shown, in one embodiment, the circuit simulation data collection method of the present application is applied to collect parasitic parameters; specifically as follows:
[0199] First, the design specifications are defined according to user requirements; then, a circuit diagram is drawn based on the design specifications to generate a subcircuit; then, a circuit simulation is performed on the subcircuit to obtain simulation data; then, the simulation data is collected using the circuit simulation data collection method of the present application to obtain parasitic parameters.
[0200] It should be noted that the steps of collecting the simulation data using the circuit simulation data collection method of the present application and obtaining the parasitic parameters are as follows:
[0201] (1) Parse the configuration file command, complete command analysis, and convert it into the original command data structure of the data extraction method command;
[0202] (2) completing the data collection process according to the collection-related command structure set in the original command data structure, and generating an original collection data structure data set for the collected data;
[0203] (3) Based on the original collection data set and the original command data set, the relevant command set is calculated to complete the collection data calculation, and the calculation data set is generated by inserting the calculation data into the original collection data set;
[0204] (4) After the data set is calculated, the command set needs to be judged based on the data of the original command data set to complete the data correctness judgment. The command set completes the rationality judgment of the collected data and inserts the data state into the calculated data set to generate a data set containing the data state;
[0205] (5) According to the output command related command set in the original command data set, the processing data state data set is processed to complete the generation of result data (i.e., parasitic parameters).
[0206] It should be noted that if Figure 6 As shown, after the parasitic parameters are collected, the above sub-circuit is re-simulated again according to the parasitic parameters; through iterative simulation, the accuracy and reliability of the simulation results are improved.
[0207] The present application provides the above-mentioned circuit simulation data collection method, which is convenient for R&D personnel to customize the collection of simulation data during the unit circuit design process, and quickly complete the calculation and processing of the collected data to generate tables and process them into various charts without the need for process developers to modify the source code, thereby facilitating data analysis, review and retrospection of the R&D process.
[0208] The embodiment of the present application also provides a circuit simulation data collection system, which can implement the circuit simulation data collection method described in the present application. However, the implementation device of the circuit simulation data collection method described in the present application includes but is not limited to the structure of the circuit simulation data collection system listed in the present embodiment. All structural deformations and replacements of the prior art made according to the principles of the present application are included in the protection scope of the present application.
[0209] like Figure 4 As shown, in one embodiment, the present application provides a circuit simulation data collection system, the circuit simulation data collection system comprising:
[0210] An acquisition module 41, the acquisition module is used to acquire a collection and analysis method script and a circuit simulation data set;
[0211] A custom module 42, the custom module is used to customize the target configuration file according to user needs and the collection and analysis method script; the target configuration file includes data collection instructions;
[0212] A data collection module 43, the data collection module is used to call the collection and analysis mode script to parse the target configuration file, so as to collect target data from the circuit simulation data set based on the data collection instruction; the target data corresponds to the data collection instruction.
[0213] It should be noted that the working principles of the acquisition module 41 , the custom module 42 and the data collection module 43 are the same as the working principles of the above-mentioned circuit simulation data collection method, so they are not described in detail here.
[0214] In one embodiment, the present application also provides an electronic device, which includes: a processor and a memory; the memory is used to store computer programs; the processor is used to execute the computer programs stored in the memory, so that the electronic device performs the above-mentioned circuit simulation data collection method.
[0215] In one embodiment, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by an electronic device, the above-mentioned circuit simulation data collection method is implemented.
[0216] A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above-mentioned embodiment can be completed by instructing a processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above-mentioned storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a digital video disc (DVD)), or a semiconductor medium (for example, a solid-state disk (SSD)), etc.
[0217] like Figure 5 As shown, in one embodiment, the present application also provides a circuit simulation data collection system, including a simulation tool 51 and the above-mentioned electronic device 52.
[0218] Specifically, the simulation tool 51 is connected to the electronic device 52 , and the simulation tool 51 is used to simulate the circuit, generate a circuit simulation data set, and send the circuit simulation data set to the electronic device 52 .
[0219] In the several embodiments provided in the present application, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules / units is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules or units, which can be electrical, mechanical or other forms.
[0220] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in the various embodiments of the present application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0221] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0222] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0223] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A circuit simulation data collection method, characterized in that: For collecting parasitic parameters, the circuit simulation data collection method comprises: Acquire a collection and analysis method script and a circuit simulation data set, wherein the circuit simulation data set includes at least one type of simulation data, and the method for acquiring the simulation data includes: drawing a circuit diagram based on design specifications to generate a subcircuit; performing circuit simulation on the subcircuit to acquire the simulation data; Customizing a target configuration file according to user needs and the collection and analysis method script; the target configuration file includes data collection instructions; the customized target configuration file includes: customizing the same or different target configuration files for different simulation data, and customizing at least one target configuration file for the same simulation data; Calling the collection and analysis mode script to parse the target configuration file, so as to collect target data from the circuit simulation data set based on the data collection instruction; the target data corresponds to the data collection instruction, and the target data is a parasitic parameter; the circuit simulation data set includes a plurality of data files; the data structures of the plurality of data files are the same; Calling the collection and analysis mode script to parse the target configuration file to collect target data from the circuit simulation data set based on the data collection instruction includes: Parse the configuration file command to perform command analysis and obtain the original command data structure; completing a data collection process according to the collection-related command structure set in the original command data structure, and generating an original collection data set for the collected data; Complete the collected data calculation based on the original collected data set combined with the calculation related command set in the original command data set, and insert the calculation data into the original collected data set to generate the calculation data set; The data correctness judgment is completed according to the data judgment command set in the original command data set, the rationality of the collected data is judged according to the command set, and the data state is inserted into the calculation data set to generate a data set containing the data state; The data set including the data state is processed according to the output command related command set in the original command data set to generate the parasitic parameters.
2. The circuit simulation data collection method according to claim 1, characterized in that: The target configuration file also configures a data display method; The circuit simulation data collection method further includes: displaying the target data according to the data display method; the data display method at least includes: a table and / or a web page.
3. The circuit simulation data collection method according to claim 1, characterized in that: The target configuration file also configures data check instructions and data rationality conditions; The circuit simulation data collection method further includes: checking the rationality of the target data based on the data checking instruction and the data rationality condition; If the target data meets the data reasonableness condition, the target data is reasonable; If the target data does not satisfy the data rationality condition, the target data is unreasonable.
4. The circuit simulation data collection method according to claim 1, characterized in that: The target configuration file also configures a data format; the data value of the target data is represented by the data format.
5. A circuit simulation data collection system, characterized in that: The circuit simulation data collection system comprises: An acquisition module, the acquisition module is used to acquire a collection and analysis method script and a circuit simulation data set, the circuit simulation data set includes at least one kind of simulation data, and the method for acquiring the simulation data includes: drawing a circuit diagram based on a design specification to generate a subcircuit; performing circuit simulation on the subcircuit to acquire the simulation data; A custom module, the custom module is used to customize the target configuration file according to user needs and the collection and analysis method script; the target configuration file includes data collection instructions; the customized target configuration file includes: for different simulation data, customize the same or different target configuration files, customize at least one target configuration file for the same simulation data; A data collection module, the data collection module is used to call the collection and analysis mode script to parse the target configuration file, so as to collect target data from the circuit simulation data set based on the data collection instruction; the target data corresponds to the data collection instruction, and the target data is a parasitic parameter; the circuit simulation data set includes a plurality of data files; the data structures of the plurality of data files are the same; The data collection module calls the collection and analysis mode script to parse the target configuration file to collect target data from the circuit simulation data set based on the data collection instruction, including: Parse the configuration file command to perform command analysis and obtain the original command data structure; completing a data collection process according to the collection-related command structure set in the original command data structure, and generating an original collection data set for the collected data; Complete the collected data calculation based on the original collected data set combined with the calculation related command set in the original command data set, and insert the calculation data into the original collected data set to generate the calculation data set; The data correctness judgment is completed according to the data judgment command set in the original command data set, the rationality of the collected data is judged according to the command set, and the data state is inserted into the calculation data set to generate a data set containing the data state; The data set including the data state is processed according to the output command related command set in the original command data set to generate the parasitic parameters.
6. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory, so that the electronic device executes the circuit simulation data collection method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by an electronic device, the circuit simulation data collection method according to any one of claims 1 to 4 is implemented.
8. A circuit simulation data collection system, characterized in that: comprising a simulation tool and the electronic device as claimed in claim 6; The simulation tool is connected to the electronic device, and is used to simulate the circuit, generate a circuit simulation data set, and send the circuit simulation data set to the electronic device.
Citation Information
Patent Citations
Script generation method, device and apparatus and storage medium
CN112380239A
Page operation data processing method and processing system
CN112486708A
Verification method and device of integrated circuit, computer equipment and storage medium
CN114462338A
Simulation data analysis method and device, terminal and storage medium
CN114580146A
Automatic debugging method, device and system, terminal and storage medium
CN115809197A
