Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
virtuoso schematic composer_5.0.pdf
Скачиваний:
97
Добавлен:
05.06.2015
Размер:
3.8 Mб
Скачать

Virtuoso Schematic Composer User Guide

Editing Properties

The software highlights the first matching object

If no match exists, a dialog box confirms no objects were found.

5.Click Next.

In the editor window, the software highlights the next matching object.

6.To end the command, click Cancel or close the form window.

Search String Wildcards

Wildcards help you replace properties easily using partial string substitution. You can use one or more wildcards or tagged fields in the search and replace fields on thReplacee form.

Search String

Description

Wildcards

 

 

 

* (asterisk)

Matches zero or more occurrences of any characters

. (period)

Matches any character

[c..]

Matches one of the characters in the set

\ (backslash)

Causes the character following it to be treated normally, if it is { or

 

* or \. Use \\ for a normal \.

 

Referred to as the escape character.

 

 

The system counts each occurrence of an “* ”, “. ” or “[c..]” as one single wildcard, except when the “. ” and “* ” appear together, in that order. In this case, the system counts the two together as one wildcard only.

Replacing Properties

Use the Edit – Search – Replace command to find objects that have a property that matches the search criteria you specify on the Replace form. You can then replace the property or the value with another property or value, which you also specify on the Replace form.

Note: You must have write access to the cellview that contains the property you search for and the cellview that contains the replacement property.

To find and replace properties, do the following:

October 2002

341

Product Version 5.0

Virtuoso Schematic Composer User Guide

Editing Properties

1.Choose Edit – Search – Replace.

The Replace form appears. The title bar reflects the editor name.

2.In the Search For cyclic field, chose the specific property to search for.

When you set the Search For cyclic field toother, the Add New Property to Find/ Replace form appears. When you click OK, the new name appears in the cyclic field on the Find form.

3.Check the object filter to make sure the property is selectable.

4.Click Apply.

If a match exists, a message reports the number of matching properties. If no match exists, a dialog box confirms no objects were found.

October 2002

342

Product Version 5.0

Virtuoso Schematic Composer User Guide

Editing Properties

5.On the Replace form, do one of the following:

Click ReplaceAll to replace all property names and values in the list with the new property names and property values.

Use the Replace and Skip buttons to view individual matches and apply the replacement property name and value as desired.

Replacing String-Tagged Characters

In the Virtuoso® schematic composer, you can use partial strings and wildcards in search- and-replace statements. The table below and the following examples describe the process.

Replace

 

String-Tagged

Description

Characters

 

 

 

{n}

Interprets n as an integer from 1 to 9. Tagged fields correspond to “*

 

or “. ” or “[c..]” or “.* ” in the search string. The first nine

 

wildcards in the search pattern are tagged. If a tagged field that is used

 

in the replace string does not exist, it is replaced by a NULL string.

*nth “*”

Interpreted as {n}, n ranging from 1 to 9. If more than nine wildcards

 

exist in the search string and more than nine *’s in the replace string,

 

the system substitutes the first nine*’s in the replace string with the

 

corresponding nine tagged fields from the search string. The remaining

 

*’s in the replace string are substituted with a NULL string.

\ (backslash)

Causes the character following it to be treated normally, if it is { or * or

 

\. Use \\ for a normal \. Referred to as the escape character.

 

 

Example 1

If you have instances I0, I1, I2, . . . . I10, and you want to replace them with M1, M2, . . . .

M10, enter the following:

Search: I*

Replace: M* or M{1}

October 2002

343

Product Version 5.0

Virtuoso Schematic Composer User Guide

Editing Properties

Example 2

You can specify the tagged fields in any order in the replace string. If you want to swap the start and end values for all buses with prefixABC, enter the following:

Search: ABC<*:*>

Replace: ABC<{2}:{1}>

The {2} tag in the replace string corresponds to the characters represented by the second asterisk in the search string, while {1} corresponds to the characters represented by the first asterisk in the search string.

Example 3

In all buses with prefixABC, keep the start value the same but change the end value to 20.

Search: ABC<*:*>

Replace: ABC<{1}:20> or ABC<*:20>

The {1} tag or * in the replace string corresponds to the characters represented by the first asterisk in the search string.

Example 4

Search for CLK, CLK_, CLK_IN and replace with CLOCK, CLOCK_, CLOCK_IN.

Search: CLK*

Replace: CLOCK{1} or CLOCK*

The {1} tag or * in the replace string corresponds to the characters represented by the asterisk in the search string.

Example 5

You can use any combination of wildcards in the search string. To search for net names A1B1C1, A2B2C2, and so forth, and replace them with P1Q1R1, P2Q2R2, and so forth, you can enter any one of the following:

Search: A[0-9]B[0-9]C[0-9] or

A.B.C. or

A*B*C* or

A[0-9]B.C. or

October 2002

344

Product Version 5.0

Virtuoso Schematic Composer User Guide

Editing Properties

A.B[0-9]C[0-9] or

A*B.C. or

A.B*C*

Replace: P{1}Q{2}R{3} or

P*Q*R*

Example 6

A tagged field can appear any number of times in the replace string. If you want to replace AfooB and AblahB by PfoofooQ and blahblahQ respectively, enter the following:

Search: A*B

Replace: P{1}{1}Q

Example 7

If the wildcards appear together in a sequence in the search string, each corresponds to a different tag except when a “. ” and “* ” appear together, in that order. In this case, the wildcards are treated together as one tag.

If you want to search for a string AxyzB and replace it with CxyzD, enter the following:

Search: A.[x-z]*B

Replace: C*D

The result is CxD and not CxyzD because the “* ” in the replace string is interpreted as the first tagged field, which is the wildcard.“”. To achieve the desired result, you can use C***D or C{1}{2}{3} as the replace string, or use A*B as the search string.

However, suppose you enter the following:

Search: A.*[x-z]B

Replace: C*D

The result is CxyD, because the “* ” in the replace string is interpreted as the first tagged field in the search string, which is the sequence “.* ”.

To achieve the desired result, enter the following:

Search: A*B

Replace: C**D or C{1}{2}

October 2002

345

Product Version 5.0

Virtuoso Schematic Composer User Guide

Editing Properties

Example 8

The character \ can be used to escape wildcard characters in the search-and-replace strings.

If you want to replace A.B by A*B, enter the following:

Search: A*B or A.B

Replace: A\*B

The \ before “* ” in the replace string indicates that the asterisk be treated as a literal and not as a wildcard.

If you had an array A[1], A[2], A[3] A[n] and you wanted to replace all square brackets by curly braces, enter the following:

Search: A\[*] or A\[[0-9]]

Replace: A\{{1}} or A\{*}

The \ before the first{in the replace string means treat the { as a literal and not as a tagged field.

If you want to replace ABC by A\B\C, enter the following:

Search: A[A-Z][A-Z]

Replace: A\\*\\* or A\\{1}\\{2}

Use \\ for each \ that you want to be treated as a normal character. The asterisk following the second backslash in the replace pattern is treated as a wildcard. If the replace string is

A\\\*\\\* instead, then the result is A\*\*.

Example 9

If the search string does not have a wildcard character and the replace string does, a substitution is not achieved. Suppose you had

Search: A1

Replace: P* or P{1}

In this case, the “* ” and {1} in the replace string are treated as normal characters and not as wildcards.

October 2002

346

Product Version 5.0

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]