A mixed-signal simulation large-scale parameter synchronization method and system
Patent Information
- Application Number
- CN202610788423.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-03
- Publication Date
- 2026-08-21
AI Technical Summary
[0007]本发明旨在克服现有混合信号仿真参数处理过程中存在的人工识别数据格式效率低、无效数据容易误导入、参数结构转换不统一、平台参数同步前后缺少校验确认等不足,提供一种混合信号仿真大规模参数同步方法及系统
[0040]第一,本发明通过扫描Excel参数文件中工作表首列字段并结合预设格式标识,能够自动识别LUT格式数据和REGMAP格式数据,减少人工判断数据格式的操作,提高大规模参数文件的处理效率。
Smart Images

Figure CN122616136A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic design automation technology, and in particular to a parameter data processing and synchronization technology for mixed-signal design platforms. Specifically, it relates to a method and system for large-scale parameter synchronization of mixed-signal simulation, which identifies, parses, filters, and performs structural transformation on look-up table (LUT) format data and register map (REGMAP) format data in Excel parameter files, and performs batch synchronization with the mixed-signal design platform. Background Technology
[0002] In the field of Electronic Design Automation (EDA), the simulation and verification process of mixed-signal circuits typically involves the configuration, maintenance, and synchronization of a large amount of parameter data. When performing mixed-signal simulations, designers often need to configure different types of Excel parameter files based on design specifications, register definitions, look-up table (LUT) data, and simulation scenarios, and then import the relevant parameters into the mixed-signal design platform for subsequent simulation, verification, and debugging.
[0003] In practical engineering, the above parameter data is usually maintained in the form of Excel files. These Excel parameter files may contain multiple data organization formats, such as LUT format data used to describe lookup table relationships, and Register Map (REGMAP) format data used to describe register names, bit widths, default values, and attribute information. Different data formats differ in field structure, data meaning, parameter hierarchy, and platform writing requirements, necessitating different parsing methods and conversion rules.
[0004] Current methods for processing mixed-signal simulation parameters typically rely on manual operation. Designers must first manually determine the data format in the Excel file, then manually filter valid data, verify parameter names, check bit widths and default values, and finally write the parameters into the mixed-signal design platform via copying, pasting, script processing, or platform interface calls. This method is sufficient for small parameter sizes, but when the number of parameters is large, there are multiple sources of Excel files, and multiple engineers are collaboratively maintaining parameter files, problems such as inconsistent data format recognition, blank lines or invalid fields being misused, incorrect parameter bit widths or default values, and inconsistencies between existing parameters on the platform and the parameters to be written can easily occur.
[0005] Furthermore, the accuracy of mixed-signal simulation parameters directly affects the simulation results. If invalid cells, blank rows, abnormal parameter identifiers, incorrect bit widths, or incorrect default values from the Excel parameter file are written to the design platform without effective identification and filtering, it may lead to platform parameter configuration failures, simulation anomalies, or result deviations. For parameter files containing both LUT and REGMAP data, if a unified data identification, parsing, filtering, conversion, and synchronization mechanism is lacking, designers still need to repeatedly perform manual checks, reducing parameter configuration efficiency and increasing the risk of inconsistent parameter versions in collaborative scenarios.
[0006] Automated solutions for chip verification or register data processing already exist in the prior art. For example, patent document CN115017869A discloses a method and system for rapid generation of UVM register models, where UVM stands for Universal Verification Methodology. This solution converts a register Excel spreadsheet into UVM RAL model information and generates the model required for the UVM verification environment based on the converted RAL model information. The published text indicates that this solution includes opening the Excel document using a Python script, viewing the sheet, obtaining the table size, traversing rows to search for valid cells, and parsing the valid cells into text-formatted UVM RAL model information. Summary of the Invention
[0007] This invention aims to overcome the shortcomings of existing mixed-signal simulation parameter processing methods, such as low efficiency in manually identifying data formats, susceptibility to invalid data misinterpretation, inconsistent parameter structure conversion, and lack of verification and confirmation before and after platform parameter synchronization. It provides a method and system for large-scale parameter synchronization in mixed-signal simulation. This invention can automatically identify, classify, parse, filter validity, map and convert parameters in LUT and REGMAP formats from Excel parameter files, and confirm platform synchronization, thereby improving the efficiency of mixed-signal simulation parameter configuration and the accuracy of parameter synchronization.
[0008] To achieve the above objectives, the present invention adopts the following technical solution:
[0009] A method for large-scale parameter synchronization in mixed-signal simulation includes the following steps:
[0010] S1. Obtain at least one Excel parameter file and its corresponding data processing range;
[0011] S2. Traverse the worksheets in the Excel parameter file and scan the first column of the worksheet. Identify the data format of the Excel parameter file according to the preset format identifier. When a lookup table identifier is identified, the data area containing the lookup table identifier is identified as LUT format data. When a register mapping identifier is identified, the data area containing the register mapping identifier is identified as REGMAP format data.
[0012] S3. Based on the identified data format, call the corresponding parsing rules to extract input variables, data signals, output variables and their relationships from LUT format data, and extract register names, parameter bit widths, default values and attribute fields from REGMAP format data.
[0013] S4. Perform validity filtering on the extracted results. Validity filtering includes cell null value detection, deletion of missing rows in core fields, and parameter identifier validity verification to obtain a set of valid parameters.
[0014] S5. Convert the effective parameter set into a key-value pair parameter mapping structure supported by the mixed-signal design platform. Here, the parameter bit width in REGMAP format data is encapsulated as parameter attributes, and the input variables, data signals and output variables in LUT format data are organized into a lookup table parameter structure.
[0015] S6. Obtain the current parameters in the mixed-signal design platform, perform consistency and dimension verification between the key-value pair parameter mapping structure and the current parameters, and write the key-value pair parameter mapping structure into the mixed-signal design platform in batches after the verification passes.
[0016] S7. After writing is complete, read back the parameters in the mixed-signal design platform and generate parameter synchronization results.
[0017] Furthermore, in S1, the data processing scope includes user-specified row ranges, column ranges, and / or worksheet ranges.
[0018] Optionally, if the user-specified data processing range is not received, the valid worksheet range in the Excel parameter file is used as the default data processing range.
[0019] Furthermore, in S2, the preset format identifiers include the LUT ID identifier and the REG NAME identifier.
[0020] In one implementation, when a LUT ID identifier is identified in the first column of the worksheet, the corresponding area in the worksheet is determined to be LUT format data; when a REG NAME identifier is identified in the first column of the worksheet, the corresponding area in the worksheet is determined to be REGMAP format data.
[0021] Furthermore, in S3, parsing the LUT format data includes: determining the lookup table data area based on the lookup table identifier, extracting the input variables, data signals, and output variables from the lookup table data area, and generating LUT parameter records according to the correspondence between the input variables and the data signals and output variables.
[0022] Furthermore, in S3, parsing REGMAP format data includes: determining the register data area based on the register mapping field, extracting the register name, parameter bit width, default value, and attribute fields by row, and establishing a mapping relationship between the register name and the corresponding parameter.
[0023] Furthermore, in S4, cell null value detection includes detecting cells containing None, NaN, empty strings, and cells containing only blank characters.
[0024] Furthermore, the deletion of missing core field rows includes: for REGMAP format data, deleting the corresponding row when both the register name field and the parameter bit width field are invalid; for LUT format data, deleting the corresponding row when the preset core fields in the input variable field, data signal field, and output variable field are invalid.
[0025] Furthermore, the parameter identifier validity check includes removing parameter identifiers that contain special characters or have abnormal lengths.
[0026] Furthermore, in S4, when performing validity filtering on REGMAP format data, the parameter bit width field and the default value field are also validated. The parameter bit width field is validated to be a positive integer, and the default value field is validated to be a decimal value or a hexadecimal value.
[0027] Furthermore, in S5, converting the set of valid parameters into a key-value pair parameter mapping structure supported by the mixed-signal design platform includes: using the parameter name as the key and the parameter value, as well as at least one of the parameter bit width, parameter attribute, and parameter source as the value, to generate a parameter dictionary for batch writing to the mixed-signal design platform.
[0028] Furthermore, in S6 and S7, the consistency check includes matching the parameter names in the key-value pair parameter mapping structure with the current parameter names in the mixed-signal design platform to identify new parameters, parameters to be updated, and conflicting parameters.
[0029] Furthermore, dimensional verification includes verifying the number of parameters to be written, the format of parameter values, and, when the parameters to be written include parameter bit width, verifying whether the parameter bit width meets the writing requirements of the mixed-signal design platform.
[0030] Optionally, when batch writing fails, exception information is recorded and an error message is generated so that the user can locate the reason for the parameter synchronization failure.
[0031] The present invention also provides a large-scale parameter synchronization system for mixed signal simulation, including a file acquisition module, a format recognition module, a parameter parsing module, a validity filtering module, a parameter conversion module, a platform synchronization module, and a readback confirmation module.
[0032] The file acquisition module is used to acquire at least one Excel parameter file and its corresponding data processing range, and then send the Excel parameter file and data processing range to the format recognition module.
[0033] The format recognition module is used to traverse the worksheets in the Excel parameter file, scan the first column of the worksheet, identify the data format of the Excel parameter file according to the preset format identifier, generate the format recognition result, and send the format recognition result and the corresponding data area to the parameter parsing module.
[0034] The parameter parsing module is used to call the corresponding parsing rules based on the format recognition results, parse LUT format data and REGMAP format data respectively, generate an initial parameter set, and send the initial parameter set to the validity filtering module.
[0035] The validity filtering module is used to filter the initial parameter set to obtain a valid parameter set, and then send the valid parameter set to the parameter conversion module.
[0036] The parameter conversion module is used to convert the valid parameter set into a key-value pair parameter mapping structure supported by the mixed-signal design platform, and send the key-value pair parameter mapping structure to the platform synchronization module.
[0037] The platform synchronization module is used to obtain the current parameters in the mixed-signal design platform, perform consistency and dimension verification between the key-value pair parameter mapping structure and the current parameters, and write the key-value pair parameter mapping structure into the mixed-signal design platform in batches after the verification is passed, and send the writing completion information to the readback confirmation module.
[0038] The readback confirmation module is used to read back the parameters in the mixed-signal design platform after the write is completed, and generate parameter synchronization results based on the comparison results between the readback parameters and the key-value pair parameter mapping structure.
[0039] Compared with the prior art, the present invention has at least the following beneficial effects:
[0040] First, by scanning the first column of the worksheet in the Excel parameter file and combining it with preset format identifiers, the present invention can automatically identify LUT format data and REGMAP format data, reducing the need for manual data format judgment and improving the processing efficiency of large-scale parameter files.
[0041] Second, this invention calls corresponding parsing rules according to different data formats to extract input variables, data signals, output variables and their relationships in LUT data, and extracts register names, parameter bit widths, default values and attribute fields in REGMAP data, so that parameter data from different sources and with different structures can be uniformly organized.
[0042] Third, this invention performs cell null value detection, core field missing row deletion, and parameter identifier legality verification before writing parameters to the platform. It also further verifies the parameter bit width field and default value field for REGMAP format data, which helps to reduce the situation where blank rows, abnormal parameter identifiers, incorrect bit widths, or incorrect default values are written to the mixed-signal design platform.
[0043] Fourth, this invention converts the effective parameter set into a key-value pair parameter mapping structure supported by the mixed-signal design platform, enabling LUT format data and REGMAP format data to be batch synchronized according to a unified data structure, thereby improving the consistency of parameter conversion and platform writing.
[0044] Fifth, before batch writing to the mixed-signal design platform, this invention performs consistency and dimension verification between the parameters to be written and the current parameters of the platform, and reads back the platform parameters to generate synchronization results after writing is completed. This helps to confirm the parameter writing status and reduces the risk of inconsistent parameter versions when multiple people are collaboratively maintaining parameter files.
[0045] Sixth, this invention, through an abnormal information recording and error prompting mechanism, can assist users in locating the source of errors when batch writing fails, thereby improving the stability and maintainability of the mixed-signal simulation parameter synchronization process. Attached Figure Description
[0046] Figure 1 This is an overall flowchart of the mixed-signal simulation large-scale parameter synchronization method provided in the embodiments of the present invention;
[0047] Figure 2 This is a flowchart of Excel parameter file format recognition provided in an embodiment of the present invention;
[0048] Figure 3 A flowchart illustrating the classification, parsing, and validity filtering of LUT and REGMAP format data provided in this embodiment of the invention;
[0049] Figure 4 A flowchart illustrating the conversion of a valid parameter set into a key-value pair parameter mapping structure provided in embodiments of the present invention;
[0050] Figure 5 This is a flowchart illustrating parameter synchronization and readback confirmation between the key-value pair parameter mapping structure and the mixed-signal design platform provided in this embodiment of the invention.
[0051] Figure 6 The structural block diagram of a large-scale parameter synchronization system for hybrid signal simulation provided in an embodiment of the present invention is shown. Detailed Implementation
[0052] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0053] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0054] Example 1:
[0055] This embodiment provides a method and system for synchronizing large-scale parameters in mixed-signal simulation, applicable to scenarios where parameter data from an Excel parameter file is synchronized to a mixed-signal design platform. The Excel parameter file may include LUT format data and / or REGMAP format data. LUT format data is used to represent parameter relationships of lookup table type, and REGMAP format data is used to represent register mapping information such as register name, parameter bit width, default value, and attribute fields.
[0056] like Figure 1 As shown in the figure, the method for synchronizing large-scale parameters in mixed-signal simulation provided in this embodiment includes the following steps.
[0057] S1. Obtain at least one Excel parameter file and its corresponding data processing range.
[0058] Specifically, users can import one or more Excel parameter files via file selection, or batch import multiple Excel parameter files from different sources. The data processing range can include user-specified row ranges, column ranges, and / or worksheet ranges. For example, a user can specify rows m to n of a worksheet as the processing area, or specify multiple worksheets as the processing objects. When the user-specified data processing range is not received, a valid worksheet range from the Excel parameter file can be used as the default data processing range. The valid worksheet range can be determined based on non-empty rows, non-empty columns, or areas containing preset format identifiers.
[0059] S2. Traverse the worksheets in the Excel parameter file and scan the first column of the worksheets to identify the data format of the Excel parameter file according to the preset format identifier.
[0060] like Figure 2 As shown, during the format recognition process, after receiving the Excel parameter file and data processing range, the system sequentially selects the current worksheet and scans the first column of the current worksheet. Preset format identifiers include LUT ID and REGNAME identifiers. When a LUT ID is detected in the first column of the worksheet, the data area containing the LUT ID is identified as LUT format data; when a REG NAME is detected in the first column of the worksheet, the data area containing the REG NAME is identified as REGMAP format data.
[0061] In one implementation, the system first determines whether a LUT ID exists in the current worksheet. If it exists, the system records the format recognition result as LUT format data and the corresponding data area. If no LUT ID is recognized, the system continues to determine whether a REG NAME exists in the current worksheet. If it exists, the system records the format recognition result as REGMAP format data and the corresponding data area. If neither a LUT ID nor a REG NAME is recognized in the current worksheet, the system continues to traverse the next worksheet. When no preset format identifier is recognized in any of the worksheets, an unrecognized result or a format error message can be generated.
[0062] S3. Based on the identified data format, call the corresponding parsing rules to parse the LUT format data and REGMAP format data respectively.
[0063] like Figure 3As shown, when the format recognition result is LUT format data, the system determines the LUT data area and extracts the input variables, data signals, and output variables from the LUT data area. Further, the system establishes the association between the input variables, data signals, and output variables based on the field positions, row / column relationships, or preset field names in the LUT data area, and generates LUT parameter records. The LUT parameter records may include parameter names, input variables, data signals, output variables, and the correspondence between the aforementioned data.
[0064] When the format recognition result is REGMAP format data, the system determines the REGMAP data area and extracts the register name, parameter width, default value, and attribute fields row by row. Attribute fields may include fields used to distinguish parameter types, read / write attributes, or source attributes. Further, the system establishes a mapping relationship between the register name and the parameter width, default value, and attribute fields in the corresponding row to generate REGMAP parameter records.
[0065] When the format recognition result is neither LUT format data nor REGMAP format data, the system can generate a format error message and stop further parsing of that data area, or return to the format recognition process to continue processing other data areas.
[0066] S4. Filter the extraction results to obtain a set of valid parameters.
[0067] like Figure 3 As shown, after generating LUT parameter records and / or REGMAP parameter records, the system aggregates all parameter records into an initial parameter set and performs validity filtering on the initial parameter set. Validity filtering includes cell null value detection, deletion of rows with missing core fields, and validation of parameter identifier validity.
[0068] Specifically, cell null value detection can include detecting cells containing None, NaN, empty strings, and cells containing only whitespace characters. For example, if a cell contains a null value, an empty string, or only contains whitespace characters such as spaces, tabs, and newlines, the cell is marked as an invalid cell.
[0069] Deletion of missing core fields can be performed based on the data format. For REGMAP format data, if both the register name field and parameter width field in the same row are invalid, the corresponding row or the parameter record generated from that row is deleted. For LUT format data, if the preset core fields in the input variable field, data signal field, and output variable field are invalid, the corresponding row or the parameter record generated from that row is deleted. This process prevents blank rows, description rows, or incomplete data from being mistakenly considered as valid parameters.
[0070] Parameter identifier validity verification can include removing parameter identifiers containing special characters or with abnormal length. Parameter identifiers can include input and output variables in LUT format data, or register names or parameter names in REGMAP format data. For example, when a parameter identifier contains characters that do not conform to the naming rules of the mixed-signal design platform, or when the parameter identifier length exceeds the platform's allowed range, the corresponding parameter record will be marked as an abnormal record and removed from the valid parameter set, or a prompt message will be generated for user confirmation.
[0071] Furthermore, during the validity filtering of REGMAP format data, format validation is also performed on the parameter width field and the default value field. The parameter width field is validated to be a positive integer; the default value field is validated to be a decimal or hexadecimal value. For example, if the parameter width field is a non-numeric character, a negative number, a decimal, or an empty value, the parameter width field is determined to be invalid; if the default value field does not conform to the decimal or hexadecimal value format, the default value field is determined to be invalid. After the above filtering and validation, a valid parameter set is obtained.
[0072] S5. Convert the effective parameter set into a key-value pair parameter mapping structure supported by the mixed-signal design platform.
[0073] like Figure 4 As shown, after receiving a valid set of parameters, the system can initialize the parameter dictionary and read the current parameter record one by one. For REGMAP parameter records, the system extracts the parameter name, parameter value, parameter width, and parameter attributes, and encapsulates the parameter width as a parameter attribute to generate REGMAP key-value pair records. For LUT parameter records, the system extracts the input variables, data signals, and output variables, organizes them into a lookup table parameter structure, and generates LUT key-value pair records.
[0074] Furthermore, the system constructs a key-value pair parameter mapping structure, using the parameter name as the key and at least one of the following as values: parameter value, parameter bit width, parameter attribute, and parameter source. The parameter source can indicate that the parameter originates from LUT format data or REGMAP format data, or it can indicate an Excel file, worksheet, or data range from which the parameter originates. The system adds the generated LUT key-value pair records and REGMAP key-value pair records to the parameter dictionary and checks if any unconverted parameter records exist. If they do, the system continues to read the next parameter record and performs the conversion; if they do not exist, the system outputs the parameter dictionary for batch writing to the mixed-signal design platform.
[0075] In one implementation, when the current parameter record is neither a REGMAP parameter record nor a LUT parameter record, the system generates a parameter type error message, skips the parameter record, and continues to process other unconverted parameter records.
[0076] S6. Obtain the current parameters in the mixed-signal design platform, perform consistency and dimension verification between the key-value pair parameter mapping structure and the current parameters, and write the key-value pair parameter mapping structure into the mixed-signal design platform in batches after the verification passes.
[0077] like Figure 5 As shown, after receiving the key-value pair parameter mapping structure, the system first obtains the current parameters from the mixed-signal design platform. The current parameters may include the parameter name, parameter value, parameter bit width, or other attribute information that already exists in the platform. The system matches the parameter names in the key-value pair parameter mapping structure with the current parameter names in the mixed-signal design platform to determine newly added parameters, parameters to be updated, and conflicting parameters.
[0078] Specifically, when a parameter name in the key-value pair parameter mapping structure does not exist in the mixed-signal design platform, the parameter can be identified as a new parameter; when a parameter name in the key-value pair parameter mapping structure already exists in the mixed-signal design platform and updates are allowed, the parameter can be identified as a parameter to be updated; when a parameter name exists but the parameter attribute, parameter type, or platform write rule does not match, the parameter can be identified as a conflicting parameter. If the consistency check fails, the system records the exception information and generates an error message, resulting in a synchronization failure.
[0079] After the consistency check passes, the system performs dimensional checks. Dimensional checks include verifying the number of parameters to be written, the parameter value format, and, if the parameters include bit width, whether the bit width meets the writing requirements of the mixed-signal design platform. For example, the system can check whether the number of parameters to be written exceeds the platform's single batch write limit, whether the parameter value format is consistent with the platform requirements, and whether the parameter bit width matches the corresponding parameter value or register definition. If the dimensional check fails, the system records the exception information and generates an error message, resulting in a synchronization failure.
[0080] Once consistency and dimensionality checks pass, the system batch writes the key-value pair parameter mapping structure to the mixed-signal design platform. Batch writing can be achieved through the interface provided by the mixed-signal design platform. If batch writing fails, the system records the writing exception information and generates an error message, resulting in a synchronization failure. The writing exception information may include the name of the parameter that failed to write, the reason for the failure, the interface return information, or the failure time.
[0081] S7. After writing is complete, read back the parameters in the mixed-signal design platform and generate parameter synchronization results.
[0082] like Figure 5As shown, after a successful batch write, the system reads back parameters from the mixed-signal design platform and compares the read-back parameters with the key-value pair parameter mapping structure. This comparison can include parameter name comparison, parameter value comparison, parameter bit width comparison, and parameter attribute comparison. If the read-back parameters match the key-value pair parameter mapping structure, a synchronization success result is generated; otherwise, a parameter synchronization result containing discrepancy information is generated. The parameter synchronization result can include successfully synchronized parameters, failed synchronization parameters, discrepancy parameters, error messages, and corresponding data source information.
[0083] Through the above steps, this embodiment can form a complete closed loop from Excel parameter file acquisition, data format recognition, classification and parsing, validity filtering, parameter structure conversion, platform verification and writing to readback confirmation, thereby reducing problems such as format recognition errors, invalid data misdirection, inconsistent parameter structures and uncertain platform writing status that occur when manually processing large-scale mixed signal simulation parameters.
[0084] like Figure 6 As shown, this embodiment also provides a large-scale parameter synchronization system for mixed-signal simulation. The system includes a file acquisition module, a format recognition module, a parameter parsing module, a validity filtering module, a parameter conversion module, a platform synchronization module, and a readback confirmation module. Figure 6 Each module can be implemented as a software function module, or it can be implemented by the processor executing program instructions stored in memory.
[0085] The file acquisition module is used to acquire at least one Excel parameter file and its corresponding data processing range, and then send the Excel parameter file and data processing range to the format recognition module. The data processing range includes the row range, column range, and / or worksheet range specified by the user; when the user-specified data processing range is not received, the file acquisition module can use a valid worksheet range in the Excel parameter file as the default data processing range.
[0086] The format recognition module iterates through the worksheets in the Excel parameter file, scans the first column of each worksheet, identifies the data format of the Excel parameter file based on preset format identifiers, generates a format recognition result, and sends the format recognition result and the corresponding data area to the parameter parsing module. Specifically, when a lookup table identifier is identified, the data area containing the lookup table identifier is determined to be LUT format data; when a register mapping identifier is identified, the data area containing the register mapping identifier is determined to be REGMAP format data.
[0087] The parameter parsing module is used to invoke the corresponding parsing rules based on the format recognition results. For LUT format data, the parameter parsing module extracts input variables, data signals, output variables, and their relationships to generate LUT parameter records. For REGMAP format data, the parameter parsing module extracts register names, parameter bit widths, default values, and attribute fields, establishes a mapping relationship between register names and corresponding parameters, and generates REGMAP parameter records. The parameter parsing module sends the generated LUT parameter records and / or REGMAP parameter records as the initial parameter set to the validity filtering module.
[0088] The validity filtering module filters the initial parameter set to obtain a valid parameter set, which is then sent to the parameter conversion module. Validation filtering includes cell null value detection, deletion of missing rows in core fields, and validation of parameter identifier validity. Furthermore, during the processing of REGMAP format data, the validity filtering module also performs format validation on parameter bit-width fields and default value fields.
[0089] The parameter conversion module converts the valid parameter set into a key-value pair parameter mapping structure supported by the mixed-signal design platform. Specifically, the module encapsulates the parameter bit width in REGMAP format data as parameter attributes, organizes the input variables, data signals, and output variables in LUT format data into a lookup table parameter structure, and generates a parameter dictionary for batch writing to the mixed-signal design platform using the parameter name as the key and at least one of the parameter value, parameter bit width, parameter attribute, and parameter source as the value. The parameter conversion module then sends the key-value pair parameter mapping structure to the platform synchronization module.
[0090] The platform synchronization module retrieves the current parameters from the mixed-signal design platform, performs consistency and dimensionality checks on the key-value pair parameter mapping structure and the current parameters, and, upon successful verification, batch writes the key-value pair parameter mapping structure into the mixed-signal design platform and sends a write completion message to the readback confirmation module. Consistency checks include matching the parameter names in the key-value pair parameter mapping structure with the current parameter names in the mixed-signal design platform to identify newly added parameters, parameters to be updated, and conflicting parameters. Dimensional checks include verifying the number of parameters to be written, the parameter value format, and, if the parameters include a bit width, whether the bit width meets the write requirements of the mixed-signal design platform. When batch writing fails, the platform synchronization module records the exception information and generates an error message.
[0091] The readback confirmation module is used to read back the parameters in the mixed-signal design platform after the write operation is completed. It generates parameter synchronization results based on the comparison between the readback parameters and the key-value pair parameter mapping structure. The parameter synchronization results can include synchronization success results, synchronization failure results, and difference information.
[0092] In a specific application scenario, a user imports multiple Excel parameter files, some worksheets containing LUTID identifiers and others containing REGNAME identifiers. The system first identifies the data format of different data areas based on the LUT ID and REGNAME identifiers, and then parses the LUT and REGMAP format data separately. For LUT format data, the system extracts input variables, data signals, and output variables, and generates LUT parameter records. For REGMAP format data, the system extracts register names, parameter bit widths, default values, and attribute fields row by row, and generates REGMAP parameter records. Subsequently, the system performs null value detection, core field missing deletion, parameter identifier validity verification, and necessary bit width and default value format verification on the above parameter records to obtain a valid parameter set. The system then converts the valid parameter set into a key-value pair parameter mapping structure and performs batch writing after completing consistency and dimensionality verification with the current parameters of the mixed-signal design platform. After writing is complete, the system reads back the platform parameters and compares them with the parameters to be written, thereby generating parameter synchronization results.
[0093] In another specific application scenario, multiple engineers maintain mixed-signal simulation parameters based on the same set of Excel parameter files. The method or system provided in this embodiment can uniformly identify parameter formats, filter invalid data, and convert parameter structures before writing parameters to the mixed-signal design platform. After writing, it can read back and confirm the platform parameters, enabling multiple engineers to obtain consistent synchronization results when synchronizing parameters at different times or on different terminals, reducing the risk of inconsistent parameter versions in multi-person collaborative scenarios.
[0094] The steps in the above embodiments do not necessarily represent a strict execution order. Without affecting the technical effect, some steps can be executed in parallel or their execution order can be adjusted. For example, format recognition and classification parsing of multiple Excel parameter files or multiple worksheets can be performed in parallel; validity filtering and parameter conversion of different parameter records can also be implemented using batch processing or parallel processing methods. All of the above changes do not affect the implementation of the technical solution of this invention.
[0095] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for synchronizing large-scale parameters in mixed-signal simulation, characterized in that, Includes the following steps: S1. Obtain at least one Excel parameter file and its corresponding data processing range; S2. Traverse the worksheets in the Excel parameter file and scan the first column of the worksheet. Identify the data format of the Excel parameter file according to the preset format identifier. When a lookup table identifier is identified, the data area containing the lookup table identifier is determined as LUT format data. When a register mapping identifier is identified, the data area containing the register mapping identifier is determined as REGMAP format data. S3. Based on the identified data format, call the corresponding parsing rules to extract the input variables, data signals, output variables and their relationships from the LUT format data, and extract the register name, parameter bit width, default value and attribute field from the REGMAP format data; S4. Perform validity filtering on the extraction results. The validity filtering includes cell null value detection, deletion of missing rows in core fields, and parameter identifier validity verification to obtain a set of valid parameters. S5. Convert the effective parameter set into a key-value pair parameter mapping structure supported by the mixed-signal design platform, wherein the parameter bit width in the REGMAP format data is encapsulated as parameter attributes, and the input variables, data signals and output variables in the LUT format data are organized into a lookup table parameter structure; S6. Obtain the current parameters in the mixed-signal design platform, perform consistency and dimension verification between the key-value pair parameter mapping structure and the current parameters, and write the key-value pair parameter mapping structure into the mixed-signal design platform in batches after the verification passes. S7. After writing is complete, read back the parameters in the mixed-signal design platform and generate parameter synchronization results.
2. The method for large-scale parameter synchronization in mixed-signal simulation according to claim 1, characterized in that, In step S1, the data processing range includes the row range, column range, and / or worksheet range specified by the user; when no user-specified data processing range is received, the valid worksheet range in the Excel parameter file is used as the default data processing range.
3. The method for large-scale parameter synchronization in mixed-signal simulation according to claim 1, characterized in that, In step S2, the preset format identifier includes a LUT ID identifier and a REG NAME identifier; when the LUT ID identifier is identified in the first column field of the worksheet, the corresponding area in the worksheet is determined to be LUT format data; when the REG NAME identifier is identified in the first column field of the worksheet, the corresponding area in the worksheet is determined to be REGMAP format data.
4. The method for large-scale parameter synchronization in mixed-signal simulation according to claim 1, characterized in that, In step S3, parsing the LUT format data includes: determining the lookup table data area based on the lookup table identifier, extracting the input variables, data signals, and output variables in the lookup table data area, and generating LUT parameter records according to the correspondence between the input variables and the data signals and output variables.
5. The method for large-scale parameter synchronization in mixed-signal simulation according to claim 1, characterized in that, In step S3, parsing the REGMAP format data includes: determining the register data area based on the register mapping field, extracting the register name, parameter bit width, default value and attribute fields by row, and establishing a mapping relationship between the register name and the corresponding parameter.
6. The method for large-scale parameter synchronization in mixed-signal simulation according to claim 1, characterized in that, In step S4, the cell null value detection includes detecting cells containing None, NaN, empty strings, and cells containing only blank characters; the core field missing row deletion includes: for REGMAP format data, deleting the corresponding row when both the register name field and the parameter bit width field are invalid; for LUT format data, deleting the corresponding row when all preset core fields in the input variable field, data signal field, and output variable field are invalid; the parameter identifier validity verification includes removing parameter identifiers containing special characters or with abnormal length.
7. The method for large-scale parameter synchronization in mixed-signal simulation according to claim 1, characterized in that, In step S4, when performing validity filtering on REGMAP format data, the parameter bit width field and the default value field are also validated. The parameter bit width field is validated to be a positive integer, and the default value field is validated to be a decimal value or a hexadecimal value.
8. The method for large-scale parameter synchronization in mixed-signal simulation according to claim 1, characterized in that, In step S5, converting the set of valid parameters into a key-value pair parameter mapping structure supported by the mixed-signal design platform includes: using the parameter name as the key and the parameter value, parameter bit width, parameter attribute, and parameter source as the value, to generate a parameter dictionary for batch writing to the mixed-signal design platform.
9. The method for large-scale parameter synchronization in mixed-signal simulation according to claim 1, characterized in that, In S6 and S7, the consistency check includes matching the parameter names in the key-value pair parameter mapping structure with the current parameter names in the mixed-signal design platform to determine the new parameters, parameters to be updated, and conflicting parameters; the dimension check includes checking the number of parameters to be written, the parameter value format, and, when the parameters to be written include parameter bit width, checking whether the parameter bit width meets the writing requirements of the mixed-signal design platform; when batch writing fails, abnormal information is recorded and an error message is generated.
10. A mixed-signal simulation system for large-scale parameter synchronization, characterized in that, include: The module includes a file acquisition module, a format recognition module, a parameter parsing module, a validity filtering module, a parameter conversion module, a platform synchronization module, and a readback confirmation module. The file acquisition module is used to acquire at least one Excel parameter file and the corresponding data processing range, and send the Excel parameter file and the data processing range to the format recognition module; The format recognition module is used to traverse the worksheets in the Excel parameter file and scan the first column of the worksheet. It identifies the data format of the Excel parameter file according to the preset format identifier, generates a format recognition result, and sends the format recognition result and the corresponding data area to the parameter parsing module. When a lookup table identifier is identified, the data area containing the lookup table identifier is determined to be LUT format data. When a register mapping identifier is identified, the data area containing the register mapping identifier is determined to be REGMAP format data. The parameter parsing module is used to call the corresponding parsing rules according to the format recognition result, extract input variables, data signals, output variables and their correlations from the LUT format data, extract register names, parameter bit widths, default values and attribute fields from the REGMAP format data, generate an initial parameter set, and send the initial parameter set to the validity filtering module; The validity filtering module is used to perform validity filtering on the initial parameter set. The validity filtering includes cell null value detection, core field missing row deletion, and parameter identifier legality verification to obtain a valid parameter set, and then sends the valid parameter set to the parameter conversion module. The parameter conversion module is used to convert the effective parameter set into a key-value pair parameter mapping structure supported by the mixed-signal design platform. Specifically, the parameter bit width in the REGMAP format data is encapsulated as parameter attributes, the input variables, data signals, and output variables in the LUT format data are organized into a lookup table parameter structure, and the key-value pair parameter mapping structure is sent to the platform synchronization module. The platform synchronization module is used to obtain the current parameters in the mixed-signal design platform, perform consistency and dimension verification between the key-value pair parameter mapping structure and the current parameters, and after the verification is passed, write the key-value pair parameter mapping structure into the mixed-signal design platform in batches, and send the writing completion information to the readback confirmation module. The readback confirmation module is used to read back the parameters in the mixed-signal design platform after the writing is completed, and generate parameter synchronization results based on the comparison results between the readback parameters and the key-value pair parameter mapping structure.
Citation Information
Patent Citations
Method and system for quickly generating UVM register model
CN115017869A