Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

tsg

tsg(
library
inputFile
[ templateFile ]
)
=> t

Description

The tsg function is used to generate a schematicSymbol type cellview from a tsg (text-to-symbol generator) file. The tsg file, inputFile, is a simple text file that provides a textual description of the symbol.

The tsg file has a pre-specified format which is covered in the Text-to-Symbol Generator appendix in the Virtuoso Schematic Editor User Guide.

Arguments

library

Specifies the name of the pre-existing library (or a library ddId) where the symbol view is to be created.

inputFile

Specifies the tsg file to be used to create symbol from. This ASCII file contains the symbol description and is the primary input file that controls the symbol to be generated by tsg().

As mentioned, the tsg file has a pre-specified format which is discussed in the Text-to-Symbol Generator appendix in the Virtuoso Schematic Editor User Guide.

templateFile

The tsg template file is a secondary, optional, file that specifies default controls for symbols to be generated by tsg. The templateFile uses the same format as the tsg description file.

If specified, its symbol parameters are used as defaults when creating the symbol unless they are overridden by the corresponding parameters set out in the inputFile. Again, you should see Text-to-Symbol Generator for more information.

Value Returned

t

Generates the symbol view.

nil

Cannot create symbol or tsg parsing has failed.

Examples

This will create a symbol view in testlib. The cellName and viewName will be as specified in the tsgFile.

tsg("testlib" "/hm/gblack/tsgFile")

Related Topics

Text-to-Symbol Generator


Return to top
 ⠀
X