Template cells differ from ordinary cells in the following ways:
cellnameXXXwhere the cellname is arbitrary, but must be followed by the characters ``XXX'' (three upper-case `X' characters). The ``XXX'' is replaced internally by an identifying code which is used to distinguish between instances with different parameter sets.
length=100,width=20,bottom=2,layer=R1Each of the length, width, etc. are arbitrary parameter names, that is, names of variables used in the script, but not generally defined in the script. The values are taken as default values for the parameters, and can be numeric values or strings. If a value string contains white space, it must be double quoted ("like this"). If the value token is a string constant, i.e., the double quotes should be preserved, then the value should be both single and double quoted ('"like this"'). The value string can also be an executable code fragment using only parameters already defined (to the left) and constants, for example
param1=2,param2="param1 + 1"
Either the physical or electrical part of a symbol can be a template cell, or both. A template cell can contain geometry, subcells, and properties just like any other cell.