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

Virtuoso AMS Environment User Guide

Variables for ams.env Files

includeFiles

Specifies a list of files to be included with the‘include directive at the top of each

Verilog-AMS netlist that is created by the AMS netlister.

Syntax

amsDirect.vlog includeFiles string "(file_to_include_1)

{ (file_to_include_N) }"

Values

file_to_include_N Files to be included in the netlist by the ‘include compiler directive. If you list more than a single file, separate the files with spaces. The default is disciplines.vams.

Example

amsDirect.vlog includeFiles string "(disciplines.vams) (func1.h) (func2.h)"

Tells AMS netlister to include the filesfunc1.h and func2.h at the top of the netlist. As a result, the netlist contains the lines:

‘include "disciplines.vams" ‘include "func1.h" ‘include "func2.h"

April 2004

412

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

includeInstCdfParams

Specifies how the AMS netlister handles CDF parameters.

Syntax

amsDirect.vlog includeInstCdfParams boolean t | nil

Values

 

t

For each instance, writes to the netlist all parameters found in the

 

CDF for the instance master.

nil

For each instance, writes to the netlist only CDF parameters

 

actually set on the instance and all CDF parameters containing

 

pPar or atPar expressions. This is the default.

Description

This variable is ignored if the instance master has an ams section in the Simulation Information (simInfo) section of the CDF. In this case, the AMS netlister does only what the simInfo says to do. For more information, see “The ams Fields” on page 585.

April 2004

413

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

initFile

Specifies a SKILL file to be loaded at startup. The function definitions and code in the file are used to override netlist procedures.

Syntax

amsDirect initFile string "path"

Values

 

path

The path and filename of a SKILL file.

 

The path can contain shell environment variables (consisting of

 

a $ followed by alphanumeric characters). A path that begins

 

with a / (slash) is considered an absolute path. A path that

 

does not begin with a / is considered to be relative to the

 

current working directory (CWD).

The file can contain SKILL function definitions and code to override netlist procedures. The user code can call

Core SKILL language functions

DB functions (which begin with db)

DDPI functions (which begin with dd)

CDF functions (which begin with cdf)

AMS functions (which begin with ams)

The SKILL code must not assume that other contexts are loaded by default, though the code can load other contexts as necessary.

Example

amsDirect initFile string "$YOUR_INSTALL_DIR/tools/dfII/local/amsProcs.il"

Tells AMS netlister to load the amsProcs.il file.

April 2004

414

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

instClashFormat

Specifies the format to be used to map the names of instances that collide with names of other netlist constructs.

Syntax

amsDirect.vlog instClashFormat string "format"

Values

 

 

format

All characters, except those listed below, are printed exactly as

 

included in format. The following characters have the

 

indicated special meanings.

 

%b

Original name of the instance

 

%%

Prints the % character

 

The default value of format is %b_instclash, which

 

produces a mapped name like origname_instclash for an

 

instance originally named origname.

If the resulting name is illegal in Verilog-AMS, the name is mapped. If the mapped name clashes with the name of another object, the name undergoes collision mapping.

Example

amsDirect.vlog instClashFormat string "%b_iclash"

Tells AMS netlister to map clashing instance names with a suffixed_iclash. For example, you have an instance samp with a name that clashes with a net named samp. The AMS netlister maps the instance to the system-generated name samp_iclash.

April 2004

415

Product Version 5.3

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