If you insist on Verilog-A, instantiate spectre’s primitive nport in Verilog-A.
https://designers-guide.org/forum/YaBB.pl?num=1574240440#2
Other possibility is “deriv(ac_stim(1))/(M_TWO_PI)”.
I don’t know whether it works as independent variable for table_model().
Hello and thank you for the reply.
Instantiating the nport in VerilogA seems like a very good way to get the response I want. However, I can only connect the ports by order and not by name.
Specifically:
I want to instantiate an nport with 2 ports and NO common reference. The instance will have 4 pins : p1,m1,p2,m2 (at least in schematic editor ).
My VerilogA model has 4 pins also : INP,INN,OP,ON and I want to connect port (p1 with INP) , (m1 with INN) , (p2 with OP), (m2 with ON).
My code works and simulates correctly when I instantiate the nport as :
nport #(params) NPORT0(INP,INN,OP,ON )
but produces an error when I try to instantiate it as:
nport #(params) NPORT0(.p1(INP),.m1(INN),.p2(OP),.m2(ON) ) .
Any ideas on this?