patents.google.com

CN111859312B - Protection method and device for initial parameter value - Google Patents

  • ️Fri Dec 30 2022

CN111859312B - Protection method and device for initial parameter value - Google Patents

Protection method and device for initial parameter value Download PDF

Info

Publication number
CN111859312B
CN111859312B CN202010783043.7A CN202010783043A CN111859312B CN 111859312 B CN111859312 B CN 111859312B CN 202010783043 A CN202010783043 A CN 202010783043A CN 111859312 B CN111859312 B CN 111859312B Authority
CN
China
Prior art keywords
corresponding relation
initial value
parameter
establishing
global variable
Prior art date
2020-08-06
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
CN202010783043.7A
Other languages
Chinese (zh)
Other versions
CN111859312A (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.)
2020-08-06
Filing date
2020-08-06
Publication date
2022-12-30
2020-08-06 Application filed by Quanxin Integrated Circuit Manufacturing Jinan Co Ltd filed Critical Quanxin Integrated Circuit Manufacturing Jinan Co Ltd
2020-08-06 Priority to CN202010783043.7A priority Critical patent/CN111859312B/en
2020-10-30 Publication of CN111859312A publication Critical patent/CN111859312A/en
2022-12-30 Application granted granted Critical
2022-12-30 Publication of CN111859312B publication Critical patent/CN111859312B/en
Status Active legal-status Critical Current
2040-08-06 Anticipated expiration legal-status Critical

Links

  • 238000000034 method Methods 0.000 title claims abstract description 50
  • 238000013461 design Methods 0.000 description 10
  • 230000008569 process Effects 0.000 description 9
  • 238000010586 diagram Methods 0.000 description 4
  • 230000009471 action Effects 0.000 description 3
  • 238000012423 maintenance Methods 0.000 description 3
  • 238000004519 manufacturing process Methods 0.000 description 3
  • 229910021420 polycrystalline silicon Inorganic materials 0.000 description 3
  • 229920005591 polysilicon Polymers 0.000 description 3
  • 238000011161 development Methods 0.000 description 2
  • 238000004364 calculation method Methods 0.000 description 1
  • 230000008859 change Effects 0.000 description 1
  • 238000009795 derivation Methods 0.000 description 1
  • 238000005516 engineering process Methods 0.000 description 1
  • 238000012986 modification Methods 0.000 description 1
  • 230000004048 modification Effects 0.000 description 1
  • 230000003287 optical effect Effects 0.000 description 1
  • 238000012545 processing Methods 0.000 description 1
  • 238000003672 processing method Methods 0.000 description 1
  • 230000000750 progressive effect Effects 0.000 description 1

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/105Arrangements for software license management or administration, e.g. for managing licenses at corporate level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • Multimedia (AREA)
  • Automation & Control Theory (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a method and a device for protecting an initial value of a parameter, wherein the method comprises the following steps: determining a parameter corresponding to an initial value to be protected in a program, wherein the initial value to be protected and the parameter have a first corresponding relation; carrying out global variable assignment on the parameters based on the first corresponding relation, and establishing a second corresponding relation between the parameters and the global variables; traversing the program, and replacing the first corresponding relation with the second corresponding relation; and establishing a third corresponding relation between the initial value to be protected and the global variable and setting access authority for the third corresponding relation. According to the method, the first corresponding relation is replaced by the second corresponding relation composed of the global variable and the parameter, the initial value is displayed based on the third corresponding relation, the initial value is not contained in the program, the initial value in the third corresponding relation can be accessed only by the access right, and the initial value is not disclosed in the program and the initial value, so that the protection of the initial value is realized.

Description

Protection method and device for initial parameter value

Technical Field

The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for protecting an initial value of a parameter.

Background

The initial value of the parameter of the parameterization unit (PCell) is generally the minimum rule in the design rules, and the initial value of the parameter of the traditional parameterization unit can be placed in a property bag (property bag) or directly assigned.

In any processing method of the initial values of the parameters, the initial values of the parameters are released to all users using the parameterization units, which is easy to cause leakage.

Disclosure of Invention

In view of this, the present invention provides a method and an apparatus for protecting an initial value of a parameter, which are used to solve the problem that the initial value of the parameter is open to all users using a parameterization unit in the prior art, which is easy to cause secret leakage. The specific scheme is as follows:

a protection method for parameter initial values comprises the following steps:

determining a parameter corresponding to an initial value to be protected in a program, wherein the initial value to be protected and the parameter have a first corresponding relation;

carrying out global variable assignment on the parameters based on the first corresponding relation, and establishing a second corresponding relation between the parameters and global variables;

traversing the program, and replacing the first corresponding relation with the second corresponding relation;

and establishing a third corresponding relation between the initial value to be protected and the global variable and setting access authority for the third corresponding relation.

Optionally, in the method, based on the first corresponding relationship, global variable assignment is performed on the parameter, and a second corresponding relationship between the parameter and the global variable is established, where the method includes:

defining the global variable based on a preset naming rule;

and replacing the initial value in the first corresponding relation with the global variable, and establishing a second corresponding relation between the parameter and the global variable.

The above method, optionally, further includes:

acquiring an establishing mode of the third corresponding relation;

and selecting an acquisition mode corresponding to the establishment mode, and acquiring the initial value to be protected according to the acquisition mode.

Optionally, the foregoing method, traversing the program, and replacing the first corresponding relationship with the second corresponding relationship, includes:

acquiring an identifier of the first corresponding relation;

traversing the program, and searching the position of the first corresponding relation in the program based on the identification;

replacing the first correspondence with the second correspondence at the location.

The above method, optionally, further includes:

and adjusting the initial value to be protected under the condition that the access authority allows.

A protection device for parameter initial values, comprising:

the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a parameter corresponding to an initial value to be protected in a program, and the initial value to be protected and the parameter have a first corresponding relation;

the establishing module is used for carrying out global variable assignment on the parameters based on the first corresponding relation and establishing a second corresponding relation between the parameters and the global variables;

a replacing module, configured to traverse the program and replace the first corresponding relationship with the second corresponding relationship;

and the establishing and permission setting module is used for establishing a third corresponding relation between the initial value to be protected and the global variable and setting access permission for the third corresponding relation.

The above apparatus, optionally, the establishing module includes:

the defining unit is used for defining the global variable based on a preset naming rule;

and the replacing and establishing unit is used for replacing the initial value in the first corresponding relation with the global variable and establishing a second corresponding relation between the parameter and the global variable.

The above apparatus, optionally, further comprises:

a mode acquiring unit, configured to acquire an establishment mode of the third correspondence;

and the selecting and acquiring unit is used for selecting an acquiring mode corresponding to the establishing mode and acquiring the initial value to be protected according to the acquiring mode.

The above apparatus, optionally, the replacing module includes:

an identifier obtaining unit, configured to obtain an identifier of the first corresponding relationship;

the searching unit is used for traversing the program and searching the position of the first corresponding relation in the program based on the identification;

a replacing unit, configured to replace the first corresponding relationship with the second corresponding relationship at the position.

The above apparatus, optionally, further comprises:

and the adjusting module is used for adjusting the initial value to be protected under the condition that the access authority allows.

Compared with the prior art, the invention has the following advantages:

the invention discloses a method and a device for protecting an initial value of a parameter, wherein the method comprises the following steps: determining a parameter corresponding to an initial value to be protected in a program, wherein the initial value to be protected and the parameter have a first corresponding relation; carrying out global variable assignment on the parameters based on the first corresponding relation, and establishing a second corresponding relation between the parameters and the global variables; traversing the program, and replacing the first corresponding relation with the second corresponding relation; and establishing a third corresponding relation between the initial value to be protected and the global variable and setting access authority for the third corresponding relation. According to the method, the first corresponding relation is replaced by the second corresponding relation composed of the global variable and the parameter, the initial value is displayed based on the third corresponding relation, the initial value is not contained in the program, the initial value in the third corresponding relation can be accessed only by the access right, and the initial value is not disclosed in the program and the initial value, so that the protection of the initial value is realized.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.

Fig. 1 is a flowchart of a protection method for initial values of parameters disclosed in an embodiment of the present application;

fig. 2 is a schematic diagram of a third correspondence form disclosed in the embodiment of the present application;

FIG. 3 is a diagram illustrating a MOS definition according to an embodiment of the present application;

fig. 4 is a block diagram of a protection device for initial parameter values according to an embodiment of the present disclosure.

Detailed Description

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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

The invention discloses a method and a device for protecting initial values of parameters, which are applied to the protection process of the initial values in a program, wherein the writing form of the program is not limited in the embodiment of the invention, preferably, the manufacturing process of a layout is taken as an example for illustration in the embodiment of the invention, the program can be a layout program, as the process is more and more advanced, the complexity of a device architecture and various designs on the size of the device cause the layout engineer to frequently change the parameter values in the manufacturing process, the existing changing mode of the parameter values is open, all people can see and modify the initial values, and the risk of leakage exists, for example, the direct assignment of the fixed values can cause the difficulty in subsequent maintenance of a parameterized unit, the developer in the subsequent maintenance of the parameterized unit can not clearly know the background of the fixed values assigned at first time, and can only guess possible sources according to experience, so that when the experience of the developer is not enough, the developer can easily misunderstand the initial settings. In addition, even an experienced developer has to spend a long time, and it is necessary to understand the background of the initial assignment one by one, which causes more time cost for maintenance, or, based on the parameterized data bag, preferably, the parameterized data bag can be a scheme of controlling parameters provided by EDA to the parameterized unit developer or other preferred parameterized data bags. Since the commands are open to all software users, any user accessing the parameterized unit can get the same content through these commands.

In order to solve the above problems, the present invention provides a method for protecting initial parameter values, which uses a parameterization unit to protect the initial parameter values, and provides the parameterization unit, so that a layout engineer can use a device (DRC Clean) meeting the production specifications of a wafer factory at will to avoid misusing a wrong device and accelerate the time course of layout completion. The execution flow of the protection method is shown in fig. 1, and includes the steps of:

s101, determining a parameter corresponding to an initial value to be protected in a program, wherein the initial value to be protected and the parameter have a first corresponding relation;

in the embodiment of the present invention, the initial value to be protected is specified by a developer, the initial value to be protected specified by the developer is received, the program is traversed, and a parameter corresponding to the initial value to be protected is determined based on a first corresponding relationship between the initial value to be protected and the parameter, where the determination process may be based on the initial value to be protected, or may be a preset identifier or other preferred determination manner. Wherein, the first relation may exist in the form of "xyz =123", xyz represents a parameter, and 123 represents an initial value to be protected.

S102, carrying out global variable assignment on the parameters based on the first corresponding relation, and establishing a second corresponding relation between the parameters and global variables;

in the embodiment of the present invention, based on the first corresponding relationship, global variable assignment is performed on the parameter in the first corresponding relationship, and a second corresponding relationship between the parameter and the global variable is established, where the assignment process is as follows: the global variable is defined based on a preset naming rule, wherein the preset naming rule can be set based on experience or specific conditions. For example, the design rule manual defines the minimum Width of Poly to be 40nm, and assumes that the naming rule of our variables is "company name _ process node _ layer name _ parameter category _ parameter subcategory", then a global variable may be defined according to this naming convention as qxic _40nm _poly _width _ min, and an initial value is given by qxic _40nm _poly _withtdth _min =40nm, and then when a parameterization unit is developed, a content value of 40nm can be obtained by obtaining this variable as long as the minimum Width setting of Poly is concerned. The design manual is defined in a plurality of elements, all rules can define a unique name through the naming mode, and a developer who subsequently takes over to maintain the parameterized unit can also clearly express the content of the parameterized unit from the variable naming rule. And after the global variable is determined, replacing the initial value in the first corresponding relation with the global variable to obtain a second corresponding relation between the parameter and the global variable.

The definition of the global variable and the design of the parameterized cell are both defined by the parameterized cell developer, and through the consistent setting of the two, for example, defining a global variable abc =123, the developer can directly obtain the content 123 of the global variable by using the second corresponding relationship "xyz = abc". Because the parameterization unit can directly obtain the content of the global variable, the process is only known by the developer, and related problems similar to bag derivation do not exist.

S103, traversing the program, and replacing the first corresponding relation with the second corresponding relation;

in the embodiment of the present invention, for the first corresponding relationship, the program may appear multiple times in the program, preferably, the program is traversed, the first corresponding relationship is searched in the program based on an identifier, a keyword, or another preferred search method, and for each corresponding relationship in the program, the corresponding relationship is replaced with the second corresponding relationship between the global variable and the parameter, so far, the program does not have the parameter value to be protected, leakage of the parameter value to be protected is avoided, and protection of the parameter value to be protected is achieved.

S104, establishing a third corresponding relation between the initial value to be protected and the global variable and setting access authority for the third corresponding relation.

In the embodiment of the present invention, a third corresponding relationship is established for the initial value to be protected and the global variable, preferably, the existence form of the third corresponding relationship is as shown in fig. 2, wherein a second corresponding relationship is stored in the parameterization unit library: "parameter C = parameter a, parameter D = parameter B, and parameter E = parameter a and parameter B calculation result", the second correspondence relationship is open to the user. The third correspondence relationship: "parameter a =100, parameter B =200" is stored in the EDA tool, the second correspondence is stored separately from the third correspondence, and an access right is set in advance for the third correspondence, and the access right may include: viewing, adjusting or deleting, and the like, and performing different operations according to different access rights, for example, adjusting the initial value to be protected under the condition that the access rights allow, or providing an alternative value for a user to select. For example, taking MOS transistors as an example, as shown in fig. 3, the foundry usually limits the minimum width (min.width), minimum distance (min.spacing) or minimum envelope (min.envelope) of each layer, such as: minimum polysilicon spacing, minimum spacing of polysilicon to contact holes, minimum polysilicon width, and minimum enclosure of active region and contact holes. These values are defined in a design rule manual provided to the customer by the foundry. When we develop parameterized units, all specified values in the design rule manual must also be met.

Further, the establishment mode of the third corresponding relationship may also be based on other tools, and a corresponding relationship is established in advance for the establishment mode and the acquisition mode of the initial value to be protected, when the initial value to be protected needs to be acquired, the establishment mode of the third corresponding relationship is firstly determined, the acquisition mode corresponding to the establishment mode is selected, and the initial value to be protected is acquired according to the acquisition mode.

Further, if a plurality of parameters to be protected exist in the program, S101-S104 are repeatedly executed until all the parameters to be protected in the program are processed based on the method.

The invention discloses a method and a device for protecting an initial value of a parameter, wherein the method comprises the following steps: determining a parameter corresponding to an initial value to be protected in a program, wherein the initial value to be protected and the parameter have a first corresponding relation; carrying out global variable assignment on the parameters based on the first corresponding relation, and establishing a second corresponding relation between the parameters and the global variables; traversing the program, and replacing the first corresponding relation with the second corresponding relation; and establishing a third corresponding relation between the initial value to be protected and the global variable and setting access authority for the third corresponding relation. According to the method, the first corresponding relation is replaced by the second corresponding relation composed of the global variable and the parameter, the initial value is displayed based on the third corresponding relation, the initial value is not contained in the program, the initial value in the third corresponding relation can be accessed only by the access right, and the initial value is not disclosed in the program and the initial value, so that the protection of the initial value is realized.

In the embodiment of the present invention, based on the protection method, a developer may write the program based on the following principle:

(1) Through changing the name of the designated parameter, the problem of opening the design rule is solved, and the purpose of protecting the design rule is realized.

(2) The parameter name naming mode can be used for formulating a preset naming rule, so that the problem of inconsistent naming of variables of the development parameterization units is avoided, and the development of automation programs is easy to practice.

The naming rule must be meaningful, and can include the practical function of the parameterizable unit, the name of the design rule, and the customized description

(3) When the variable is defined as the global variable, the function of variable reuse can be practiced, and the condition that the variable definition is inconsistent when a single rule is repeatedly used is avoided. For example: assuming we have defined qxic _40nm _poly _ _withtdth _min =40nm, this variable, when used in different devices, can be obtained through a global variable, for example an nmos parameter named nch _ poly _ width, used to adjust nmos's channellength, then there may be defined in the parameterization unit nch _ poly _ width = qxic _40nm _ poly _ width _ min, and if pmos also has a similar parameter name pch _ poly _ width, then the same global variable may still be used for repeated assignment, such as pch _ poly _ width = qxic _40nm _ poly _ width _ min.

Based on the above protection method for parameter initial values, in an embodiment of the present invention, a protection device for parameter initial values is provided, a structural block diagram of the protection device is shown in fig. 4, and the protection method includes:

a

determination module

201, an

establishment module

202, a

replacement module

203, and an establishment and

rights setting module

204.

Wherein,

the determining

module

201 is configured to determine a parameter corresponding to an initial value to be protected in a program, where the initial value to be protected and the parameter have a first corresponding relationship;

the establishing

module

202 is configured to perform global variable assignment on the parameter based on the first corresponding relationship, and establish a second corresponding relationship between the parameter and the global variable;

the replacing

module

203 is configured to traverse the program and replace the first corresponding relationship with the second corresponding relationship;

the establishing and

permission setting module

204 is configured to establish a third corresponding relationship between the initial value to be protected and the global variable, and set an access permission for the third corresponding relationship.

The invention discloses a protection device for parameter initial value, comprising: determining a parameter corresponding to an initial value to be protected in a program, wherein the initial value to be protected and the parameter have a first corresponding relation; carrying out global variable assignment on the parameters based on the first corresponding relation, and establishing a second corresponding relation between the parameters and the global variables; traversing the program, and replacing the first corresponding relation with the second corresponding relation; and establishing a third corresponding relation between the initial value to be protected and the global variable and setting access authority for the third corresponding relation. According to the device, the first corresponding relation is replaced by the second corresponding relation composed of the global variable and the parameter, the initial value is displayed based on the third corresponding relation, the initial value is not contained in the program, the initial value in the third corresponding relation can be accessed only by the access right, and the initial value is not disclosed in the program and the initial value, so that the protection of the initial value is realized.

In this embodiment of the present invention, the establishing

module

202 includes:

a definition unit 205 and a replacement and creation unit 206.

Wherein,

the defining unit 205 is configured to define the global variable based on a preset naming rule;

the replacing and establishing unit 206 is configured to replace the initial value in the first corresponding relationship with the global variable, and establish a second corresponding relationship between the parameter and the global variable.

In this embodiment of the present invention, the establishing

module

202 further includes:

a mode acquisition unit 207 and a selection and acquisition unit 208.

Wherein,

the mode acquiring unit 207 is configured to acquire an establishment mode of the third correspondence;

the selecting and acquiring unit 208 is configured to select an acquiring manner corresponding to the establishing manner, and acquire the initial value to be protected according to the acquiring manner.

In this embodiment of the present invention, the replacing

module

203 includes:

an identity acquisition unit 209, a lookup unit 210 and a replacement unit 211.

Wherein,

the identifier obtaining unit 209 is configured to obtain an identifier of the first corresponding relationship;

the searching unit 210 is configured to traverse the program, and search a position of the first corresponding relationship in the program based on the identifier;

the replacing unit 211 is configured to replace the first corresponding relationship with the second corresponding relationship at the position.

In the embodiment of the present invention, the protection device further includes: an adjustment module 212.

Wherein,

the adjusting module 212 is configured to adjust the initial value to be protected under the condition that the access right allows.

It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and reference may be made to the partial description of the method embodiment for relevant points.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in one or more of software and/or hardware in implementing the invention.

From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.

The method and the device for protecting the initial values of the parameters provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for protecting an initial value of a parameter, comprising:

determining a parameter corresponding to an initial value to be protected in a program, wherein the initial value to be protected and the parameter have a first corresponding relation;

carrying out global variable assignment on the parameters based on the first corresponding relation, and establishing a second corresponding relation between the parameters and the global variables;

traversing the program, and replacing the first corresponding relation with the second corresponding relation;

and establishing a third corresponding relation between the initial value to be protected and the global variable and setting access authority for the third corresponding relation.

2. The method according to claim 1, wherein performing global variable assignment on the parameter based on the first corresponding relationship, and establishing a second corresponding relationship between the parameter and a global variable comprises:

defining the global variable based on a preset naming rule;

and replacing the initial value in the first corresponding relation with the global variable, and establishing a second corresponding relation between the parameter and the global variable.

3. The method of claim 2, further comprising:

acquiring an establishing mode of the third corresponding relation;

and selecting an acquisition mode corresponding to the establishment mode, and acquiring the initial value to be protected according to the acquisition mode.

4. The method of claim 1, wherein traversing the program to replace the first correspondence with the second correspondence comprises:

acquiring an identifier of the first corresponding relation;

traversing the program, and searching the position of the first corresponding relation in the program based on the identification;

replacing the first correspondence with the second correspondence at the location.

5. The method of claim 1, further comprising:

and adjusting the initial value to be protected under the condition that the access authority allows.

6. A protection apparatus for initial value of parameter, comprising:

the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a parameter corresponding to an initial value to be protected in a program, and the initial value to be protected and the parameter have a first corresponding relation;

the establishing module is used for carrying out global variable assignment on the parameters based on the first corresponding relation and establishing a second corresponding relation between the parameters and global variables;

a replacing module, configured to traverse the program and replace the first corresponding relationship with the second corresponding relationship;

and the establishing and permission setting module is used for establishing a third corresponding relation between the initial value to be protected and the global variable and setting access permission for the third corresponding relation.

7. The apparatus of claim 6, wherein the establishing module comprises:

the defining unit is used for defining the global variable based on a preset naming rule;

and the replacing and establishing unit is used for replacing the initial value in the first corresponding relation with the global variable and establishing a second corresponding relation between the parameter and the global variable.

8. The apparatus of claim 7, further comprising:

a mode acquiring unit, configured to acquire an establishment mode of the third correspondence;

and the selecting and acquiring unit is used for selecting an acquiring mode corresponding to the establishing mode and acquiring the initial value to be protected according to the acquiring mode.

9. The apparatus of claim 6, wherein the replacement module comprises:

an identifier obtaining unit, configured to obtain an identifier of the first corresponding relationship;

the searching unit is used for traversing the program and searching the position of the first corresponding relation in the program based on the identification;

a replacing unit, configured to replace the first corresponding relationship with the second corresponding relationship at the position.

10. The apparatus of claim 6, further comprising:

and the adjusting module is used for adjusting the initial value to be protected under the condition that the access authority allows.

CN202010783043.7A 2020-08-06 2020-08-06 Protection method and device for initial parameter value Active CN111859312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010783043.7A CN111859312B (en) 2020-08-06 2020-08-06 Protection method and device for initial parameter value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010783043.7A CN111859312B (en) 2020-08-06 2020-08-06 Protection method and device for initial parameter value

Publications (2)

Publication Number Publication Date
CN111859312A CN111859312A (en) 2020-10-30
CN111859312B true CN111859312B (en) 2022-12-30

Family

ID=72972570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010783043.7A Active CN111859312B (en) 2020-08-06 2020-08-06 Protection method and device for initial parameter value

Country Status (1)

Country Link
CN (1) CN111859312B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685987B (en) * 2020-12-23 2023-04-07 泉芯集成电路制造(济南)有限公司 Parameterized unit and implementation method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807157A (en) * 2010-03-30 2010-08-18 南京恩瑞特实业有限公司 Defensive programming method based on function access global variables
CN102841782A (en) * 2011-06-23 2012-12-26 腾讯科技(深圳)有限公司 Global variable managing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6922659B2 (en) * 1998-02-26 2005-07-26 Micron Technology, Inc. Parameter population of cells of a hierarchical semiconductor structure via file relation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807157A (en) * 2010-03-30 2010-08-18 南京恩瑞特实业有限公司 Defensive programming method based on function access global variables
CN102841782A (en) * 2011-06-23 2012-12-26 腾讯科技(深圳)有限公司 Global variable managing method and device

Also Published As

Publication number Publication date
CN111859312A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
JP7004661B2 (en) 2022-01-21 Machine learning system training method and training system
US9568908B2 (en) 2017-02-14 Industrial automation app-store
CN107547262A (en) 2018-01-05 Generation method, device and the Network Management Equipment of alarm level
CN107122365A (en) 2017-09-01 The access method and device of heterogeneous database
US10860697B2 (en) 2020-12-08 Private content in search engine results
US20140244784A1 (en) 2014-08-28 Website Impersonation System and Method
CN109840257A (en) 2019-06-04 Data base query method, device, computer installation and readable storage medium storing program for executing
CN111859312B (en) 2022-12-30 Protection method and device for initial parameter value
JP6884435B2 (en) 2021-06-09 Partner company supply chain risk analysis method
US20200133641A1 (en) 2020-04-30 Machine learning models for customization of a graphical user interface
Ochoa et al. 2017 A survey on scalability and performance concerns in extended product lines configuration
CN105426744B (en) 2019-02-01 A kind of setting method and device of cryptoguard problem
CN108288001B (en) 2022-11-08 Method and device for constructing organization architecture
CN116541372A (en) 2023-08-04 Data asset management method and system
CN116643811A (en) 2023-08-25 Method and device for configuring algorithm parameters of machine vision platform
Choudhary et al. 2020 On approximating the nearest Ω‐stable matrix
JPH1058280A (en) 1998-03-03 Fabricating process designing system
CN110287444B (en) 2021-06-25 Website detection method and device and storage medium
CN105703964A (en) 2016-06-22 Online application system test method and equipment
US11783058B2 (en) 2023-10-10 Enhancing security in a content management system
US7539554B2 (en) 2009-05-26 Tape out template system and method
CN114386092A (en) 2022-04-22 Authority control method applied to semiconductor process equipment and semiconductor process equipment
CN113204776A (en) 2021-08-03 Method, device, equipment and storage medium for realizing column encryption
Vente 2023 Advancing Automation of Design Decisions in Recommender System Pipelines
JP4539214B2 (en) 2010-09-08 Design support method and apparatus

Legal Events

Date Code Title Description
2020-10-30 PB01 Publication
2020-10-30 PB01 Publication
2020-11-17 SE01 Entry into force of request for substantive examination
2020-11-17 SE01 Entry into force of request for substantive examination
2022-12-30 GR01 Patent grant
2022-12-30 GR01 Patent grant