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

Virtuoso AMS Environment User Guide

Variables for ams.env Files

compileAsAMS

Specifies whether a Verilog file is handled as a Verilog-AMS file during compilation.

Syntax

amsDirect.vlog compileAsAMS boolean t | nil

Values

 

t

All Verilog files are compiled with the-ams option. This is the

 

default.

nil

Verilog files with the extensions.vams or .va are compiled with

 

the -ams option. Verilog files with the extension.v are compiled

 

without the -ams option. If a Verilog file is actually a link, the

 

decision to use or omit the -ams option is based on the extension

 

of the name of the physical file that is the target of the link.

Description

You can use this variable to specify that Verilog-D files are not to be compiled with the-ams option. You might need to avoid using the -ams option, for example, if the Verilog-D files that you are compiling contain identifiers that are keywords in Verilog-AMS.

AMS Designer assumes that any file (or target of a file that is a link) with .av extension contains Verilog-D code.

Example

amsDirect.vlog compileAsAMS boolean t

Tells AMS Design Prep to compile Verilog-D files with the-ams option. As a result, the generated command might look like this.

ncvlog -ams

April 2004

396

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

compileExcludeLibs

Specifies libraries to be excluded when AMS Design Prep runs in compile all mode.

Syntax

amsDirect.prep compileExcludeLibs string "list_of_libraries"

Values

list_of_libraries A list of library names separated by white space. Libraries with these names are not considered when AMS Design Prep runs in compile all mode. The default is an empty string.

Description

In compile all mode (such as when the compileMode variable is set to "all"), the default behavior of AMS Design Prep is to compile every cell referenced in the design hierarchy. However, when you use the compileExcludeLibs variable, cells in the design hierarchy that belong to a library listed in list_of_libraries are not compiled.

Read-only cellviews are never compiled. Nevertheless, if your design uses many cells from read-only libraries, the compile all step might run faster if you include those read-only libraries in list_of_libraries.

Example

amsDirect.prep compileExcludeLibs string "compiledLib readOnlyLib"

Tells AMS Design Prep not to attempt to compile any cells that belong to either the compiledLib or the readOnlyLib library.

April 2004

397

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

compileMode

Specifies the conditions under which AMS Design Prep (working through the AMS netlister) compiles modules. When a module to be compiled is a VHDL or VHDL-AMS module, both the entity and the architecture are compiled.

Syntax

amsDirect.prep compileMode cyclic "none" | "incremental" | "all"

Values

 

none

Specifies that nothing is to be compiled.

incremental

Specifies that only newly netlisted modules are to be compiled.

 

This is the default.

all

Specifies that, for each cellview in the design configuration, the

 

ncvlog or ncvhdl compiler is to compile the netlist specified by

 

the master.tag file for the view. If the master netlist is a Verilog,

 

Verilog-A, or Verilog-AMS file, thencvhdl compiler also

 

compiles the first netlist found in files namedvhdl.vhms or

 

vhdl.vhd (in that order). If the master netlist is a VHDL or

 

VHDL-AMS file, thencvlog compiler also compiles the first

 

netlist found in files namedverilog.vams, verilog.va,

 

verilog.v, or veriloga.va (in that order), These

 

compilations occur whether or not the cell is netlisted in this run.

 

Note that AMS Design Prep issues an error if the netlist specified

 

by the master.tag file is a VHDL-AMS file, but the installed

 

simulator does not support VHDL-AMS.

 

AMS Design Prep compiles VHDL (digital) and VHDL-AMS

 

design units in an order that resolves compilation order

 

dependencies.

 

If there is no master.tag file for the cellview, thencvlog

 

compiler compiles the first netlist found in files named

 

verilog.vams, verilog.va, verilog.v, or veriloga.va

 

(in that order). Similarly, the ncvhdl compiler also compiles the

 

first netlist found in files namedvhdl.vhms or vhdl.vhd (in

 

that order).

April 2004

398

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

In summary, specifying all causes a maximum of two files to be compiled for each cellview: one Verilog, Verilog-A, or

Verilog-AMS cellview to be compiled by ncvlog; one VHDL or

VHDL-AMS cellview to be compiled by ncvhdl.

Example

amsDirect.prep compileMode cyclic "incremental"

Tells AMS Design Prep to compile only newly created netlists.

April 2004

399

Product Version 5.3

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