The parameters of analog and Spectre built-in primitives can be set only by name. For example, you can instantiate a resistor like this:
resistor #(.r(1K)) R1(pos,neg) ;
The formats used to set the parameters of some Spectre instantiations differ from the equivalent instantiations supported by the AMS Designer simulator. These differences are described in the following table:
|
Difference in Instantiation |
Examples of Equivalent Spectre and Verilog-AMS Instantiations |
|---|---|
|
Spectre-enumerated parameters are supported as strings in Verilog-AMS |
|
|
Automatically-sized parameter arrays are passed differently |
|
