Ken Kundert wrote on Nov 20th, 2019, 9:41am:You would have to save the response of your circuit as S-parameters (which you could do with an SP analysis) and then read the S-parameter file back into Spectre using a nport.
-Ken
Hello Ken,
Thank you for the reply. Would it be possible to instantiate an nport (as I would do with a module) in my behavioral code? Or it is mandatory to be added standalone in the schematic editor?
Thank you in advance
Update : I managed to instantiate it in my VerilogA code but it seems like i cant connect the ports of nport by name ( e.g .p1(INP), .m1(INN) where INP,INN are the pins of the model and p1,m1 should be the ports of the nport primitive).
Update2 : For anyone interested, the corresponding port names when instantiating an nport are : t1,t2,t3.... for p1,p2,p3.. ports of schematic symbol and b1,b2,b3.... for m1,m2,m3