Parameter configuration method, device, equipment, storage medium and program product

By obtaining and editing the initial configuration file of the EDA software, the loading and selection of custom configuration groups is realized, which solves the problems of parameter configuration complexity and low efficiency in the existing technology, and improves the efficiency and adaptability of the software.

CN118708175BActive Publication Date: 2024-10-29INNODA (CHENGDU) ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411204218.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-10-29
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

The parameter configuration method of existing EDA software is complex, resulting in inefficiency, affecting work efficiency and development experience, and there is a high technical threshold and the risk of configuration errors.

Method used

By obtaining the initial configuration file, adding or editing a custom configuration group, loading the configuration file, selecting the corresponding configuration group according to the design file, and setting configuration parameters based on default and custom parameter values, adaptive configuration of multiple design files is achieved.

Benefits of technology

It simplifies the parameter configuration process, improves software usage efficiency, lowers the technical threshold, avoids configuration errors, and adapts to the needs of different design files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708175B_ABST
    Figure CN118708175B_ABST
Patent Text Reader

Abstract

The present application discloses a parameter configuration method, apparatus, device, storage medium and program product, the method comprising: obtaining an initial configuration file corresponding to a software product; the initial configuration file includes default parameter values ​​of all configuration parameters; in response to a custom configuration instruction, adding and / or editing at least one custom configuration group in the initial configuration file to obtain a first configuration file; in response to a configuration file loading instruction, loading the first configuration file; in response to a configuration group selection instruction, determining a first configuration group corresponding to a first design file; setting all configuration parameters based on the default configuration group and the first configuration group; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding custom parameter value, setting the configuration parameter to the corresponding custom parameter value. The present application can realize the adaptive configuration of different design files through a single configuration file, thereby improving the use efficiency of the software product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application is directed to the field of software development technology, and in particular relates to a parameter configuration method, apparatus, device, storage medium and program product. Background Art

[0002] Electronic design automation (EDA) refers to the use of computer-aided design software to complete the functional design, synthesis, verification, physical design (including layout, routing, layout, design rule checking, etc.) of very large scale integrated circuit (VLSI) chips.

[0003] When using EDA software, users need to configure the parameters of each functional module in order to run the corresponding design files normally. In the related art, the user usually configures the software parameters by calling configuration commands to configure the parameters and directly editing and modifying the parameters in the configuration file.

[0004] However, due to the number of tools and functions of current EDA software, the number of parameters that need to be configured is also increasing. When users use EDA software to run a design file, they need to reconfigure the parameters according to the functional requirements of the design file; or, maintain multiple corresponding configuration files for multiple design files. In the above two configuration methods, whether it is to perform targeted configuration each time the design file is run or to maintain multiple configuration files corresponding to multiple design files at the same time, the relevant personnel need to spend a lot of time and energy, resulting in low efficiency in the use of EDA software, affecting work efficiency and development experience. In addition, the above configuration method is not only prone to configuration errors or configuration anomalies, but also has certain requirements on the technical level of the relevant personnel performing the configuration, resulting in a high technical threshold for the use of EDA software. Summary of the invention

[0005] The present application provides a parameter configuration method, apparatus, device, storage medium and program product, which can improve the technical problem in related technologies that the parameter configuration method is relatively complex and affects the efficiency of software use.

[0006] In a first aspect, the present application provides a parameter configuration method, the method comprising:

[0007] Obtaining an initial configuration file corresponding to the software product; wherein the initial configuration file includes a default configuration group, and the default configuration group includes default parameter values ​​of all configuration parameters;

[0008] In response to the custom configuration instruction, at least one custom configuration group is added to the initial configuration file, and / or at least one custom configuration group is edited to obtain a first configuration file; the custom configuration group includes a custom parameter value of at least one configuration parameter; the custom configuration group corresponds to one of the multiple design files;

[0009] In case of running the software product, in response to a configuration file loading instruction, loading a first configuration file;

[0010] In response to the configuration group selection instruction, determining a first configuration group corresponding to the first design file from a plurality of custom configuration groups of the first configuration file;

[0011] All configuration parameters are set based on the default configuration group and the first configuration group; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding custom parameter value, the configuration parameter is set to the corresponding custom parameter value.

[0012] Optionally, after all configuration parameters are set based on the default configuration group and the first configuration group, the method further includes:

[0013] In response to the configuration group switching instruction, determining a second configuration group corresponding to the second design file from a plurality of custom configuration groups of the first configuration file;

[0014] All configuration parameters are set based on the default configuration group and the second configuration group.

[0015] Optionally, when the software product is running, in response to the configuration file loading instruction, before loading the first configuration file, the method further includes:

[0016] When the software product is started, the configuration parameters and their original parameter values ​​contained in each source code file are obtained;

[0017] Sets the corresponding directives based on the directives contained in the respective source code files and their original parameter values.

[0018] Optionally, when the software product is running, in response to the configuration file loading instruction, before loading the first configuration file, the method further includes:

[0019] Adding a function body to the initial configuration file or the first configuration file; wherein the function body is used to call a predefined function to implement a user-defined function;

[0020] In response to a function call instruction, a function body is executed.

[0021] Optionally, the predefined function is configured in each source code file of the software product; in response to the function call instruction, the function body is executed, including:

[0022] In response to the function call instruction, determine the corresponding function body and the input parameters provided by the user; wherein the input parameters may be empty;

[0023] Based on the function command in the function body, query and obtain the corresponding object instance;

[0024] Execute the predefined function in the object instance based on the input parameters and obtain the return result after execution.

[0025] Optionally, in response to the function call instruction, before executing the function body, the method further includes:

[0026] In response to the pre-written instructions, adding predefined functions in respective source code files of the software product;

[0027] Encapsulate predefined functions and construct function commands of predefined functions;

[0028] The first configuration file is embedded into the executable file of the software product as a dynamic link library file, and an object-oriented extension library is imported into the first configuration file; wherein the object-oriented extension library is used to provide a function for querying an object instance.

[0029] Optionally, the predefined function is configured in a function body; in response to the function call instruction, executing the function body includes:

[0030] In response to the function call instruction, determine the corresponding function body and the input parameters provided by the user; wherein the input parameters may be empty;

[0031] Execute the predefined function in the function body based on the input parameters and get the return result after execution.

[0032] Optionally, in response to the configuration file loading instruction, after loading the first configuration file, the method further includes:

[0033] In response to the compatible configuration start instruction, determining compatible parameter values ​​of some configuration parameters from the first configuration file or all source code files;

[0034] Set all configuration parameters based on the default configuration group and the first configuration group, including:

[0035] All configuration parameters are set based on the compatible parameter values ​​of the default configuration group, the first configuration group and some configuration parameters; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding compatible parameter value, the configuration parameter is set to the corresponding compatible parameter value.

[0036] Optionally, before obtaining the initial configuration file corresponding to the software product, the process further includes:

[0037] Create the original configuration file;

[0038] When compiling a project, the default parameter values ​​of all configuration parameters are obtained from the configuration associated file of the project;

[0039] Add the default parameter values ​​for all configuration parameters to the original configuration file to obtain the initial configuration file.

[0040] Optionally, the configuration-associated file includes a source code file; and the default parameter values ​​of all configuration parameters are obtained from the configuration-associated file of the engineering project, including:

[0041] Traverse the source code directory of the project to obtain the file paths of all source code files;

[0042] Read the code content of each source code file based on the file path of each source code file;

[0043] According to the matching rules of configuration parameters, the code content of each source code file is matched and searched to obtain all configuration parameters and their default parameter values.

[0044] Optionally, the matching rule includes regular expression matching.

[0045] Optionally, the configuration association file includes a configuration parameter record file; the default parameter values ​​of all configuration parameters are obtained from the configuration association file of the engineering project, including:

[0046] Get the data format of configuration parameters;

[0047] Gets the default parameter values ​​of all configuration parameters from the configuration parameter record file based on the data format.

[0048] Optionally, add default parameter values ​​for all configuration parameters to the original configuration file to obtain an initial configuration file, including:

[0049] Add the default parameter values ​​of all configuration parameters to the original configuration file to obtain a common configuration file;

[0050] In response to the configuration adjustment instruction, the default parameter values ​​of some configuration parameters are adjusted to obtain an initial configuration file.

[0051] In a second aspect, the present application provides a parameter configuration device, including:

[0052] The initial module is used to obtain an initial configuration file corresponding to the software product; wherein the initial configuration file includes a default configuration group, and the default configuration group includes default parameter values ​​of all configuration parameters;

[0053] A custom configuration module, configured to add at least one custom configuration group to the initial configuration file in response to the custom configuration instruction, and / or edit at least one custom configuration group to obtain a first configuration file; the custom configuration group includes a custom parameter value of at least one configuration parameter; the custom configuration group corresponds to one of the multiple design files;

[0054] A loading module, configured to load a first configuration file in response to a configuration file loading instruction when the software product is running;

[0055] a custom selection module, configured to determine, in response to a configuration group selection instruction, a first configuration group corresponding to the first design file from a plurality of custom configuration groups of the first configuration file;

[0056] The configuration module is used to set all configuration parameters based on the default configuration group and the first configuration group; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding custom parameter value, the configuration parameter is set to the corresponding custom parameter value.

[0057] In a third aspect, the present application provides an electronic device, the electronic device comprising:

[0058] a processor and a memory storing computer program instructions;

[0059] When the processor executes the computer program instructions, the steps of the parameter configuration method in the above aspect are implemented.

[0060] In a fourth aspect, the present application provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of the parameter configuration method of the above aspect when the computer program instructions are executed by a processor.

[0061] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the instructions in the computer program product are executed by a processor, the steps of the parameter configuration method of the above aspect are implemented.

[0062] The parameter configuration method, device, equipment, storage medium and program product of the present application can add or edit a custom configuration group in the initial configuration file to form a first configuration file by obtaining the initial configuration file corresponding to the software product. When the software product is running, the first configuration file can be loaded, and the first design file to be run as needed can be selected from multiple custom configuration groups corresponding to the first design file. All configuration parameters can be configured based on the default configuration group and the first configuration group. When the default parameter value of some configuration parameters is inconsistent with the custom parameter value, the parameters are configured with the custom parameter value. When the user needs to run different design files under a single software product, the corresponding custom configuration group can be constructed in advance according to the specific requirements of each design file, and before running a certain design file, the configuration parameters can be set based on the custom configuration group corresponding to the design file and the default configuration group, so that the design file can run normally. Through multiple custom configuration groups in a single first configuration file, the adaptive configuration of multiple design files can be achieved, which solves the problem that the user needs to re-set the configuration parameters during the design file switching process, and improves the use efficiency of the software product. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0064] Figure 1 It is a flow chart of a parameter configuration method provided by an embodiment of the present application;

[0065] Figure 2 is a flow chart of a parameter configuration method provided by another embodiment of the present application;

[0066] Figure 3 is a flow chart of a parameter configuration method provided by another embodiment of the present application;

[0067] Figure 4 is a flow chart of a parameter configuration method provided by yet another embodiment of the present application;

[0068] Figure 5 is a schematic diagram of the structure of a path query device provided by an embodiment of the present application;

[0069] Figure 6 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0070] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0071] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0072] Electronic design automation (EDA) refers to the use of computer-aided design software to complete the functional design, synthesis, verification, physical design (including layout, routing, layout, design rule checking, etc.) of very large scale integrated circuit (VLSI) chips.

[0073] When using EDA software, users need to configure the parameters of each functional module in order to run the corresponding design files normally. In the related art, the user usually configures the software parameters by calling configuration commands to configure the parameters and directly editing and modifying the parameters in the configuration file.

[0074] However, due to the number of tools and functions of current EDA software, the number of parameters that need to be configured is also increasing. When users use EDA software to run a design file, they need to reconfigure the parameters according to the functional requirements of the design file; or, maintain multiple corresponding configuration files for multiple design files. In the above two configuration methods, whether it is to perform targeted configuration each time the design file is run or to maintain multiple configuration files corresponding to multiple design files at the same time, the relevant personnel need to spend a lot of time and energy, resulting in low efficiency in the use of EDA software, affecting work efficiency and development experience. In addition, the above configuration method is not only prone to configuration errors or configuration anomalies, but also has certain requirements on the technical level of the relevant personnel performing the configuration, resulting in a high technical threshold for the use of EDA software.

[0075] In order to solve at least one of the above technical problems, the embodiments of the present application provide a parameter configuration method, apparatus, device, storage medium and program product. The parameter configuration method provided by the embodiments of the present application is first introduced below.

[0076] Figure 1 A flow chart of a parameter configuration method provided by an embodiment of the present application is shown. The method may include the following steps:

[0077] S110, obtaining an initial configuration file corresponding to the software product; wherein the initial configuration file includes a default configuration group, and the default configuration group includes default parameter values ​​of all configuration parameters;

[0078] S120, in response to the custom configuration instruction, adding at least one custom configuration group to the initial configuration file, and / or editing at least one custom configuration group to obtain a first configuration file; the custom configuration group includes a custom parameter value of at least one configuration parameter; the custom configuration group corresponds to one of the multiple design files;

[0079] S130, when the software product is running, in response to a configuration file loading instruction, loading a first configuration file;

[0080] S140, in response to the configuration group selection instruction, determining a first configuration group corresponding to the first design file from a plurality of custom configuration groups of the first configuration file;

[0081] S150, setting all configuration parameters based on the default configuration group and the first configuration group; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding custom parameter value, setting the configuration parameter to the corresponding custom parameter value.

[0082] In the related art, the provider of EDA software usually provides configuration commands or pre-configured files for the users of the software. After the users are familiar with the actual functions of each configuration parameter through the technical manual, they can set each configuration parameter by manual editing to realize software configuration. Therefore, this configuration method has high technical requirements for the personnel who perform parameter configuration on the user side. In addition, when the user side uses a variety of different software products, it is necessary to understand and configure each software separately, and it is also necessary to arrange relevant technical personnel to follow up and maintain the subsequent software use process. Therefore, the parameter configuration method adopted in the related art has high technical requirements, which increases the user's software use threshold and learning cost. In the process of parameter configuration and subsequent follow-up maintenance by the user, not only a lot of time and energy are consumed, resulting in reduced software use efficiency and affecting the user's design efficiency, but also parameter configuration errors may occur in a large number of repeated parameter configuration processes. It takes a lot of time to verify the error exception in the chip design process. The inaccurate verification results caused by the wrong parameters will seriously affect the chip design and development process.

[0083] In this embodiment, by obtaining the initial configuration file corresponding to the software product, a custom configuration group can be added or edited in the initial configuration file to form a first configuration file. When the software product is running, the first configuration file can be loaded, and the first design file to be run as needed, the first configuration group corresponding to the first design file can be selected from multiple custom configuration groups, and all configuration parameters can be configured based on the default configuration group and the first configuration group. When the default parameter value of some configuration parameters is inconsistent with the custom parameter value, the parameters are configured with the custom parameter value. When the user needs to run different design files under a single software product, the corresponding custom configuration group can be constructed in advance according to the specific requirements of each design file, and before running a certain design file, the configuration parameters can be set based on the custom configuration group corresponding to the design file and the default configuration group, so that the design file can run normally. Through multiple custom configuration groups in a single first configuration file, the adaptive configuration of multiple design files can be realized, and the user does not need to configure specific parameters, which solves the problem that the user needs to re-set the configuration parameters during the design file switching process, and improves the use efficiency of the software product.

[0084] The specific implementation methods of the above steps are introduced below.

[0085] In S110, the device may determine the corresponding initial configuration file according to the software product. When the user of the EDA software needs to use a variety of different EDA software, the initial configuration file corresponding to each EDA software may be provided in advance. When using one of the EDA software, the initial configuration file corresponding to the EDA software may be determined from the multiple initial configuration files.

[0086] Taking an initial configuration file corresponding to a single EDA software as an example, the initial configuration file may be a file in a tcl format, which may include a default configuration group, and the default configuration group includes default parameter values ​​of all configuration parameters.

[0087] When providing EDA software to users, the developer of EDA software may provide a corresponding initial configuration file at the same time, and add default parameter values ​​of all configurable configuration parameters of the EDA software to the default configuration group of the initial configuration file.

[0088] The default parameter values ​​of all the above configuration parameters can be pre-configured based on the standard scenario or design provided to the customer for the first time, so that the user can run the software normally when each configuration parameter is configured to the default parameter value. That is, the default parameter value of each configuration parameter can define the initial settings and parameters of the system or application, covering the key functions and operations of the software, and providing a usable starting point for the user, so that the user can start using the EDA software normally without adjusting the configuration parameters.

[0089] As an optional implementation, part of the code content of the above default configuration group is as follows:

[0090] set_default_group {

[0091] PRODUCT_A.report_only_overflow = False

[0092] PRODUCT_A.compat_mode = False

[0093] PRODUCT_A.all_viol = False

[0094] PRODUCT_A.check_sequential = False

[0095] PRODUCT_A.check_xassign_casedefault = False

[0096] PRODUCT_A.ignore_unique_and_priority = False

[0097] PRODUCT_A.report_lib_latch = False

[0098] PRODUCT_A.ignore_else_if = False

[0099] PRODUCT_A.check_conditional_assignment = False

[0100] PRODUCT_A.ignore_same_case_item = False

[0101] PRODUCT_A.check_inst_connections = False

[0102] }

[0103] The above default_group is the default configuration group, and PRODUCT_A is the project name corresponding to the software product. The default configuration group default_group contains multiple configuration parameters and their default parameter values. For example, the configuration parameter report_only_overflow can be used to limit whether to check when crossing the boundary, and the default parameter value is False, which means no, that is, all checks must be performed; the configuration parameter compat_mode is the default configuration parameter required for the operation of EDA software, and its default parameter value is False. Other configuration parameters also have corresponding functions, and default parameter values ​​are set in the default configuration group, which will not be repeated here.

[0104] It should be noted that the default configuration group in the initial configuration file contains the default parameter values ​​of all configuration parameters. After opening the initial configuration file, the user can browse the relevant definitions of all configuration parameters and the preset default parameter values ​​from the default configuration group, so as to determine the function and effect of each configuration parameter. Based on the default parameter values ​​of each configuration parameter, based on the function and effect of each configuration parameter and the actual needs of the user, some configuration parameters involved in the actual needs of the user can be customized through custom configuration.

[0105] Please refer to Figure 2 In some embodiments, before S110, the following steps may also be included:

[0106] S210, creating an original configuration file;

[0107] S220, when compiling the engineering project, obtaining default parameter values ​​of all configuration parameters from the configuration associated file of the engineering project;

[0108] S230, adding default parameter values ​​of all configuration parameters to the original configuration file to obtain an initial configuration file.

[0109] In this embodiment, before obtaining the initial configuration file, an original configuration file can be created, and the default parameter values ​​of all configuration parameters can be obtained from the configuration association file of the engineering project, and the default parameter values ​​of all configuration parameters can be added to the original configuration file as a default configuration group to form an initial configuration file.

[0110] In S210 , the developer of the EDA software may create an original configuration file during the process of software development. The original configuration file does not include default parameter values ​​of various configuration parameters, which need to be added and supplemented in a subsequent process.

[0111] In S220, the developer compiles the engineering project corresponding to the EDA software. In the initial stage of project compilation (eg, CMAKE stage), the default parameter value of each configuration parameter can be obtained by traversing each configuration-related file in the engineering project.

[0112] In S230, after the default parameter values ​​of all configuration parameters are obtained, the default parameter values ​​of each configuration parameter may be added to the original configuration file as a default configuration group. After the default configuration group is added to the original configuration file, an initial configuration file may be formed.

[0113] It is understandable that the initial configuration file can be used as the initial configuration file corresponding to the EDA software. When the developer provides the EDA software to multiple users, the initial configuration file can be provided to each user. Each user can adjust and modify the initial configuration file according to specific usage and specific design requirements.

[0114] In some embodiments, the configuration-related file includes a source code file; the above S220 may include:

[0115] S310, traversing the source code directory of the engineering project to obtain the file paths of all source code files;

[0116] S320, reading the code content of each source code file based on the file path of each source code file;

[0117] S330, according to the matching rules of the configuration parameters, the code content of each source code file is matched and searched to obtain all the configuration parameters and their default parameter values.

[0118] In this embodiment, when the configuration associated file is a source code file, the code content of each source code file can be traversed, and based on the matching rule of the configuration parameters, the default parameter value of each configuration parameter can be matched and queried from the code content.

[0119] In S310, the configuration-related files of the engineering project may include source code files, that is, the default parameter values ​​of various configuration parameters are edited in various source code files. By traversing the source code directory in the engineering project, the file paths of all source code files can be obtained.

[0120] In S320, after the file paths of the respective source code files are acquired, the code content of the corresponding source code file may be read according to the file path of each source code file.

[0121] In S330, since the configuration parameter has a specific format, the matching rule of the configuration parameter can be pre-set according to the format of the configuration parameter, and in the process of reading the code content of each source code file, the code content can be matched and searched based on the matching rule. If a matching code content is found, it means that the part of the code content is a certain configuration parameter and its default parameter value.

[0122] After matching and searching the code contents of all source code files, all configuration parameters and their default parameter values ​​can be obtained.

[0123] In some embodiments, the matching rules may include regular expression matching.

[0124] When editing configuration parameters into each source code file, the keywords included in the configuration parameters can be determined in advance. According to the keywords that must be included in the configuration parameters, corresponding regular expressions can be set. After reading the file content of each source code file through the file path of the source code file, the file content can be matched through the regular expression. All matching results matched by the regular expression in each source code file are the configuration parameters contained in each source code file and their corresponding default parameter values.

[0125] After matching the regular expressions of each source code file one by one, the value in each matching result can be extracted, and all the extracted matching results are output.

[0126] In one embodiment, all the extracted matching results can be output to a file, each matching result occupies a single line, that is, each line includes a configuration parameter and its default parameter value. The developer of the EDA software can browse the file and add the default parameter value of each configuration parameter to the original configuration file.

[0127] In another implementation, the extracted matching results may be directly output to the original configuration file to form an initial configuration file.

[0128] In the above implementation, the way to traverse the source code directory of the engineering project can be to recursively search all source code files through Python's os module. The function provided by the os module can traverse the specified directory and its subdirectories to generate a list containing file paths. The list contains the file paths of each source code file.

[0129] After opening each source code file according to its file path, you can read the file content and use regular expressions to find configuration parameters.

[0130] For example, if the format of the configuration parameter contains the keyword xx, the format can be xx ="value" or xx ='value', and value can be an unspecified string. According to the above format, the regular expression can be set to xx\s*=\s*["\'](.*?)["\'], and when the string xx ="value" or xx ='value' exists in the file content, it can be identified and matched through the regular expression.

[0131] In some embodiments, the configuration association file includes a configuration parameter record file; the above S220 may include:

[0132] S340, obtaining the data format of the configuration parameters;

[0133] S350, based on the data format, obtaining default parameter values ​​of all configuration parameters from the configuration parameter record file.

[0134] In this embodiment, when the configuration association file is a configuration parameter record file, the default parameter value of each configuration parameter can be read from the configuration parameter record file according to the data format of the configuration parameter.

[0135] In S340, the configuration-related files of the engineering project may include a configuration parameter record file. That is, the default parameter values ​​of each configuration parameter are edited in a separate configuration parameter record file, rather than in a source code file. As an optional implementation, the configuration parameter record file may be a json file, or other types of files that can record configuration parameters and their default parameter values, which are not limited here.

[0136] When the configuration parameters are edited in the configuration parameter record file, the data format of the configuration parameters recorded in the configuration parameter record file can be obtained.

[0137] In S350, based on the data format, the default parameter values ​​of all configuration parameters can be obtained from the configuration parameter record file. Similarly, the configuration parameters and their default parameter values ​​can also be obtained from the configuration parameter record file by using a regular expression to find a match.

[0138] In some embodiments, the above S230 may include:

[0139] S410, adding default parameter values ​​of all configuration parameters to the original configuration file to obtain a common configuration file;

[0140] S420: In response to the configuration adjustment instruction, adjust the default parameter values ​​of some configuration parameters to obtain an initial configuration file.

[0141] In this embodiment, after the default parameter values ​​of each configuration parameter are added to the original configuration file, a general configuration file can be obtained. Based on the general configuration file, the default parameter values ​​of some configuration parameters can be adjusted to obtain the initial configuration file. That is, in the default configuration group of the initial configuration file, there may be some configuration parameters whose default parameter values ​​are inconsistent with the default parameter values ​​recorded in the configuration association file.

[0142] In S410, after obtaining the default parameter values ​​of all configuration parameters from the configuration association file of the engineering project, the default parameter values ​​of all configuration parameters can be added to the original configuration file. After adding the default parameter values ​​of all configuration parameters, a general configuration file can be formed.

[0143] The universal configuration file has the characteristics of ready-to-use and consistency. Ready-to-use means that users can start using the software immediately without making any major configuration changes; consistency means that all users of the EDA software obtain the same universal configuration file, and can start from the same basic configuration and adjust and modify configuration parameters according to specific needs, thereby improving collaboration and efficiency. The universal configuration file can also reduce the technical problems encountered by users when using the software product for the first time, reducing the technical support costs of the software product.

[0144] In S420, after the general configuration file is formed, the relevant personnel with the configuration file editing authority can trigger the configuration adjustment instruction. In response to the configuration adjustment instruction, the device can adjust the default parameter values ​​of some configuration parameters to form an initial configuration file provided to the user.

[0145] It is understandable that the default parameter values ​​of each configuration parameter in the general configuration file are edited and set by the developer during the development of the EDA software. The general configuration file can adapt to most general scenarios. However, in response to the specific needs of different users, some configuration parameters in the general configuration file can also be modified and adjusted on the user's site to obtain an initial configuration file that meets the needs of specific users.

[0146] As an optional implementation, taking the case where a certain EDA software needs to be provided to multiple users as an example, after a general configuration file is generated based on the engineering project of the EDA software, the exclusive needs of multiple users can be evaluated. When the general configuration file can meet the exclusive needs of some customers, the general configuration file is directly provided to these customers. For another part of customers that cannot be satisfied by the general configuration file, some configuration parameters of the general configuration file can be adjusted according to the specific needs of each customer to obtain the initial configuration file corresponding to each customer.

[0147] In S120, after determining the initial configuration file corresponding to the software product, the user may trigger a custom configuration instruction. In response to the custom configuration instruction triggered by the user, the device may modify the initial configuration file accordingly.

[0148] The modification of the initial configuration file may be to add at least one custom configuration group to the initial configuration file, or to edit at least one existing custom configuration group, or to add a part of the custom configuration group while editing another part of the existing custom configuration group. There is no limitation here.

[0149] After the custom configuration group is edited or added to the initial configuration file, a first configuration file may be formed.

[0150] The above single custom configuration group includes at least one custom parameter value of a configuration parameter. When the first configuration file includes multiple custom configuration groups, each custom configuration group corresponds to one of the multiple design files.

[0151] It should be noted that the above-mentioned relevant personnel who can trigger the custom configuration instructions can be relevant personnel of EDA software development, such as software testing engineers PV, product engineers PE or customer support engineers AE of the developer, or relevant personnel of the user. Similarly, in the following embodiments, the personnel who trigger the corresponding instructions can also be the above-mentioned personnel.

[0152] In S130, when running the software product, the user may trigger a corresponding configuration file loading instruction. In response to the configuration file loading instruction, the device may load the first configuration file.

[0153] As an optional implementation, when the configuration file is in tcl format, a source command can be used in the tcl environment to specify a file as the first configuration file to load the first configuration file. For example, the sourceabc.tcl command can be used to specify the abc.tcl file as the first configuration file to load.

[0154] When the device loads the first configuration file, the parameter values ​​of the various configuration parameters in the software product are configured as the corresponding default parameter values ​​in the first configuration file.

[0155] In some embodiments, before the above S130, the following steps may also be included:

[0156] S510, when starting the software product, obtaining configuration parameters and original parameter values ​​contained in each source code file;

[0157] S520: Setting corresponding configuration parameters based on the configuration parameters contained in each source code file and their original parameter values.

[0158] In this embodiment, before the software product is started and the first configuration file is not loaded, various configuration parameters can be set according to original parameter values ​​contained in various source code files so that the software product can run some basic functions normally.

[0159] In S510, when starting the software product, the user has not yet triggered the configuration file loading instruction. At this time, the device can obtain the configuration parameters and their default parameter values ​​contained in each source code file of the software product.

[0160] In S520, after the configuration parameters and their default parameter values ​​included in each source code file are acquired, corresponding configuration parameters may be set based on the configuration parameters and their default parameter values ​​included in each source code file.

[0161] It should be noted that, before the user triggers the configuration file loading instruction, each configuration parameter has not been configured according to the default parameter value in the first configuration file. At this time, since each configuration parameter has not been configured, there may be a problem that the software product cannot be operated normally. Therefore, in order to achieve the normal operation of the basic functions of the software product before loading the first configuration file, the original parameter values ​​of each configuration parameter edited in the source code file during the software development process can be read from the source code file, and the corresponding configuration parameters can be configured according to the original parameter values ​​of each configuration parameter stored in the source code file.

[0162] It is understandable that, in the process of software development, the parameter values ​​of the configuration parameters directly edited by the developer in the source code file may be the original parameter values ​​of the configuration parameters. After completing the software development and generating the executable file of the engineering project, the developer may adjust the original parameter values ​​of some configuration parameters based on the actual needs of the user, iterative update needs, and other reasons. Therefore, in the default configuration group in the initial configuration file or the first configuration file, there may be some configuration parameters whose default parameter values ​​are inconsistent with the original parameter values.

[0163] When the first configuration file is not loaded, each configuration parameter may be configured based on the configuration parameters contained in the source code file and their original parameter values.

[0164] In some embodiments, before the above S130, the following steps may also be included:

[0165] S610, adding a function body to the initial configuration file or the first configuration file; wherein the function body is used to call a predefined function to implement a user-defined function;

[0166] S620, in response to the function call instruction, executing the function body.

[0167] In this embodiment, a function body for implementing a custom function may be added to the configuration file. After the first configuration file is loaded, the function body may be executed through a function call instruction to implement the corresponding custom function.

[0168] In S610, before running the software product and loading the first configuration file, the device may also add a function body to the initial configuration file or the first configuration file in response to the user's editing instruction. That is, the device may add the function body based on the initial configuration file, or may add or edit the custom configuration group to the initial configuration file, and after generating the first configuration file, add the function body based on the first configuration file.

[0169] The function body added above can call predefined functions to implement user-defined functions.

[0170] In S620, after loading the first configuration file, the user may trigger a function call instruction, and the device may execute a corresponding function body based on the function call instruction triggered by the user.

[0171] It is understandable that multiple function bodies that implement different user-defined functions can be added to the initial configuration file or the first configuration file. The user can enter the function name of the function body in the function call instruction. The device can determine the corresponding function body and execute the function body based on the function name entered by the user.

[0172] In some embodiments, the predefined functions are configured in each source code file of the software product; the above S620 may include:

[0173] S710, in response to the function call instruction, determining a corresponding function body and an input parameter provided by a user; wherein the input parameter may be empty;

[0174] S720, based on the function command in the function body, query and obtain a corresponding object instance;

[0175] S730, executing a predefined function in the object instance based on the input parameters, and obtaining a return result after execution.

[0176] In this embodiment, the predefined function corresponding to the function body can be configured in the source code file. Based on the function command in the function body, the object instance can be queried, and the predefined function in the object instance can be executed to obtain the return result after execution.

[0177] In S710, the function body added to the initial configuration file or the first configuration file may include two types: The predefined functions of the first type of function body are configured in each source code file of the software product, and the predefined functions in each source code file can be called when the function body is executed.

[0178] In response to a function call instruction triggered by a user, the device can determine a corresponding function body and an input parameter provided by the user, and the input parameter can be empty.

[0179] In S720, when the function body is a first-class function body, during the execution of the function body, the object instance corresponding to the source code file containing the predefined function after being materialized can be queried based on the function command contained in the function body.

[0180] In S730, after the object instance is obtained through query, the predefined function in the object instance can be executed based on the input parameters provided by the user, and the return result obtained after executing the predefined function can be output to the function body. The function body can output the corresponding execution result to the user based on the obtained return result.

[0181] It should be noted that some predefined functions need to obtain the input parameters provided by the user before they can generate the corresponding return results. At this time, the user needs to provide the corresponding input parameters to implement the functions of these predefined functions. Other predefined functions do not require input parameters when they are executed. Therefore, when the user calls the function body corresponding to these predefined functions, the input parameters do not need to be provided. For example, the custom function that a predefined function of a function body can implement is to obtain the currently effective custom configuration group. When the user calls the function body to obtain the effective custom configuration group, the input parameters do not need to be provided.

[0182] As an optional implementation, part of the code of the first type of function body is provided below:

[0183] proc config_param {args} {

[0184] set inst [itcl::find objects ::EnnoCADTcl::config_param_inst]

[0185] if { $inst eq ""} {

[0186] ::EnnoCADTcl::config_param_helper ::EnnoCADTcl::config_param_inst;

[0187] }

[0188] set ret [EnnoCADTcl::config_param_inst ExecuteCmd {*}$args];

[0189] return $ret;

[0190] In the above code, {args} indicates that this procedure can accept any number of parameters as input parameters and store these input parameters as a list in the args variable.

[0191] The itcl::find objects command is a command of the object-oriented extension library Incr Tcl. It can find the object instance named ::EnnoCADTcl::config_param_inst and store the search result in the variable inst.

[0192] The if { $inst eq ""} function can determine the object instance, that is, check whether the inst variable is an empty string. If the inst variable is an empty string, it means that the object instance does not exist. At this time, you can call the ::EnnoCADTcl::config_param_helper command to create or initialize the object instance.

[0193] {*}$args can unpack the args list into separate input parameters and pass them to ExecuteCmd. The ExecuteCmd method can pass the input parameters to the object instance and store the result of executing the predefined function in the object instance in the variable set as the return value.

[0194] In some embodiments, before the above S620, the following steps may also be included:

[0195] S740, in response to the pre-written instruction, adding a predefined function to each source code file of the software product;

[0196] S750, encapsulating the predefined function and constructing a function command of the predefined function;

[0197] S760, embed the first configuration file as a dynamic link library file into the executable file of the software product, and import the object-oriented extension library into the first configuration file; wherein the object-oriented extension library is used to provide a function for querying an object instance.

[0198] In this embodiment, before executing the function body through the function call command, it is necessary to edit the predefined function in the source code file, and then encapsulate and construct the function command of the predefined function. The first configuration file needs to be a dynamic link library file as the executable file of the software product, and the object-oriented extension library needs to be imported into the first configuration file to realize the query of the object instance.

[0199] In S740, for the first type of function body, the device can respond to the pre-written instruction triggered by the user and add the corresponding predefined function to each source code file during the development of the software product, that is, embed the specific logic of the function command into the source code.

[0200] In S750, after adding the code content of the predefined function to the source code file, the predefined function can be encapsulated into a class and constructed as a function command of the predefined function in the software product. For example, based on the object-oriented feature of the Tcl language, the predefined function in the source code file can be encapsulated in the class of class_config_param.

[0201] It is understandable that in the source code of the software product, there is no specific function that directly calls or uses the code of this encapsulated predefined function. In other words, the source code only defines and declares the existence of this business process, but does not call it in actual operation.

[0202] In S760, after the function body is added to the first configuration file, the first configuration file may be embedded in the executable file of the software product as a dynamic link library (DLL) file, so that relevant personnel can interact with the software product through scripts.

[0203] In the first configuration file, the object-oriented extension library can be imported by executing the corresponding command to call the function of querying the object instance through the object-oriented extension library. As an optional implementation, the package require itcl command can be executed in the first configuration file in tcl format to import the itcl library as the object-oriented extension library.

[0204] The above steps are preparation steps for executing the predefined function in the source code of the software product using the first configuration file. After completing the above preparation steps, the first configuration file can execute the C++ command defined in the source code file of the software product based on the function command triggered by the user. After receiving the input parameters provided by the user, the command can query the corresponding object instance, execute the corresponding predefined function, and output the return result to the function body.

[0205] As an optional implementation, the above-mentioned predefined functions may include a default configuration validation function - reset, a custom configuration validation function - set_group, and a function for displaying the currently valid configuration - status.

[0206] Taking the default configuration effectiveness function -reset as an example, when the user uses the -reset command, no input parameters can be provided. After the queried object instance executes the predefined function, the default parameter values ​​of each configuration parameter in the default configuration group can be loaded, and the output return result can be success or failure.

[0207] In the custom configuration validation function -set_group, since the user needs to specify the corresponding custom configuration group among multiple custom configuration groups, the user needs to provide the name or identifier of the custom configuration group as an input parameter when calling the corresponding function command. Accordingly, the output return result can be success or failure. For example, when the name of a custom configuration group among multiple custom configuration groups is CA, the user can use -set_group CA to load the custom parameter values ​​of each configuration parameter in the custom configuration group.

[0208] In the function -status that displays the currently effective configuration, the user may not provide input parameters, and the output return result should include the current parameter values ​​of all configuration parameters. In another embodiment, the user may provide the names or identifiers of some configuration parameters as input parameters, and the output return result may include the current parameter values ​​of these configuration parameters.

[0209] In some embodiments, the predefined function is configured in the function body; the above S620 may include:

[0210] S810, in response to the function call instruction, determining a corresponding function body and an input parameter provided by a user; wherein the input parameter may be empty;

[0211] S820, executing the predefined function in the function body based on the input parameters, and obtaining a return result after execution.

[0212] In this embodiment, the predefined function corresponding to the function body can be configured in the function body. Based on the function command in the function body, the predefined function in the function body can be directly executed to obtain the return result after execution.

[0213] In S810, in the second type of function body added to the initial configuration file or the first configuration file, the predefined function can be configured in the function body, and the predefined function in the function body can be directly called when the function body is executed.

[0214] In response to a function call instruction triggered by a user, the device can determine a corresponding function body and an input parameter provided by the user, and the input parameter can be empty.

[0215] In S820, based on the input parameters provided by the user, the predefined function in the function body may be executed, and a return result after the execution may be obtained.

[0216] As an optional implementation, the predefined functions of the second type of function body may include a case conversion function. Based on the input parameters provided by the user, after executing the predefined functions in the function body, the input parameters may be case converted, converting the uppercase letters in the input parameters into lowercase letters or converting the lowercase letters into uppercase letters. In addition, the custom functions that can be implemented by the predefined functions may also include processing and analysis of various data, preprocessing or post-processing of various parameters, and compatible integration with other systems and applications, and unified processing of data from different sources.

[0217] As an optional implementation, the following provides part of the code of the second type of function body that implements the case conversion function:

[0218] proc config_param {args} {

[0219] set processed_args [list]

[0220] foreach arg $args {

[0221] lappend processed_args [string toupper $arg]

[0222] }

[0223] set inst [itcl::find objects ::EnnoCADTcl::config_param_inst]

[0224] if { $inst eq ""} {

[0225] ::EnnoCADTcl::config_param_helper ::EnnoCADTcl::config_param_inst

[0226] }

[0227] set ret [EnnoCADTcl::config_param_inst ExecuteCmd {*}$processed_args]

[0228] set processed_ret [string tolower $ret]

[0229] return $processed_ret

[0230] }

[0231] Similar to the first type of function body, after storing the input parameters provided by the user as a list in the args variable, you can convert each parameter to uppercase through string toupper and find the object instance of config_param_inst. If the object instance exists, call the object method and pass the uppercase converted parameters. After calling the corresponding predefined function based on the passed parameters and getting the return result, you can convert the return result to lowercase through string tolower.

[0232] In S140, the user may trigger a configuration group selection instruction according to the first design file to be run as required. The device may determine a first configuration group corresponding to the first design file from a plurality of custom configuration groups in the first configuration file based on the configuration group selection instruction.

[0233] In S150 , the device may perform parameter settings on all configuration parameters based on the default configuration group and the first configuration group.

[0234] It is understandable that the default configuration group contains default parameter values ​​for all configuration parameters, while the first configuration group contains custom parameter values ​​for some configuration parameters. In the configuration process of all configuration parameters, if the configuration parameter is not included in the first configuration group, the configuration parameter is set to the default parameter value. If the configuration parameter is included in the first configuration group, the configuration parameter can be set to the corresponding custom parameter. That is, when all configuration parameters are set using the default configuration group and the first configuration group, for a certain configuration parameter, if its default parameter value is inconsistent with the custom parameter value, the custom parameter value has a higher priority, and the configuration parameter can be set to the corresponding custom parameter value.

[0235] Please refer to Figure 3 In some embodiments, after the above S130, the following steps may also be included:

[0236] S910, in response to a compatible configuration enable instruction, determining compatible parameter values ​​of some configuration parameters from a first configuration file or all source code files;

[0237] The above S150 may include:

[0238] S920, setting all configuration parameters based on the compatible parameter values ​​of the default configuration group, the first configuration group, and some configuration parameters; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding compatible parameter value, the configuration parameter is set to the corresponding compatible parameter value.

[0239] In this embodiment, the compatibility function can be enabled through a compatible configuration enable instruction. When the compatible function is enabled, the configuration parameters with compatible parameter values ​​will be adjusted from default parameter values ​​to compatible parameter values ​​to achieve compatibility with mainstream configuration modes.

[0240] In S910, after loading the first configuration file, the user may trigger a compatible configuration start instruction. In response to the compatible configuration start instruction, the device may determine compatible parameter values ​​of some configuration parameters from the first configuration file or all source code files.

[0241] The compatible parameter values ​​of some configuration parameters can be added to the first configuration file or to the source code file. The device can obtain the compatible parameter values ​​of the some configuration parameters based on the compatible configuration start instruction.

[0242] In S920, the device may set all configuration parameters based on compatible parameter values ​​of the default configuration group, the first configuration group, and some configuration parameters.

[0243] Similar to the priority order of configuration parameters in the above embodiment, when a parameter corresponds to a default parameter value and a compatible parameter value, and the default parameter value is inconsistent with the compatible parameter value, the compatible parameter value has a higher priority, and the configuration parameter can be set to the corresponding compatible parameter value.

[0244] It should be noted that the above-mentioned compatible parameter values ​​may be commonly used parameter values ​​in the software product industry, and the default parameter values ​​in the default configuration group may be parameter values ​​set by software developers based on the differences between the current software product and conventional software products. When the compatible configuration is not enabled, the actual parameter values ​​of the configuration parameters are based on the default parameter values; when the compatible configuration is enabled, the actual parameter values ​​of the configuration parameters are based on the compatible parameter values.

[0245] Please refer to Figure 4 In some embodiments, after the above S150, the following steps may also be included:

[0246] S1010, in response to a configuration group switching instruction, determining a second configuration group corresponding to the second design file from a plurality of custom configuration groups of the first configuration file;

[0247] S1020: Set all configuration parameters based on the default configuration group and the second configuration group.

[0248] In this embodiment, when the software product is running, if the design file needs to be switched, the custom configuration group can be switched to the second configuration group corresponding to the second design file through the configuration group switching instruction, and all configuration parameters can be reset based on the default configuration group and the second configuration group. The user does not need to restart the software to switch the design file.

[0249] In S1010, when the user needs to run the first design file during the process of running the software product, he can determine the first configuration group corresponding to the first design file from multiple custom configuration groups through the configuration group selection instruction, and configure all configuration parameters based on the default configuration group and the first configuration group.

[0250] When the user needs to run the second design file, the configuration group switching instruction can be triggered to determine the second configuration group corresponding to the second design file from the multiple custom configuration groups in the first configuration file.

[0251] In S1020, after determining the second configuration group, the device may configure all configuration parameters based on the default configuration group and the second configuration group.

[0252] When running the same EDA software, if you need to switch the design file, you usually need to restart the EDA software, and load the configuration parameters corresponding to the switched design file after restarting the software. In this embodiment, when switching the design file, you can use the configuration group switching instruction to determine the second configuration group corresponding to the second design file after switching, and set all configuration parameters based on the default configuration group and the second configuration group. By using a set of configuration files to switch custom configuration groups, you can achieve the switching operation of multiple design files, which solves the problem that different design files need to load different configuration files, thereby affecting R&D and design efficiency.

[0253] As an example, in the related art, the switching of the configuration parameter group can be parameter configuration based on the parameter values ​​of each configuration parameter in the new configuration group. However, if a configuration parameter is not modified in the new configuration group, the configuration parameter still remains as the parameter value of the original configuration group, resulting in the retention of the wrong parameter value and a configuration conflict. In the above embodiment, in the switching process of the configuration group, all configuration parameters are reconfigured based on the default configuration group and the switched custom configuration group, which can avoid ignoring certain configuration parameters during the switching process of the configuration parameters and avoid the problem of configuration conflicts.

[0254] Based on the same inventive concept, the present application also provides a parameter configuration device. Figure 5 Provide detailed explanation.

[0255] Figure 5 It is a structural diagram of a parameter configuration device 500 provided in an embodiment of the present application.

[0256] like Figure 5 As shown, the parameter configuration device 500 may include:

[0257] The initial module 501 is used to obtain an initial configuration file corresponding to the software product; wherein the initial configuration file includes a default configuration group, and the default configuration group includes default parameter values ​​of all configuration parameters;

[0258] A custom configuration module 502 is used to add at least one custom configuration group to the initial configuration file in response to the custom configuration instruction, and / or edit at least one custom configuration group to obtain a first configuration file; the custom configuration group includes a custom parameter value of at least one configuration parameter; the custom configuration group corresponds to one of the multiple design files;

[0259] A loading module 503, configured to load a first configuration file in response to a configuration file loading instruction when the software product is running;

[0260] A custom selection module 504, configured to determine, in response to a configuration group selection instruction, a first configuration group corresponding to the first design file from a plurality of custom configuration groups of the first configuration file;

[0261] The configuration module 505 is used to set all configuration parameters based on the default configuration group and the first configuration group; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding custom parameter value, the configuration parameter is set to the corresponding custom parameter value.

[0262] The parameter configuration device 500 is described in detail below, as shown below:

[0263] In some embodiments, the parameter configuration device 500 may further include:

[0264] A switching module, configured to determine, in response to a configuration group switching instruction, a second configuration group corresponding to the second design file from a plurality of custom configuration groups of the first configuration file;

[0265] The switch configuration module is used to set all configuration parameters based on the default configuration group and the second configuration group.

[0266] In some embodiments, the parameter configuration device 500 may further include:

[0267] The original configuration acquisition module is used to obtain the configuration parameters and their original parameter values ​​contained in each source code file when the software product is started;

[0268] The original configuration setting module is used to set corresponding configuration parameters based on the configuration parameters contained in each source code file and their original parameter values.

[0269] In some embodiments, the parameter configuration device 500 may further include:

[0270] A function body adding module, used to add a function body to the initial configuration file or the first configuration file; wherein the function body is used to call a predefined function to implement a user-defined function;

[0271] The function body execution module is used to execute the function body in response to the function call instruction.

[0272] In some embodiments, the function body execution module may further include:

[0273] A first function calling unit, configured to determine, in response to a function calling instruction, a corresponding function body and an input parameter provided by a user; wherein the input parameter may be empty;

[0274] An instance query unit, used to query and obtain a corresponding object instance based on a function command in a function body;

[0275] The first function execution unit is used to execute a predefined function in the object instance based on input parameters to obtain a return result after execution.

[0276] In some embodiments, the parameter configuration device 500 may further include:

[0277] A pre-writing module, for adding pre-defined functions to each source code file of the software product in response to the pre-writing instruction;

[0278] The encapsulation module is used to encapsulate the predefined functions and construct the function commands of the predefined functions;

[0279] The link module is used to embed the first configuration file as a dynamic link library file into the executable file of the software product, and import the object-oriented extension library into the first configuration file; wherein the object-oriented extension library is used to provide a function for querying object instances.

[0280] In some embodiments, the function body execution module may further include:

[0281] A second function calling unit, configured to determine, in response to a function calling instruction, a corresponding function body and an input parameter provided by a user; wherein the input parameter may be empty;

[0282] The second function calling unit is used to execute the predefined function in the function body based on the input parameters to obtain the return result after the execution.

[0283] In some embodiments, the parameter configuration device 500 may further include:

[0284] A compatible enabling module, configured to determine compatible parameter values ​​of some configuration parameters from the first configuration file or all source code files in response to a compatible configuration enabling instruction;

[0285] Configuration module 505 specifically includes:

[0286] All configuration parameters are set based on the compatible parameter values ​​of the default configuration group, the first configuration group and some configuration parameters; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding compatible parameter value, the configuration parameter is set to the corresponding compatible parameter value.

[0287] In some embodiments, the parameter configuration device 500 may further include:

[0288] Create module to create original configuration files;

[0289] The associated acquisition module is used to obtain the default parameter values ​​of all configuration parameters from the configuration associated file of the project when the project is compiled;

[0290] An add module is used to add default parameter values ​​of all configuration parameters to the original configuration file to obtain an initial configuration file.

[0291] In some embodiments, the above-mentioned association acquisition module may include:

[0292] The traversal unit is used to traverse the source code directory of the project and obtain the file paths of all source code files;

[0293] A reading unit, used for reading code content of each source code file based on a file path of each source code file;

[0294] The matching and searching unit is used to perform matching and searching on the code content of each source code file according to the matching rules of the configuration parameters, and obtain all the configuration parameters and their default parameter values.

[0295] In some embodiments, the above-mentioned association acquisition module may include:

[0296] A format acquisition unit, used to acquire the data format of the configuration parameters;

[0297] The format matching unit is used to obtain default parameter values ​​of all configuration parameters from the configuration parameter record file based on the data format.

[0298] In some embodiments, the above-mentioned adding module may include:

[0299] A general adding unit, used for adding default parameter values ​​of all configuration parameters to the original configuration file to obtain a general configuration file;

[0300] The adjustment unit is used to adjust the default parameter values ​​of some configuration parameters in response to the configuration adjustment instruction to obtain an initial configuration file.

[0301] Figure 6 The hardware structure diagram of the electronic device provided in the embodiment of the present application is shown. The electronic device can be at least one of a computer, a server and a document generation dedicated device. The electronic device includes a processor 601 and a memory 602 storing computer program instructions.

[0302] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0303] The memory 602 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the electronic device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.

[0304] The memory 602 may include a read-only memory (ROM), a flash memory device, a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory 602 includes a tangible (non-transitory) computer-readable storage medium (e.g., a memory device) of one or more software that may be encoded with computer-executable instructions and that, when executed (e.g., by one or more processors), is operable to perform the operations described with reference to the methods according to the above aspects of the present disclosure.

[0305] The processor 601 implements any one of the parameter configuration methods in the above embodiments by reading and executing computer program instructions stored in the memory 602 .

[0306] In one example, the electronic device may further include a communication interface 603 and a bus 610. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 610 and communicate with each other.

[0307] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0308] Bus 610 includes hardware, software or both, and couples the components of the electronic device to each other. For example, but not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, bus 610 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnect.

[0309] The electronic device can be configured based on the parameter method to achieve the combination Figures 1 to 5 Described parameter configuration method and device.

[0310] In addition, in combination with the parameter configuration method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the parameter configuration methods in the above embodiment is implemented.

[0311] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.

[0312] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0313] It should be understood that in the embodiment of the present application, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.

[0314] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A parameter configuration method, characterized in that: include: Obtaining an initial configuration file corresponding to the EDA software; wherein the initial configuration file includes a default configuration group, the default configuration group includes default parameter values ​​of all configuration parameters, and the default parameter values ​​are obtained from a configuration association file of the engineering project; In response to the custom configuration instruction, at least one custom configuration group is added to the initial configuration file, and / or at least one custom configuration group is edited to obtain a first configuration file; the custom configuration group includes a custom parameter value of at least one configuration parameter; the custom configuration group corresponds to one of the multiple design files; When the EDA software is running, in response to a configuration file loading instruction, loading the first configuration file; In response to a configuration group selection instruction, determining a first configuration group corresponding to the first design file from a plurality of custom configuration groups of the first configuration file; All configuration parameters are set based on the default configuration group and the first configuration group; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding custom parameter value, the configuration parameter is set to the corresponding custom parameter value.

2. The parameter configuration method according to claim 1, characterized in that: After all configuration parameters are set based on the default configuration group and the first configuration group, the method further includes: In response to a configuration group switching instruction, determining a second configuration group corresponding to a second design file from a plurality of custom configuration groups of the first configuration file; All configuration parameters are set based on the default configuration group and the second configuration group.

3. The parameter configuration method according to claim 1, characterized in that: In the case of running the EDA software, in response to a configuration file loading instruction, before loading the first configuration file, the method further includes: When the EDA software is started, the configuration parameters and their original parameter values ​​contained in each source code file are obtained; Sets the corresponding directives based on the directives contained in the respective source code files and their original parameter values.

4. The parameter configuration method according to claim 3, characterized in that: In the case of running the EDA software, in response to a configuration file loading instruction, before loading the first configuration file, the method further includes: Adding a function body to the initial configuration file or the first configuration file; wherein the function body is used to call a predefined function to implement a user-defined function; In response to a function call instruction, the function body is executed.

5. The parameter configuration method according to claim 4, characterized in that: The predefined functions are configured in each source code file of the EDA software; The step of executing the function body in response to the function call instruction includes: In response to the function call instruction, determine the corresponding function body and the input parameters provided by the user; wherein the input parameters may be empty; Based on the function command in the function body, query and obtain the corresponding object instance; The predefined function in the object instance is executed based on the input parameter to obtain a return result after the execution.

6. The parameter configuration method according to claim 5, characterized in that: In response to the function call instruction, before executing the function body, the method further includes: In response to the pre-written instructions, adding predefined functions in each source code file of the EDA software; Encapsulating the predefined function and constructing a function command of the predefined function; The first configuration file is embedded into the executable file of the EDA software as a dynamic link library file, and an object-oriented extension library is imported into the first configuration file; wherein the object-oriented extension library is used to provide a function for querying an object instance.

7. The parameter configuration method according to claim 4, characterized in that: The predefined function is configured in the function body; and the executing the function body in response to the function call instruction comprises: In response to the function call instruction, determine the corresponding function body and the input parameters provided by the user; wherein the input parameters may be empty; The predefined function in the function body is executed based on the input parameters to obtain a return result after execution.

8. The parameter configuration method according to claim 1, characterized in that: After the first configuration file is loaded in response to the configuration file loading instruction, the method further includes: In response to a compatible configuration start instruction, determining compatible parameter values ​​of some configuration parameters from the first configuration file or all source code files; The step of setting all configuration parameters based on the default configuration group and the first configuration group includes: All configuration parameters are set based on the compatible parameter values ​​of the default configuration group, the first configuration group and some configuration parameters; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding compatible parameter value, the configuration parameter is set to the corresponding compatible parameter value.

9. The parameter configuration method according to claim 1, characterized in that: Before obtaining the initial configuration file corresponding to the EDA software, the method further includes: Create the original configuration file; When compiling an engineering project, obtaining default parameter values ​​of all configuration parameters from a configuration associated file of the engineering project; The default parameter values ​​of all configuration parameters are added to the original configuration file to obtain an initial configuration file.

10. The parameter configuration method according to claim 9, characterized in that: The configuration-related file includes a source code file; the step of obtaining default parameter values ​​of all configuration parameters from the configuration-related file of the engineering project includes: Traversing the source code directory of the engineering project to obtain the file paths of all source code files; Read the code content of each source code file based on the file path of each source code file; According to the matching rules of configuration parameters, the code content of each source code file is matched and searched to obtain all configuration parameters and their default parameter values.

11. The parameter configuration method according to claim 10, characterized in that: The matching rule includes regular expression matching.

12. The parameter configuration method according to claim 9, characterized in that: The configuration association file includes a configuration parameter record file; the step of obtaining the default parameter values ​​of all configuration parameters from the configuration association file of the engineering project includes: Get the data format of configuration parameters; Based on the data format, default parameter values ​​of all configuration parameters are obtained from the configuration parameter record file.

13. The parameter configuration method according to claim 9, characterized in that: The step of adding the default parameter values ​​of all configuration parameters to the original configuration file to obtain the initial configuration file includes: Adding default parameter values ​​of all configuration parameters to the original configuration file to obtain a common configuration file; In response to the configuration adjustment instruction, the default parameter values ​​of some configuration parameters are adjusted to obtain an initial configuration file.

14. A parameter configuration device, characterized in that: include: An initial module is used to obtain an initial configuration file corresponding to the EDA software; wherein the initial configuration file includes a default configuration group, the default configuration group includes default parameter values ​​of all configuration parameters, and the default parameter values ​​are obtained from a configuration association file of the engineering project; A custom configuration module, configured to add at least one custom configuration group to the initial configuration file in response to a custom configuration instruction, and / or edit at least one custom configuration group to obtain a first configuration file; the custom configuration group includes a custom parameter value of at least one configuration parameter; the custom configuration group corresponds to one of the plurality of design files; A loading module, configured to load the first configuration file in response to a configuration file loading instruction when the EDA software is running; a custom selection module, configured to determine, in response to a configuration group selection instruction, a first configuration group corresponding to the first design file from a plurality of custom configuration groups of the first configuration file; A configuration module is used to set all configuration parameters based on the default configuration group and the first configuration group; wherein, if the corresponding default parameter value of any configuration parameter is inconsistent with the corresponding custom parameter value, the configuration parameter is set to the corresponding custom parameter value.

15. An electronic device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the steps of the parameter configuration method according to any one of claims 1 to 13 are implemented.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps of the parameter configuration method according to any one of claims 1 to 13 are implemented.

17. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor, the steps of the parameter configuration method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • TCL interactive interface configuration method and device, equipment and storage medium

    CN116339736A

  • Regression simulation method, device, equipment, medium and program product

    CN116976252A