CN112949243B - Parameter configuration method and device, computer equipment and storage medium - Google Patents

Parameter configuration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112949243B
CN112949243B CN202110273849.6A CN202110273849A CN112949243B CN 112949243 B CN112949243 B CN 112949243B CN 202110273849 A CN202110273849 A CN 202110273849A CN 112949243 B CN112949243 B CN 112949243B
Authority
CN
China
Prior art keywords
parameter
callback function
input configuration
configuration
device unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110273849.6A
Other languages
Chinese (zh)
Other versions
CN112949243A (en
Inventor
孙娜娜
刘学刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Quanxin Integrated Circuit Manufacturing Jinan Co Ltd
Original Assignee
Quanxin Integrated Circuit Manufacturing Jinan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Quanxin Integrated Circuit Manufacturing Jinan Co Ltd filed Critical Quanxin Integrated Circuit Manufacturing Jinan Co Ltd
Priority to CN202110273849.6A priority Critical patent/CN112949243B/en
Publication of CN112949243A publication Critical patent/CN112949243A/en
Application granted granted Critical
Publication of CN112949243B publication Critical patent/CN112949243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/392Floor-planning or layout, e.g. partitioning or placement

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Architecture (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a parameter configuration method, a parameter configuration device, computer equipment and a storage medium, and relates to the technical field of integrated circuits. The method is used for carrying out parameter configuration on a parameterization unit, and the parameterization unit comprises the following steps: the method comprises the following steps that each device unit is pre-configured with a corresponding callback function, and the method comprises the following steps: detecting whether the input configuration parameters aiming at the target device unit meet parameter configuration conditions corresponding to the input configuration parameters; if the parameter configuration condition is not met, a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit is called, so that the parameter of the target device unit is reset to the target parameter meeting the parameter configuration condition. The method and the device can reduce the complexity of the callback function and improve the execution accuracy of the callback function.

Description

Parameter configuration method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of integrated circuit technologies, and in particular, to a parameter configuration method and apparatus, a computer device, and a storage medium.
Background
With the rapid development of semiconductor process capability, the complexity of devices is higher and higher, and even if the devices are of the same type, the differences between device parameters are more and more, so that callback functions for device design are more and more complex.
The conventional device callback function is usually designed for a device of the same type, and the callback function needs to cover all parameters of the device, so that a design architecture of the callback function needs to be added with a plurality of additional judgment formulas to meet the judgment on all parameters of the device.
The complexity of the design architecture of the callback function directly increases the judgment error rate of the callback function, which is not beneficial to layout design.
Disclosure of Invention
The present invention provides a parameter configuration method, apparatus, computer device and storage medium, so as to reduce the complexity of the callback function and improve the execution accuracy of the callback function.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a parameter configuration method, configured to perform parameter configuration on a parameterization unit, where the parameterization unit includes: a plurality of device units, each device unit preconfigured with a corresponding callback function, the method comprising:
detecting whether input configuration parameters aiming at a target device unit meet parameter configuration conditions corresponding to the input configuration parameters;
if the parameter configuration condition is not met, a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit is called, so that the parameter of the target device unit is reset to the target parameter meeting the parameter configuration condition.
Optionally, before the sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit is called, the method further includes:
determining a sub callback function corresponding to the input configuration parameter from the callback function corresponding to the target device unit according to the input configuration parameter and the attribute description file of the target device unit; the attribute description file records: and the corresponding relation between each device parameter in the target device unit and the sub callback function.
Optionally, the invoking a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit includes:
and calling a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit so as to operate a program corresponding to the program interface in a preset program library according to the program interface in the sub callback function corresponding to the input configuration parameter.
Optionally, the preset program library includes: and the plurality of programs are related to callback functions corresponding to the plurality of device units.
Optionally, the preset program library includes: and a plurality of programs related to callback functions corresponding to a plurality of device units with the same type as the target device unit.
Optionally, if the input configuration parameter is an input configuration parameter for a first type of parameter; the detecting whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters includes:
detecting whether the input configuration parameters are in a parameter range corresponding to the first type parameters;
if the parameter is not in the parameter range corresponding to the first type parameter, the parameter configuration condition is not met; the target parameter is the maximum value or the minimum value of the parameter range.
Optionally, if the input configuration parameter is an input configuration parameter for a second type of parameter; the detecting whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters includes:
detecting whether the input configuration parameters are parameters in discrete parameter values corresponding to the second type parameters;
if the parameter is not any one of the discrete parameter values, the parameter configuration condition is not met; the target parameter is the closest discrete value of the discrete parameter values to the input configuration parameter.
In a second aspect, an embodiment of the present application further provides a parameter configuration apparatus, configured to perform parameter configuration on a parameterization unit, where the parameterization unit includes: a plurality of device units, each device unit preconfigured with a corresponding callback function, the apparatus comprising:
the detection module is used for detecting whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters;
and the resetting module is used for calling a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit if the parameter configuration condition is not met, so as to reset the parameter of the target device unit to the target parameter meeting the parameter configuration condition.
Optionally, before the resetting module, the apparatus further includes:
a sub callback function determining module, configured to determine, according to the input configuration parameter and the attribute description file of the target device unit, a sub callback function corresponding to the input configuration parameter from the callback function corresponding to the target device unit; the attribute description file records: and the corresponding relation between each device parameter in the target device unit and the sub callback function.
Optionally, the reset module includes:
and the program execution unit is used for calling the sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit so as to operate the program corresponding to the program interface in the preset program library according to the program interface in the sub callback function corresponding to the input configuration parameter.
Optionally, the preset program library includes: and the plurality of programs are related to callback functions corresponding to the plurality of device units.
Optionally, the preset program library includes: and a plurality of programs related to callback functions corresponding to a plurality of device units with the same type as the target device unit.
Optionally, if the input configuration parameter is an input configuration parameter for a first type of parameter; the detection module comprises:
the first detection unit is used for detecting whether the input configuration parameters are in a parameter range corresponding to the first type parameters;
the first confirming unit is used for not meeting the parameter configuration condition if the parameter is not in the parameter range corresponding to the first type parameter; the target parameter is the maximum value or the minimum value of the parameter range.
Optionally, if the input configuration parameter is an input configuration parameter for a second type of parameter; the detection module comprises:
the second detection unit is used for detecting whether the input configuration parameters are parameters in discrete parameter values corresponding to the second type parameters;
a second confirming unit, configured to, if the parameter is not any of the discrete parameter values, not satisfy the parameter configuration condition; the target parameter is the closest discrete value of the discrete parameter values to the input configuration parameter.
In a third aspect, an embodiment of the present application further provides a computer device, including: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, when the computer device runs, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to execute the steps of the parameter configuration method.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method performs the steps of any one of the parameter configuration methods described above.
The beneficial effect of this application is:
the parameter configuration method, device, computer equipment and storage medium provided by the application are used for configuring parameters of a parameterization unit, and the parameterization unit comprises the following components: each device unit is pre-configured with a corresponding callback function, whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters is detected, if not, a sub callback function corresponding to the input configuration parameters in the callback function corresponding to the target device unit is called, and the parameters of the target device unit are reset to the target parameters meeting the parameter configuration conditions. According to the scheme provided by the application, the independent callback function is configured for each device unit, so that the special designs for different device units are only embodied in the callback function corresponding to the device unit, compared with the traditional method that all device units use the same callback function, the complexity of the callback function is reduced, the input configuration parameters are reset through the sub callback function corresponding to the input configuration parameters of each device unit, the reset parameters meet parameter configuration conditions, and the parameters of the device units of the layout design are ensured to meet the design requirements. Because each device unit is provided with the callback function which corresponds to the device unit, the complexity of the callback function is reduced, and the execution efficiency and the accuracy of the callback function when the input configuration parameters are reset are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a first parameter configuration method according to an embodiment of the present application;
fig. 2 is a relational diagram of a device unit, a callback function, and a library according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a second parameter configuration method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a third parameter configuration method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a parameter configuration apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of a computer device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it should be noted that if the terms "upper", "lower", etc. are used for indicating the orientation or positional relationship based on the orientation or positional relationship shown in the drawings or the orientation or positional relationship which is usually arranged when the product of the application is used, the description is only for convenience of describing the application and simplifying the description, but the indication or suggestion that the referred device or element must have a specific orientation, be constructed in a specific orientation and operation, and thus, cannot be understood as the limitation of the application.
Furthermore, the terms "first," "second," and the like in the description and in the claims, as well as in the drawings, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application provides a parameter configuration method, the execution main body of which is a computer device with a parameter configuration function, the computer device is provided with layout design software or integrated circuit drawing software, when the layout design of the integrated circuit is carried out on the layout design software or the integrated circuit drawing software, the parameter configuration is carried out on a parameterization unit according to the design requirement, and the parameterization unit comprises: each device unit is pre-configured with a corresponding callback function, and when parameter modification is performed on the device units in the parameterization units, the layout design software executes the parameter configuration method provided by the embodiment of the application to realize parameter configuration. For example, the layout design software may be Virtuoso software.
It should be noted that the parameter configuration method provided in the embodiments of the present application is installed on existing layout design software or integrated circuit drawing software in the form of a development tool or a plug-in.
Fig. 1 is a schematic flowchart of a first parameter configuration method provided in an embodiment of the present application, configured to perform parameter configuration on a parameterization unit, where the parameterization unit includes: each device unit is pre-configured with a corresponding callback function; as shown in fig. 1, the method includes:
s100: and detecting whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters.
Specifically, the parameterization unit is an integrated circuit model formed by a plurality of device units in the integrated circuit design process, and the plurality of device units comprise: the same type of device unit and different types of device units. The device units of the same type are device units of the same type but different types, the device units of different types are device units of different types, illustratively, an MOS (Metal-Oxide-Semiconductor field effect transistor) tube, a resistor and a capacitor are device units of different types, and an N-MOS tube and a P-MOS tube are device units of the same type.
The target device unit is any one of a plurality of device units of the parameterization unit to be subjected to parameter configuration, each device unit is provided with at least one parameter, each device unit is provided with a corresponding parameter configuration file, parameter configuration conditions of all parameters in each device unit are prestored in the parameter configuration files, and each parameter must meet the parameter configuration conditions. Selecting a target device unit on layout design software, carrying out parameter configuration on at least one parameter of the target device unit, and judging whether an input configuration parameter meets a parameter configuration condition corresponding to the input configuration parameter according to the input configuration parameter input by a user aiming at one parameter.
S200: if the parameter configuration condition is not met, a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit is called, so that the parameter of the target device unit is reset to the target parameter meeting the parameter configuration condition.
Specifically, a unique Callback Function (Callback Function) is pre-configured for each device unit, and the Callback Function of each device unit includes: and (4) sub callback functions corresponding to all parameters of each device unit. If the input configuration parameter input for one of the parameters of the target device unit does not meet the corresponding parameter configuration condition, calling a sub callback function corresponding to the input configuration parameter from the callback function of the target device unit according to the parameter corresponding to the input configuration parameter, and resetting the input parameter of the target device unit by running the sub callback function, wherein the resetting result is as follows: and modifying the layout structure corresponding to the parameters of the device unit according to the target parameters meeting the parameter configuration conditions. The target parameter to be reset is based on the reset requirement designed in the sub callback function, and is not limited herein. For example, if the parameter configuration condition of the parameter a is: and (2) a is less than or equal to 5, and resetting the input configuration parameter to a target parameter meeting the parameter configuration condition through the sub callback function corresponding to the parameter a. If the reset requirement designed in the sub callback function corresponding to the parameter a is to reset the input configuration parameter to the target parameter closest to the input configuration parameter, and the input configuration parameter is a =7, resetting the input configuration parameter to 5; input configuration parameter a =1, the input configuration parameter is reset to 2.
In an optional implementation manner, if the input configuration parameter satisfies the parameter configuration condition, the input configuration parameter is determined as a target parameter, and the layout structure corresponding to the parameter of the device cell is modified according to the target parameter.
The embodiment of the application provides a parameter configuration method, which is used for carrying out parameter configuration on a parameterization unit, wherein the parameterization unit comprises: each device unit is pre-configured with a corresponding callback function, whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters is detected, if not, a sub callback function corresponding to the input configuration parameters in the callback function corresponding to the target device unit is called, and the parameters of the target device unit are reset to the target parameters meeting the parameter configuration conditions. According to the method provided by the embodiment of the application, the independent callback function is configured for each device unit, so that the special design for different device units is only embodied in the callback function corresponding to the device unit, compared with the traditional method that all device units use the same callback function, the complexity of the callback function is reduced, the input configuration parameters are reset through the sub callback function corresponding to the input configuration parameters of each device unit, so that the reset parameters meet parameter configuration conditions, and the parameters of the device units of the layout design are ensured to meet the design requirements. Because each device unit is provided with the callback function which corresponds to the device unit, the complexity of the callback function is reduced, and the execution efficiency and the accuracy of the callback function when the input configuration parameters are reset are improved.
On the basis of the foregoing embodiment, an embodiment of the present application further provides a parameter configuration method, where before a sub callback function corresponding to a configuration parameter is input in a callback function corresponding to the call target device unit, the method may further include:
and determining a sub callback function corresponding to the input configuration parameter from the callback function corresponding to the target device unit according to the input configuration parameter and the attribute description file of the target device unit.
Specifically, the attribute description file records: and the corresponding relation between each device parameter in the target device unit and the sub callback function. The computer device stores a preset CDF (Component Description Format) as an attribute Description file of the device unit, where the attribute Description file may include: the device unit type, the device unit name, all device parameters of the device unit, the parameter configuration condition of each device parameter, and the callback function of each device unit, wherein the callback function of each device unit comprises: and the sub callback functions of all the device parameters, at least one device parameter of the device unit and at least one sub callback function are in one-to-one correspondence through parameter identifications. For example, the parameter of the device parameter is labeled a, and the corresponding sub Callback function is Callback (a).
According to the parameter identification of the input configuration parameter input by the user, a callback function of the target device unit is obtained from the attribute description file of the target device unit, a sub callback function corresponding to the input configuration parameter is determined from the callback function according to the parameter expression, and the input configuration parameter is reset by executing the sub callback function.
According to the parameter configuration method provided by the embodiment of the application, the sub callback function corresponding to the input configuration parameter is determined from the callback function corresponding to the target device unit according to the input configuration parameter and the attribute file of the target device unit. According to the method provided by the embodiment of the application, the callback function for each device unit is designed according to the attribute of each device unit, the callback function comprises the sub callback functions corresponding to all the parameters of the device unit, the complexity of the callback function is reduced through the callback function design method, the input configuration parameters are reset through calling the sub callback functions corresponding to the device parameters, the parameters of the device units of the layout design are ensured to meet the design requirements, and meanwhile the execution efficiency and the accuracy of the sub callback functions when the input configuration parameters are reset are improved.
On the basis of the foregoing embodiment, an embodiment of the present application further provides a parameter resetting method, where the invoking of a sub callback function corresponding to an input configuration parameter in a callback function corresponding to a target device unit includes:
and calling a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit so as to operate a program corresponding to a program interface in a preset program library according to the program interface in the sub callback function corresponding to the input configuration parameter.
Specifically, in order to reduce the complexity of the callback function and the sub-callback function and reduce the workload in the design process of the callback function and the sub-callback function of the plurality of device units, a program (procedure) with a corresponding function can be independently written according to the function of processing the parameter by the sub-callback function, and the written programs with various functions form a program library. And compiling a corresponding program interface in the sub callback function according to the function to be realized by the sub callback function, calling the sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit, and executing the program corresponding to the program interface in the program library through the program interface to realize the program function so as to complete the resetting of the input configuration parameter.
In an alternative embodiment, the predetermined library comprises: and the plurality of programs are related to callback functions corresponding to the plurality of device units.
Specifically, the plurality of device units are different types of device units, and a plurality of programs related to the sub callback function in the callback function corresponding to each device unit form a program library. By way of example, the different types of device units may be MOS transistors, resistors, capacitors, and the like, and a plurality of programs related to the sub callback function in the callback function of the MOS transistors, the resistors, the capacitors, and the like are formed into a program library.
For example, fig. 2 is a relational diagram of a device unit, a Callback function, and a library provided in an embodiment of the present application, as shown in fig. 2, each device unit Cell has a unique attribute description file CDF, a Callback function Callback of each device unit is stored in the attribute description file, and the Callback function of each device unit includes: the device unit comprises at least one sub callback function, at least one device parameter of the device unit corresponds to the at least one sub callback function one to one through parameter identification, and a plurality of program products related to the sub callback function in the callback functions corresponding to the device units form a product library. Determining an attribute description file of the target device unit according to the target device unit, determining a sub callback function of the input configuration parameter from callback functions in the attribute description file according to the parameter identifier of the input configuration parameter, and executing a program corresponding to the sub callback function from a program library through a program interface of the sub callback function to complete resetting of the input configuration parameter.
In another alternative embodiment, the predetermined library includes: and a plurality of programs related to callback functions corresponding to a plurality of device units with the same type as the target device unit.
Specifically, a plurality of programs related to the sub callback function in the callback function corresponding to a plurality of device units of the same type can be formed into a program library according to the types of the device units. By way of example, the same type of device unit may be an N-MOS transistor, a P-MOS transistor, or another type of MOS transistor, and a plurality of programs related to a sub-callback function in the callback function of the N-MOS transistor, the P-MOS transistor, or another type of MOS transistor form a library.
In an optional implementation manner, the attribute description file further includes parameter configuration conditions of the device parameters, and the assignment of the parameters of the program in the program library is changed by changing the parameter configuration conditions in the attribute description file, so that the assignment of the program parameters in the program library does not need to be manually modified each time, and the automation of the parameter configuration method is realized. By way of example, the program performs: if the input configuration parameter a > a, the input configuration parameter a is reset to the target parameter a, if a =5 in the parameter profile, the input configuration parameter a is reset to 5, and if a =4 in the parameter profile, the input configuration parameter a is reset to 4.
According to the parameter configuration method provided by the embodiment of the application, the sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit is called, so that the program corresponding to the program interface in the preset program library is operated according to the program interface in the sub callback function corresponding to the input configuration parameter. According to the method provided by the embodiment of the application, the program library is formed by compiling programs with various functions, so that when the sub callback function is designed according to each device parameter in the plurality of device units, repeated compiling is not needed, the function of the sub callback function can be realized only by designing the program interface to indicate the program which the sub callback function needs to call, the plurality of device units can call the program in the program library once or for many times, when the same function needs to be executed according to the device parameters of different device units, repeated work is avoided, the design efficiency of the callback function of each device unit and the compiling efficiency of the sub callback function are improved, meanwhile, the complexity of the callback function and the complexity of the sub callback function are reduced through a program interface mode, and the execution efficiency and the accuracy of the sub callback function when the input configuration parameters are reset are improved.
On the basis of the foregoing embodiment, an embodiment of the present application further provides a parameter configuration method, and as shown in fig. 3, a flowchart of a second parameter configuration method provided in the embodiment of the present application is shown, where if the input configuration parameter is an input configuration parameter for a first type of parameter, the step S100 includes:
s101: and detecting whether the input configuration parameters are in the parameter range corresponding to the first type parameters.
Specifically, the first type of parameters are: the parameter configuration conditions are parameters corresponding to continuous parameter value ranges, and a plurality of parameters in a plurality of device units or a plurality of parameters in one device unit are first type parameters, but the parameter configuration conditions of the parameters may be the same or different, and then the parameter ranges corresponding to the first type parameters may also be the same or different. And determining a parameter range corresponding to the first type of parameter according to the parameter configuration condition corresponding to the input configuration parameter, and detecting whether the input configuration parameter is in the parameter range.
S102: if the parameter is not in the parameter range corresponding to the first type parameter, the parameter configuration condition is not met.
Specifically, if the input configuration parameter is not within the parameter range corresponding to the first type parameter, that is, the input configuration parameter is greater than the maximum value of the parameter range corresponding to the first type parameter, or is less than the minimum value of the parameter range corresponding to the first type parameter, it is determined that the input configuration parameter does not satisfy the parameter configuration condition.
And under the condition that the input configuration parameters do not meet the parameter configuration conditions, sequentially executing a larger program larger and a smaller program Less according to the program interface of the sub callback function in the callback function corresponding to the target device unit, or sequentially executing the smaller program Less and the larger program larger so as to reset the input configuration parameters.
For example, taking the sequential execution of the big-to-big program larger and the small-to-small program Less as an example, the parameter range corresponding to the first type parameter is [ a, b ], the big-to-big program larger is executed through a program interface, if the input configuration parameter is Greater than b, the input configuration parameter is reset to be the maximum value b of the parameter range, the execution of the sub callback function is completed, and the target parameter is the maximum value of the parameter range; if the input configuration parameter is not greater than b, executing the small program Less, if the input configuration parameter is Less than a, resetting the input configuration parameter to be the minimum value a of the parameter range, completing the execution of the sub callback function, and taking the target parameter as the minimum value of the parameter range.
According to the parameter configuration method provided by the embodiment of the application, whether the input configuration parameter is in the parameter range corresponding to the first type parameter or not is detected, if the input configuration parameter is not in the parameter range corresponding to the first type parameter, the parameter configuration condition is not met, and the input configuration parameter is reset to be the maximum value or the minimum value of the parameter range. By the method provided by the embodiment of the application, the flow of the method can be executed on the input configuration parameters of the first type parameters, so that the judgment and the resetting process of the input configuration parameters of the first type parameters are streamlined, and the execution efficiency and the accuracy of the sub callback function when the input configuration parameters are reset are improved.
On the basis of any of the foregoing embodiments, an embodiment of the present application further provides a parameter configuration method, and fig. 4 is a schematic flow chart of a third parameter configuration method provided in the embodiment of the present application, as shown in fig. 4, if the input configuration parameter is an input configuration parameter for a second type of parameter; the S100 includes:
s103: detecting whether the input configuration parameters are parameters in discrete parameter values corresponding to the second type parameters.
Specifically, the second type parameter is: the parameter configuration condition is a parameter corresponding to a discrete parameter value, and a plurality of parameters in a plurality of device units or a plurality of parameters in one device unit are second-type parameters, but since the parameter configuration conditions of the parameters may be the same or different, the parameter values corresponding to the second-type parameters may also be the same or different. And determining a parameter value corresponding to the second type of parameter according to a parameter configuration condition corresponding to the input configuration parameter, and detecting whether the input configuration parameter is a parameter in discrete parameter values.
S104: if the parameter is not any one of the discrete parameter values, the parameter configuration condition is not met.
Specifically, if the input configuration parameter is not any of the discrete parameter values corresponding to the second type of parameter, the parameter configuration condition is not satisfied. For example, if the parameter configuration condition is 2n,1 ≦ n ≦ 3, the discrete parameter value corresponding to the second type parameter is 2, 4, or 6, and if the input configuration parameter is not 2, 4, or 6, the parameter configuration condition is not satisfied.
And under the condition that the input configuration parameters do not meet the parameter configuration conditions, executing a discrete program according to the program interface of the sub callback function in the callback function corresponding to the target device unit so as to reset the input configuration parameters.
For example, if the input configuration parameter is 1, the input configuration parameter is reset to a discrete value 2 closest to the input configuration parameter among the discrete parameter values by executing a discrete program; if the input configuration parameter is 3, resetting the input configuration parameter to be the closest discrete value 2 or 4 of the discrete parameter values to the input configuration parameter by executing the discrete program, based on the rule of the discrete program.
According to the parameter configuration method provided by the embodiment of the application, whether the input configuration parameter is the parameter in the discrete parameter values corresponding to the second type of parameter is detected, and if the input configuration parameter is not any one of the discrete parameter values, the parameter configuration condition is not met. By the method provided by the embodiment of the application, the process of the method can be executed by the input configuration parameters of the second type of parameters, the judgment and the resetting process for the input configuration parameters of the second type of parameters are streamlined, and the execution efficiency and the accuracy of the sub callback function when the input configuration parameters are reset are improved.
On the basis of the foregoing embodiment, an embodiment of the present application further provides a parameter configuration apparatus, configured to perform parameter configuration on a parameterization unit, where the parameterization unit includes: fig. 5 is a schematic structural diagram of a parameter configuration apparatus provided in an embodiment of the present application, and as shown in fig. 5, the apparatus may include:
a detection module 100, configured to detect whether an input configuration parameter for a target device unit meets a parameter configuration condition corresponding to the input configuration parameter;
the resetting module 200 is configured to, if the parameter configuration condition is not satisfied, call a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit, so as to reset the parameter of the target device unit to the target parameter satisfying the parameter configuration condition.
Optionally, before resetting the module 200, the apparatus may further include:
the sub callback function determining module is used for determining a sub callback function corresponding to the input configuration parameter from the callback function corresponding to the target device unit according to the input configuration parameter and the attribute description file of the target device unit; the attribute description file records: and the corresponding relation between each device parameter in the target device unit and the sub callback function.
Optionally, the reset module 200 includes:
and the program execution unit is used for calling the sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit so as to operate the program corresponding to the program interface in the preset program library according to the program interface in the sub callback function corresponding to the input configuration parameter.
Optionally, the preset program library includes: and the plurality of programs are related to the callback functions corresponding to the plurality of device units.
Optionally, the preset program library includes: and a plurality of programs related to callback functions corresponding to a plurality of device units of the same type as the target device unit.
Optionally, if the input configuration parameter is an input configuration parameter for the first type of parameter; the detection module 100 includes:
the first detection unit is used for detecting whether the input configuration parameters are in a parameter range corresponding to the first type parameters;
the first confirming unit is used for not meeting the parameter configuration condition if the parameter is not in the parameter range corresponding to the first type parameter; the target parameter is the maximum or minimum of the parameter range.
Optionally, if the input configuration parameter is an input configuration parameter for the second type of parameter; the detection module 100 includes:
the second detection unit is used for detecting whether the input configuration parameters are parameters in discrete parameter values corresponding to the second type parameters;
the second confirming unit is used for not meeting the parameter configuration condition if the parameter is not any one of the discrete parameter values; the target parameter is the closest discrete value to the input configuration parameter among the discrete parameter values.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 6 is a schematic diagram of a computer device provided in an embodiment of the present application, and as shown in fig. 6, the computer device 300 includes: a processor 301, a storage medium 302 and a bus, wherein the storage medium 302 stores program instructions executable by the processor 301, when the computer device 300 runs, the processor 301 communicates with the storage medium 302 through the bus, and the processor 301 executes the program instructions to execute the method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present invention further provides a storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the above method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and shall be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A parameter configuration method, for configuring a parameterization unit, the parameterization unit comprising: a plurality of device units, each device unit being preconfigured with a corresponding callback function, the method comprising:
detecting whether input configuration parameters aiming at a target device unit meet parameter configuration conditions corresponding to the input configuration parameters or not;
if the parameter configuration condition is not met, calling a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit so as to reset the parameter of the target device unit to the target parameter meeting the parameter configuration condition;
before the calling of the sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit, the method further includes:
determining a sub callback function corresponding to the input configuration parameter from the callback function corresponding to the target device unit according to the input configuration parameter and the attribute description file of the target device unit; the attribute description file records: and the corresponding relation between each device parameter in the target device unit and the sub callback function.
2. The method of claim 1, wherein said invoking a child callback function corresponding to said input configuration parameter in a callback function corresponding to said target device unit comprises:
and calling a sub callback function corresponding to the input configuration parameter in the callback function corresponding to the target device unit so as to operate a program corresponding to the program interface in a preset program library according to the program interface in the sub callback function corresponding to the input configuration parameter.
3. The method of claim 2, wherein the predetermined library comprises: and the plurality of programs are related to callback functions corresponding to the plurality of device units.
4. The method of claim 2, wherein the predetermined library comprises: and a plurality of programs related to callback functions corresponding to a plurality of device units with the same type as the target device unit.
5. The method of claim 1, wherein if the input configuration parameter is an input configuration parameter for a first type of parameter; the detecting whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters includes:
detecting whether the input configuration parameters are in a parameter range corresponding to the first type parameters;
if the parameter is not in the parameter range corresponding to the first type parameter, the parameter configuration condition is not met; the target parameter is the maximum value or the minimum value of the parameter range.
6. The method of claim 1, wherein if the input configuration parameter is an input configuration parameter for a second type of parameter; the detecting whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters comprises the following steps:
detecting whether the input configuration parameters are parameters in discrete parameter values corresponding to the second type parameters;
if the parameter is not any one of the discrete parameter values, the parameter configuration condition is not met; the target parameter is the closest discrete value of the discrete parameter values to the input configuration parameter.
7. A parameter configuration apparatus, configured to perform parameter configuration on a parameterization unit, the parameterization unit comprising: a plurality of device units, each device unit preconfigured with a corresponding callback function, the apparatus comprising:
the detection module is used for detecting whether the input configuration parameters aiming at the target device unit meet the parameter configuration conditions corresponding to the input configuration parameters;
a resetting module, configured to, if the parameter configuration condition is not satisfied, call a sub callback function corresponding to the input configuration parameter in a callback function corresponding to the target device unit, so as to reset the parameter of the target device unit to a target parameter satisfying the parameter configuration condition;
prior to the resetting module, the apparatus further comprises:
a sub callback function determining module, configured to determine, according to the input configuration parameter and the attribute description file of the target device unit, a sub callback function corresponding to the input configuration parameter from the callback function corresponding to the target device unit; the attribute description file records: and the corresponding relation between each device parameter in the target device unit and the sub callback function.
8. A computer device, comprising: a processor, a storage medium and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating via the bus when the computer device is running, the processor executing the program instructions to perform the steps of the parameter configuration method according to any one of claims 1 to 6.
9. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, performs the steps of the parameter configuration method according to any one of claims 1 to 6.
CN202110273849.6A 2021-03-12 2021-03-12 Parameter configuration method and device, computer equipment and storage medium Active CN112949243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110273849.6A CN112949243B (en) 2021-03-12 2021-03-12 Parameter configuration method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110273849.6A CN112949243B (en) 2021-03-12 2021-03-12 Parameter configuration method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112949243A CN112949243A (en) 2021-06-11
CN112949243B true CN112949243B (en) 2023-01-24

Family

ID=76229758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110273849.6A Active CN112949243B (en) 2021-03-12 2021-03-12 Parameter configuration method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112949243B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114859868B (en) * 2022-05-11 2024-04-16 中国第一汽车股份有限公司 Error-proofing processing method for off-line configuration of passenger car combination instrument system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135989A (en) * 2013-03-11 2013-06-05 北京经纬恒润科技有限公司 Callback function code generation method and device
US8726209B1 (en) * 2012-02-14 2014-05-13 C{dot over (a)}dence Design System, Inc. Method and system for automatically establishing a component description format (CDF) debugging environment
US9355130B1 (en) * 2012-07-26 2016-05-31 Cadence Design Systems, Inc. Method and system for component parameter management
CN110968978A (en) * 2019-12-16 2020-04-07 南京九芯电子科技有限公司 MOM capacitance value realization method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8869084B2 (en) * 2012-01-12 2014-10-21 Synopsys, Inc. Parameterized cell layout generation guided by a design rule checker

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8726209B1 (en) * 2012-02-14 2014-05-13 C{dot over (a)}dence Design System, Inc. Method and system for automatically establishing a component description format (CDF) debugging environment
US9355130B1 (en) * 2012-07-26 2016-05-31 Cadence Design Systems, Inc. Method and system for component parameter management
CN103135989A (en) * 2013-03-11 2013-06-05 北京经纬恒润科技有限公司 Callback function code generation method and device
CN110968978A (en) * 2019-12-16 2020-04-07 南京九芯电子科技有限公司 MOM capacitance value realization method

Also Published As

Publication number Publication date
CN112949243A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN109522192B (en) Prediction method based on knowledge graph and complex network combination
US20080178147A1 (en) Apparatus, system, and method for profiling and reusing software development assets
CN102117306A (en) Method and system for monitoring ETL (extract-transform-load) data processing process
CN106991196B (en) Universal data tracing method and system
CN112949243B (en) Parameter configuration method and device, computer equipment and storage medium
CN111694572A (en) Code format conversion method, device, computer equipment and storage medium
CN116384295B (en) Top file generation method and device, computer equipment and storage medium
Xiaoguang et al. A general model for component-based software reliability
CN114168565B (en) Backtracking test method, device and system of business rule model and decision engine
CN109522086B (en) Operation method and device for window, computer device and readable storage medium
CN117472372B (en) Responsive form construction method and system
CN111506362B (en) Processing method, device, storage medium and system for configuration form of game
US8799174B1 (en) Systems and methods for facilitating the reuse of a child workflow process by multiple parent workflow processes
CN113742156B (en) Joint debugging method, joint debugging device, electronic equipment and storage medium
CN112149370B (en) Chip aging static time sequence analysis method and device and electronic equipment
CN111143398B (en) Extra-large set query method and device based on extended SQL function
CN109840259B (en) Data query method and device, electronic equipment and readable storage medium
CN112015423A (en) Data processing system and method
CN111125264A (en) Extra-large set analysis method and device based on extended OLAP model
CN110321280B (en) Data processing method and related equipment
CN113535696B (en) Data cleaning method and device, electronic equipment and medium
CN111125147B (en) Extra-large set analysis method and device based on extended pre-calculation model and SQL function
CN114398366B (en) Heterogeneous data input method and data factory configuration system
EP3738038A1 (en) Design support system and method
US7047507B2 (en) System and method for determining wire capacitance for a VLSI circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant