next up previous contents index
Next: Read-Only Parameters Up: Support for AMDS/Verilog-A Previous: The ``insideADMS'' define   Contents   Index

The ADMS ``attributes''

This is a syntax extension to Verilog-A supported by ADMS. It allows additional information in parameter and variable declarations to be passed to the simulator.

Examples:
parameter real c10 = 2e-30 from [0:1] (* info="GICCR constant" unit="A^2s" *);
real outTheta (* info="Theta" *);

The attributes are delimited by (* ... *) just ahead of the line-terminating semicolon. The content consists of keyword=value terms, separated by white space. The value is taken as a literal string, and should be double-quoted if it contains white space. The keyword can be any token, but only certain keywords are recognized by ADMS.

info="string describing the parameter or variable"
The string will be used in the WRspice show command and perhaps elsewhere.

units=units_token
This gives the units of the parameter or variable. (I'm not sure that this is actually used.)

type=model
This construct indicates that the parameter should be taken as a model parameter, i.e., a parameter given in a .model line in SPICE.

type=instance
This construct indicates that the parameter should be taken as an instance parameter, i.e., a parameter given in a device instance line.

Models may use the following code to hide this construct from non-ADMS parsers.

`ifdef insideADMS
`define ATTR(txt) (*txt*)
`else
`define ATTR(txt)
`endif
...
parameter real c10 = 2e-30 from [0:1] `ATTR(info="GICCR constant" unit="A^2s");
real outTheta `ATTR( info="Theta" );


next up previous contents index
Next: Read-Only Parameters Up: Support for AMDS/Verilog-A Previous: The ``insideADMS'' define   Contents   Index
Stephen R. Whiteley 2018-08-26