Product Documentation
Virtuoso Studio Design Environment User Guide
Product Version IC23.1, November 2023

Use of UNIX 'sed' Command in Anonymization

The UNIX 'sed' command helps to process the log files. The Regular expression in the configuration file is passed to sed, which, in turn, identifies the string that needs to be replaced or removed. If the string is unknown, for example the login name of a user, then you need to search for the string User Name and then extract the name of the user as the string to be replaced.

The process has two steps:

Example 1

Consider the following line of the configuration file, which anonymizes the username.

UserName,     ^.*User Name:\s*\(.*\)$,               anonymize, 1

Here, the Regular expression is ^.*User Name:\s*\(.*\)$ and Grp is 1.

The line in the log file is:

\# User Name:   samanthak

In the Regular expression:

The Grp is set to 1 to indicate that this is the value that needs to be replaced.

Example 2

In this example, consider the same regular expression in multiple rules to identify and anonymize schematic library and cell names. For this, we can use a general replay command of the form function("libName" "cellName" "schematic") to identify the library and cell names. For example, the replay command for opening a cellview from the history list is:

\i cv = dbOpenCellViewByType("opamp090" "full_diff_opamp_AC" "schematic")

Now, create a regular expression to identify the argument list. So, for the following argument list:

"opamp090" "full_diff_opamp_AC" "schematic"

The regular expression is as follows:

^.*"\([^"]*\)"\s\+"\([^"]*\)"\s\+"schematic".*$

In this expression, the first two values in the list are used to identify the library and cell names.

The components of the regular expression are as follows:

We can use this expression to create the following rules. These rules use the same regular expression, but use a different Grp to identify the value to anonymize:

Conditions for Anonymization

For anonymization to work, certain conditions must be met. If anonymization fails, diagnostic logs are not submitted automatically.

For anonymization to work, ensure that:

Related Topics

Use of UNIX 'sed' Command in Anonymization


Return to top
 ⠀
X