Hi,
I'm build a AMS test bench (ADE based) and try to replace all resistor/inductor/capacitor from analogLib primitives to Verilog-AMS models.
The purpose is to make every elements flexible to be changed in the AMS stimulus sequence by OOMR without too many ADE variables.
An example of inductor is as below (similar for resistor and capacitor), my question is this model ( I and V linked by ddt() or idt()) accuracy is the same as Spectre primitives in AMS simulation?
If not, how can I improve the accuracy to make sure my simulation results will be the exactly the same as those components in Spectre primitives?
`include "constants.vams"
`include "disciplines.vams"
module ams_inductor(MINUS, PLUS);
inout MINUS;
inout PLUS;
electrical MINUS;
electrical PLUS;
// Default DC inductance
parameter real inductance = 1e-9;
parameter real tt = 10e-6;
// Variables for OOMR
real indSet = inductance;
real ttSet = tt;
analog begin
V(PLUS, MINUS) <+ indSet*ddt(I(PLUS, MINUS));
end
endmodule