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

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

lmCloseLib

lmCloseLib => t/nil

Description

Closes the previously opened working library.

Note: Call lmOpenLib before starting any S/SLG command or SKILL function and call lmCloseLib when you are done if you are not using lmLoadData to load the library command file.

Example

lmCloseLib

Closes a working library previously opened by lmOpenLib.

October 2002

635

Product Version 5.0

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

lmDefCell

lmDefCell( <cell name> … <parameters> )

;input and output declaration, and various parameters

;for symbol generation

[input( <term name> <term name> … <term name> )] [output( <term name> <term name> … <term name> )] [io( <term name> <term name> … <term name> )] [switch( <term name> <term name> … <term name> )] [defsymbol( <symbol arguments> )]

;delay parameters and model/element initialization for

;a timing analyzer

[delayTable( <delay arguments> )

[taModelInit( <model initialization arguments> )] [taElmInit( <element initialization arguments> )] [timingViolationTable( <timing violation arguments> )] [ <any S/SLG command or SKILL function> ]

;

;symbol generation takes place (default) symbolGen = t

;timing view generation takes place (default) taGen = t

;append properties to symbol

[lmDefViewProp( <view property arguments> )] ; append properties to terminals of symbol

[lmDefTermProp( <terminal property arguments> )]

)

Description

Defines a cell, generates a symbol, and backannotates objects.

You can use any S/SLG command or SKILL function as an argument. If you specify required parameters, the symbol view of the cell can be automatically generated. You can specify time delay information for a timing analyzer view. In addition, you can specify properties of the symbol view for simulation and other purposes.

Properties

Each argument specified inlmDefCell is sequentially run in addition to default symbol generation and timing view generation. You can add commands (such as lmDefViewProp and lmDefTermProp) to manipulate symbol properties. You can specify a complete characterization of the symbol in the argument.

October 2002

636

Product Version 5.0

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

Variables

You can set the values of several global Boolean variables to change default values. The symbolGen variable controls symbol generation. The default value, t, triggers symbol generation as the first action oflmDefCell. If you set symbolGen to nil, no symbol generation takes place.

The taGen variable controls timing view generation. The default value, t, enables timing view generation if delayTable parameters are specified. If you settaGen to nil, no timing view generation takes place.

Arguments

 

input

Input terminals.

output

Output terminals.

io

Input/output terminals.

switch

Switch terminals.

defsymbol

Symbol generation parameters. Refer to Appendix B, “Text-to-

 

Symbol Generator”, for the format of defsymbol arguments.

delayTable

Timing delay for the input/output pairs of the cell.

taModelInit

Model for a timing analyzer to initialize.

taElmInit

Element for a timing analyzer to initialize.

timingViolationTable Illegal timing.

Example

lmDefCell( aoi32

input(A1 A2 A3 B1 B2) output(Y) lmDefViewProp(

; add some properties to the symbol )

)

Generates a symbol view for the cell aoi32.

October 2002

637

Product Version 5.0

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

lmDefTermProp

lmDefTermProp( [<cell name>] [<view name>]

( <terminal list> <property name> <property value> … <property name> = <property value> )

( <terminal list> <property name> = <property value> … <property name> <property value> )

)

Description

Adds properties to the terminals of the specified cellview. To add terminal properties, add specified properties to the original property list and save the new file.

Variables

The replaceTermProp global variable controls the property-adding mode. The default value is nil, which means the mode is appending. If you set replaceTermProp to t, the mode is replacement. replaceTermProp is automatically set to nil when you run lmDefCell and reset to the original value when finished.

Arguments

 

cell name

Optional only when lmDefTermProp is used in lmDefCell.

 

The first name (not a terminal name) in the argument list is

 

treated as the cell name.

view name

Default: symbol

terminal list

Has the following format:

<terminal list> := <terminal name> | t | input | output | io | switch | ( <terminal name> <terminal name> … <terminal name> )

t

input

output

io

switch

Implies all terminals of the cell. Implies all input terminals. Implies all output terminals. Implies all input/output terminals.

Implies all switch terminals.

Note: If a terminal name is t, input, output, io, or switch, enclose it in quotation marks to distinguish it from the keyword.

October 2002

638

Product Version 5.0

 

Virtuoso Schematic Composer User Guide

 

Symbol and Simulation Library Generator

 

 

property name

Any SKILL symbol (identifier) or string.

property value

Any SKILL expression that returns proper values.

Example

lmDefTermProp( and2 symbol ( A name = "A" )

( B name = "B" ) ( Y name = "Y" )

)

lmDefTermProp( and2

( t create = time("Apr 15 9:00:00 2000") ) ; refer to all terminals

)

lmDefTermProp( and2 symbol ( input a = 1 )

; refer to all input terminals ( Y b = 1.1)

)

lmDefTermProp( and2

( (A B) type = "input")

)

Cell and2 has input terminals A and B and output terminal Y. Puts a list of properties into these terminals.

October 2002

639

Product Version 5.0

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