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

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

messages, and nil means an error occurred during execution. Error messages can be the result of syntax errors, insufficient arguments, or undefined parameters.

You can direct the output to a file and check it with a text editor, or you can check the output on the screen.

To direct output and error messages to a file, add the following to your library command file:

poport = outfile( filename ) errport = outfile( filename )

You can specify different files for storing the output or error messages, or you can specify the same file. If you want to store them in the same file, use the following command:

poport = errport = outfile( filename )

Library Management Commands

The following table lists the library management (lm) commands in the order described in this section.

Command Name

Description

lmCheckTerm

Checks the consistency of terminal name, type, and

 

width for views of a specified cell

lmCheckView

Evaluates a sequence of expressions for specified

 

cellviews

lmCloseLib

Closes a library previously opened by lmOpenLib

lmDefCell

Defines a cell, generates a symbol, and backannotates

 

objects

lmDefTermProp

Adds properties to terminals of the specified cellview

lmDefViewProp

Adds properties to the specified cellview

lmDeleteTermProp

Deletes properties from the terminals of specified views

lmDeleteViewProp

Deletes properties from the specified view

lmGetValue

Returns the value of a specified property in the

 

referenced view

lmLoadData

Loads a library command file

lmOpenLib

Opens a library

October 2002

630

Product Version 5.0

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

Command Name

Description

lmPrintLibTermProp

Prints terminal properties of a view for each cell in the

 

current library

lmPrintLibViewProp

Prints properties of the specified view for each cell in the

 

current library

lmPrintTerm

Prints names, types, and widths of all terminals of the

 

specified cellviews

lmPrintTermProp

Prints properties of all terminals of a cellview

lmPrintViewProp

Prints properties of all specified cellviews

lmReset

Resets all global variables to their default values

lmSimView

Creates a view with specified properties for a cell

October 2002

631

Product Version 5.0

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

lmCheckTerm

lmCheckTerm( <cell list> [<filename>]

)

Description

Checks the consistency of terminal name, type, and width for all views of each specified cell.

If there is a schematic view, terminals in the schematic view are used as the basis of comparison for each cell. Otherwise, terminals in the symbol view are used as the basis of comparison. When neither schematic nor symbol view exists, no terminal checking is performed. After checking, inconsistent terminal names/widths and input/output types are identified and printed.

Arguments

 

cell list

<cell list> := <cell name> | t | (<cell name> …

 

<cell name>)

 

If cell list is t, all views of the specified cell are implied.

filename

Name of a file where the printout is stored. If not specified, output

 

is displayed on the screen.

Examples

lmCheckTerm( (and2 and3) "check.out" )

Checks the terminal consistency of all views for the cells and2 and and3 and puts output in the filecheck.out.

lmCheckTerm( t )

Checks the terminal consistency of all views for each cell in the current library.

October 2002

632

Product Version 5.0

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

lmCheckView

lmCheckView( <cell list> <view name> [<filename>]

<expression> … <expression>

)

Description

Evaluates a sequence of expressions for each specified cellview. Checks the property value for consistency.

Property values can be included in an expression. The expressions should conform to SKILL syntax. After evaluation, the result is printed for each expression.

Arguments

 

cell list

<cell list> := <cell name> | t | (<cell name> …

 

<cell name>)

view name

Default: symbol

filename

Name of a file where the printout is stored. If not specified, output

 

is displayed on the screen.

expression

A property used in an expression refers to the property in <view

 

name>.

Examples

fast_process = t margin = 1ns

lmCheckView( (and2 and3) symbol if( fast_process then

sum = 5ns trmax = 4ns tfmax = 3ns

else

sum = 9ns trmax = 6ns tfmax = 5ns

)

lmGetValue(tr) < trmax lmGetValue(tf) < tfmax

lmGetValue(tr) + lmGetValue(tf) <- sum + margin

)

October 2002

633

Product Version 5.0

Virtuoso Schematic Composer User Guide

Symbol and Simulation Library Generator

Checks some conditions for the rise and fall time in the symbol view of and2 and and3. The property names tr and tf contain the rise and fall times. The predefined function lmGetValue gets the value of the specified property.

lmCheckView( t spice

gammaValue = lmGetValue(gamma) lambdaValue = lmGetValue(lambda) gammaValue < 0.4

lamdaValue < 0.04

)

Checks the values of the properties gamma and lambda in the spice view for each cell in the current library.

October 2002

634

Product Version 5.0

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