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

Virtuoso AMS Environment User Guide

Variables for ams.env Files

useDefparam

Controls the netlisting of parameters passed onto instantiated modules.

Syntax

amsDirect.vlog useDefparam boolean t | nil

Values

 

t

Generates one defparam statement for each instance that

 

requires passed parameters.

nil

Passes parameters by assigning instance parameter values.

 

This is the default.

Description

The AMS netlister passes parameters by assigning instance parameter values; it passes parameters by name to child instances. Note that Verilog-XL and other digital simulators do not support passing parameters via instance parameter value assignments.

Another way to pass parameters is to use a defparam statement. If you specify t, the AMS netlister uses the defparam statement to pass parameters instead. One defparam statement is generated for each instantiation that requires passed parameters.

Example

amsDirect.vlog useDefparam boolean nil

Tells the AMS netlister to pass parameters by assigning instance parameter values. The following netlist results:

module mybuf (a, b); input a;

output b;

myinv #(.setup(10), .hold(5)) i0 (a, net10); myinv #(.setup(10), .hold(5)) i1 (net10, b);

endmodule

Example

amsDirect.vlog useDefparam boolean t

April 2004

556

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

Tells the AMS netlister to pass parameters by using defparam statements. The following netlist results:

module mybuf (a, b); input a;

output b;

myinv i0(a, net10);

defparam i0.setup = 10, i0.hold = 5; myinv i1(net10, b);

defparam i1.setup = 10, i1.hold = 5;

endmodule

April 2004

557

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

useNcelabNowarn

Controls whether the list of suppressed warnings on the Elaborator Messages/Errors pane of the AMS Options window is used.

Syntax

amsDirect.prep useNcelabNowarn boolean t | nil

Values

 

t

Places a checkmark next to the Suppress specific warnings

 

field, indicating that the listed warnings are to be suppressed.

 

This is the default.

nil

Removes the checkmark, indicating that any listed warnings are

 

not to be suppressed.

Example

amsDirect.prep useNcelabNowarn boolean nil

Removes the checkmark next to the Suppress specific warnings field. As a result, the -nowarn option of the ncelab command is not used and the listed warnings are not suppressed during elaboration.

April 2004

558

Product Version 5.3

Virtuoso AMS Environment User Guide

Variables for ams.env Files

useNcelabSdfCmdFile

Controls whether an SDF command file specified on theSDF Annotation pane of the AMS

Options window is used.

Syntax

amsDirect.prep useNcelabSdfCmdFile boolean t | nil

Values

 

t

Places a checkmark next to the Use SDF command file field,

 

indicating that the command file (if one is specified) is to be used

 

during elaboration. This is the default.

nil

Removes the checkmark, indicating that any SDF command file

 

that might be specified in theUse SDF command file field is

 

not to be used.

Example

amsDirect.prep useNcelabSdfCmdFile boolean nil

Tells the elaborator to use an SDF command file if one is specified in theUse SDF command file field.

April 2004

559

Product Version 5.3

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