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

Virtuoso Schematic Composer User Guide

Text-to-Symbol Generator

have the symbol pins centered with respect to the symbol box, set this SKILL global variable to nil. The default is t.

tsgResolution

You can use this SKILL global variable to override the default tsg resolution. The resolution defines the granularity for the location of pins, labels, and symbol graphics. The default is undefined, in which case the system uses the snap spacing of the symbol view.

tsgTemplateType

You can use this schematic environment variable to map to a filename with the tsgTemplateMasters variable. TSG uses this environment variable to identify which template file will be loaded during the first run of TSG. For further information, refer to the tsgTemplateType environment variable.

Executing TSG

TSG runs as a separate SKILL program in the Cadence environment to generate symbols that you can place as instances in schematics.

Running TSG from SKILL requires a library name, an input filename, and optionally a template filename. TSG first reads the input parameters from the TSG file, then uses any symbol parameters contained in the template file that are not specified in the input file. This allows you to have one large template file that specifies most of the symbol parameters and smaller TSG files that contain only pin specifications. The resulting cellview is saved to the library identified in the command.

To run TSG in TSG mode, do the following:

1.Start the Cadence design environment.

2.In the CIW, type the SKILL function call

tsg( <libName> <tsgFile> [<tsgTemplateFile>]))

libName is the name of a preexisting library.

tsgFile is the name of the TSG symbol description text file. If the TSG file is not in the current directory, include the full path to the file.

tsgTemplateFile is the name of an optional TSG template file. If the template file is not in the current directory, include the full path to the file.

October 2002

620

Product Version 5.0

Virtuoso Schematic Composer User Guide

Text-to-Symbol Generator

TSG Processing Order

When you run TSG, the following sequence of steps is performed.

1.TSG fetches the first unprocesseddefcell from the tsgFileName file and parses it to extract the symbol information.

Any syntax error messages are displayed in the CIW and the program continues.

2.If the symbol does not exist in the specified library, TSG goes to step 6.

3.If you set the queryMode parameter to t (true), TSG warns you of the existence of the symbol view and asks whether to overwrite the existing symbol with one that it is going to generate.

If you respond yes, TSG goes to step 6. If you respond no, TSG goes to step 4. If you set queryMode to nil (not true), TSG goes to step 6.

4.TSG asks whether you want to save the symbol under a different cell name.

If you respond yes, TSG continues. If you respond no, the symbol is not saved and TSG goes to step 7.

5.TSG asks you to specify a new cell name for the symbol.

6.TSG generates and saves the symbol in the specified library.

7.TSG checks for an unprocessed defcell in the tsgFileName file.

8.If such constructs exist, TSG returns to step 1. If not, it stops execution and passes control to the Cadence design system.

After program execution, you can find any error messages printed by TSG in the Command Interpreter Window (CIW).

Creating Symbols Automatically from a Schematic

A convenient feature available from the schematic editor environment allows you to create a symbol with the same pins that are found within an existing schematic, Verilog, or other cellview.

The TSG symbol generator is automatically invoked whenever you create symbols using the

Create Cellview – From Cellview command or the Create Cellview – From Pin List command, which are available from the schematic and symbol editor windows. You can use the Symbol Generation Options form to override defaults or to help create new TSG template

files.

October 2002

621

Product Version 5.0

Virtuoso Schematic Composer User Guide

Text-to-Symbol Generator

The Symbol Generation Options form can be accessed by turning on the Edit Options button on the Create Cellview – From Cellview command or the Create Cellview – From Pin List command.

October 2002

622

Product Version 5.0

Virtuoso Schematic Composer User Guide

C

Symbol and Simulation Library

Generator

The Cadence® SKILL-based symbol and simulation library generator (S/SLG) is a library management program that generates symbol and simulation views. S/SLG generates a symbol in the library and defines the complete characterization of a symbol for use in computer-aided engineering applications.

This appendix describes the S/SLG commands and program and the library management

SKILL functions used with S/SLG.

Terms and Conventions on page 625

Library Command File on page 626

Running the Symbol and Simulation Library Generator on page 626

Running the Symbol and Simulation Library Generator in the Cadence Graphic Environment on page 626

Running the Symbol and Simulation Library Generator in the Cadence Nongraphic Environment on page 628

Library Management Commands on page 630

lmCheckTerm on page 632

lmCheckView on page 633

lmCloseLib on page 635

lmDefCell on page 636

lmDefTermProp on page 638

lmDefViewProp on page 640

lmDeleteTermProp on page 644

lmDeleteViewProp on page 645

October 2002

623

Product Version 5.0

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

lmGetValue on page 646

lmLoadData on page 647

lmOpenLib on page 648

lmPrintLibTermProp on page 649

lmPrintLibViewProp on page 650

lmPrintTerm on page 651

lmPrintTermProp on page 652

lmPrintViewProp on page 653

lmReset on page 654

lmSimView on page 655

Variables That Control Command Execution on page 657

Properties That Modify Values on page 658

Sample Library Command File on page 658

October 2002

624

Product Version 5.0

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