next up previous contents index
Next: The !svq Command: Save Up: Layout Editing Previous: The !spin Command: Rotate   Contents   Index


The !rename Command: Rename Cells

Syntax: !rename [prefix] [[-s] suffix]
The purpose of the !rename command is to allow modification of all of the cell names in a hierarchy. In Xic, every cell name in the symbol table must be unique. When combining designs from various sources, it is necessary to take measures to avoid name clashes. The !rename command allows the manipulation of prefixes/suffixes of all of the cell names in a hierarchy. For example, each cell name can be prepended with a unique prefix, say the author's initials.

The prefix and suffix are string tokens. If two string tokens are given, the ``-s'', which implies suffix, can be skipped. The string tokens can contain any alphanumeric characters plus `$', `?', `_'. String tokens given in this form will be prepended/appended to the current cell name, and each cell name used in the hierarchy. The string tokens can also have the form /str/sub/ which indicates a substitution. This causes the str if it appears as a prefix/suffix of a cell name to be replaced by sub. The sub can be empty (i.e., the form is /str//) which can be used to undo the previous addition of a prefix or suffix. Forms like //sub/ are equivalent to just giving sub as a string.


next up previous contents index
Next: The !svq Command: Save Up: Layout Editing Previous: The !spin Command: Rotate   Contents   Index
Stephen R. Whiteley 2022-05-28